WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Many same managed domain

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-devel] Many same managed domain
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Thu, 26 Jul 2007 11:20:03 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 Jul 2007 10:17:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46A69679.50908@xxxxxxxxxx> 20070725132336.GA7933@xxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9BC7CDA074E023kanno.masaki@xxxxxxxxxxxxxx><46A69679.50908@xxxxxxxxxx> 20070725132336.GA7933@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.8 (X11/20060911)

Daniel P. Berrange wrote:
> On Tue, Jul 24, 2007 at 06:16:57PM -0600, Jim Fehlig wrote:
>   
>> Daniel Berrange wrote:
>> [snip]
>>     
>>>> Thanks for your explanation. 
>>>> I have a question to your logic.  I think that the logic need a VM 
>>>> name check when no VM with same UUID exists.  Am I right?
>>>>
>>>>   - If the UUID is not specified
>>>>         - If a VM with same name exists
>>>>             => Update the config for that existing VM
>>>>         - Else no vm with same name exists
>>>>             => Define a brand new VM with auto-generated UUID
>>>>   - Else UUID is specified
>>>>         - If a VM with same UUID exists
>>>>               - If name is different
>>>>                     => Error
>>>>               - Else if name is same
>>>>                     => Update the config for that existing VM
>>>>         - Else no VM with same UUID exists
>>>> -           => Define a branch new VM with that name
>>>> +             - If name is different
>>>> +                   => Define a branch new VM with that name
>>>> +             - Else if name is same
>>>> +                   => Error
>>>>     
>>>>         
>>> Yes you are correct - if UUID does not clash we still need to check for
>>> a VM with same name, but different UUID.
>>>   
>>>       
>> As a side note, Xen API allows for domains with same name - in spec at
>> least :-).
>>     
>
> That is madness. Name uniqueness is assumed in pretty much every single
> management tool I've ever seen, not least 'xm'. ID is unique amongst all 
> running domains, Name is unique amongst running and inactive guests on a
> single host, UUID is unique globsally.
>   

Well, I agree and thought there was some discussion about this on Xen
API ml quite some time ago but looking through the archives can't seem
to find it.  I do not recall what arguments were made in favor of
domains with same name.  Ewan may have some recollection.

Given the current consensus, I should submit a patch to fix Xen API
documentation and code and put this to rest for good.  Any objections?

Jim


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel