[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains



Dan Smith wrote:
The attached patch puts a simple check in domain_create() which
prevents starting a domain if there is already one of the same name in
the domain list.

This fixes the problem of getting the following error message from xm
while creating a domain soon after destroying one with the same name:

  xen.xend.XendProtocol.XendError: (3, 'No such process')

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>

Surely there's a race condition here? The hypervisor op that creates a domain
has to fail if it would result in two domains with the same name; this can't
be reliably enforced by a separate check in the Python tools.

--
David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.