[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Many same managed domain



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.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.