From: Jim Fehlig Subject: Re: Many same managed domain Date: Tue, 24 Jul 2007 18:16:57 -0600 Message-ID: <46A69679.50908@novell.com> References: <91C7CC1E6AF558kanno.masaki@jp.fujitsu.com><20070722144609.GA22043@redhat.com><9BC7CDA074E023kanno.masaki@jp.fujitsu. com> 20070724132506.GB23597@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9BC7CDA074E023kanno.masaki@jp.fujitsu. com> 20070724132506.GB23597@redhat.com List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 :-). ((VM ref) Set) VM.get_by_name_label (session_id s, string label) Return Type: (VM ref) Set references to objects with match names Jim