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: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>,xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Many same managed domain
From: Mats Petersson <mats@xxxxxxxxxxxxxxxxx>
Date: Sun, 22 Jul 2007 11:30:52 +0100
Delivery-date: Tue, 24 Jul 2007 09:00:38 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:x-mailer:date:to:from:subject:in-reply-to:references:mime-version:content-type:sender:message-id; b=eRY9Ptgu7H1kLFaGqPoiYDvHQgRDrHW5KBHmwKIjPFE3BN+ZhRztX1RBOGzwuXqfn3CiroZQo4MK+T4cIAb5VYCCyKcD0rjNr3fGEFXaTpRF7Pg1nxQ8/0iir0RBkn9TM/5QmWBNzdN8GQQy0JGcagvRAxSv1Sq6UYfEbrKXSFM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:x-mailer:date:to:from:subject:in-reply-to:references:mime-version:content-type:sender:message-id; b=h4HYsqct/toRoiYqkc5Qdn1lKkzOAQCuIMwnOQWDXuoFQdfC1p3obEAN1CBOE5L672ddXZlKcMIfzvkHIVprs7DgRZRhT1lZg6vbVjrtTR535WcihuFNoya7rr62nBZp3WI4TXnkZTp+1sh6YEj98PqWf5IzLldnpTnnX6LVdWE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <91C7CC1E6AF558kanno.masaki@xxxxxxxxxxxxxx>
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: <91C7CC1E6AF558kanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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).

--
Mats



Best regards,
 Kan



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


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