All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Jim Fehlig <jfehlig@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Many same managed domain
Date: Wed, 25 Jul 2007 14:23:36 +0100	[thread overview]
Message-ID: <20070725132336.GA7933@redhat.com> (raw)
In-Reply-To: <46A69679.50908@novell.com>

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  -=| 

  parent reply	other threads:[~2007-07-25 13:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-22  5:09 Many same managed domain Masaki Kanno
2007-07-22 10:30 ` Mats Petersson
2007-07-24  2:36   ` Masaki Kanno
2007-07-22 14:46 ` Daniel P. Berrange
2007-07-22 22:20   ` Mats Petersson
2007-07-24  3:12   ` Masaki Kanno
2007-07-24 13:25     ` Daniel Berrange
2007-07-24 14:47       ` Masaki Kanno
     [not found]   ` <9BC7CDA074E023kanno.masaki@jp.fujitsu. com>
2007-07-25  0:16     ` Jim Fehlig
2007-07-25  7:16       ` Masaki Kanno
2007-07-25 13:23       ` Daniel P. Berrange [this message]
2007-07-26 17:20       ` Jim Fehlig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070725132336.GA7933@redhat.com \
    --to=berrange@redhat.com \
    --cc=jfehlig@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.