From: Masaki Kanno Subject: Re: Many same managed domain Date: Tue, 24 Jul 2007 11:36:56 +0900 Message-ID: <9AC7CD9B80D08Ekanno.masaki@jp.fujitsu.com> References: <91C7CC1E6AF558kanno.masaki@jp.fujitsu.com> <46a33202.1636440a.6636.72b9@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46a33202.1636440a.6636.72b9@mx.google.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: Mats Petersson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >At 06:09 22/07/2007, Masaki Kanno wrote: >>Hi, >> >>When I tested xm new command without uuid parameter repeatedly, >>I saw many same managed domain as follows. >> >># xm list >>Name ID Mem >>VCPUs State Time(s) >>Domain-0 0 941 2 r----- >>51.9 >># xm new /xen/vm1.conf >>Using config file "/xen/vm1.conf". >># xm new /xen/vm1.conf >>Using config file "/xen/vm1.conf". >># xm new /xen/vm1.conf >>Using config file "/xen/vm1.conf". >># xm list >>Name ID Mem >>VCPUs State Time(s) >>Domain-0 0 941 2 r----- >>56.3 >>vm1 256 1 >> 0.0 >>vm1 256 1 >> 0.0 >>vm1 256 1 >> 0.0 >> >> >>But, when I tested xm new command with uuid parameter repeatedly, >>I did not see same managed domain as follows. >> >># xm list >>Name ID Mem >>VCPUs State Time(s) >>Domain-0 0 941 2 r----- >>69.9 >># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >>Using config file "/xen/vm1.conf". >># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >>Using config file "/xen/vm1.conf". >># xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" >>Using config file "/xen/vm1.conf". >># xm list >>Name ID Mem >>VCPUs State Time(s) >>Domain-0 0 941 2 r----- >>74.4 >>vm1 256 1 >> 0.0 >> >> >>I think that xm new command should cause a command error if without >>uuid parameter. What do you think? > > >Either that, or check that the name isn't a duplicate - I added such >a check for "xm create" and "xm restore" about two months ago, >because it would allow multiple instances of the same domain (with >the same UUID - something I never got to the bottom of). Thanks for your opinion. Your patch is changeset 15168, isn't it? Best regards, Kan