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

[Xen-devel] XenD lost its uniqueness check for names & UUIDs

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] XenD lost its uniqueness check for names & UUIDs
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Thu, 12 Apr 2007 01:51:17 +0100
Delivery-date: Wed, 11 Apr 2007 17:50:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
I'm doing some testing against today's xen-unstable.hg and it appears that
XenD has lost its uniqueness checks for names & UUIDs. eg

# xm create XenGuest2
Using config file "/etc/xen/XenGuest2".
Started domain XenGuest2
# xm create XenGuest2
Using config file "/etc/xen/XenGuest2".
Started domain XenGuest2
# xm create XenGuest2
Using config file "/etc/xen/XenGuest2".
Started domain XenGuest2
# xm list
Name                                      ID   Mem VCPUs      State   Time(s)
Domain-0                                   0   698     2     r-----   2915.3
XenGuest1                                 24   394     4     -b----     32.0
XenGuest2                                 32   300     1     r-----      0.3
XenGuest2                                 30   300     1     ------      3.2
XenGuest2                                 31   300     1     --p---      0.0

# xm list --long | grep uuid | sort | uniq -c
      1     (uuid 00000000-0000-0000-0000-000000000000)
      1     (uuid c7a5fdb0-cdaf-9455-926a-d65c16db1809)
      3     (uuid c7a5fdb2-cdaf-9455-926a-d65c16db1809)

So I now have 3 active guests with same name and same UUID :-(

Now it should always be possible to run 'xm new' to define a persistent 
config file for a transient domain, but, attempts to run 'xm create' 
should be rejected if there is an existing domain.

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

<Prev in Thread] Current Thread [Next in Thread>