From: "Daniel P. Berrange" <berrange@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: XenD lost its uniqueness check for names & UUIDs
Date: Thu, 12 Apr 2007 02:27:24 +0100 [thread overview]
Message-ID: <20070412012724.GB31838@redhat.com> (raw)
In-Reply-To: <20070412005117.GA5144@redhat.com>
On Thu, Apr 12, 2007 at 01:51:17AM +0100, Daniel P. Berrange wrote:
> 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.
This is slightly more interesting than I first thought - there is a name
uniqueness check being performed, but it only appears to be done if the
UUID's are different. ie, if I have 2 config files with same name, but
different UUIDs, XenD correctly refuses to start the 2nd. If I have 2
config files with same name & same UUID, it happily starts both.
Regards,
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 -=|
prev parent reply other threads:[~2007-04-12 1:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-12 0:51 XenD lost its uniqueness check for names & UUIDs Daniel P. Berrange
2007-04-12 1:27 ` Daniel P. Berrange [this message]
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=20070412012724.GB31838@redhat.com \
--to=berrange@redhat.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.