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

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


  • To: "Dan Smith" <danms@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Wed, 14 Sep 2005 13:04:37 +0100
  • Delivery-date: Wed, 14 Sep 2005 12:03:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcW4rLA1J8acN59OQwCTg0QbKW5eCwAdafFw
  • Thread-topic: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains

 > 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>

When doing an 'xm destroy' on a domain I wander if xend should rename it
to zombie-<name>?  That way, even if something has gone wrong and we're
left with a shell domain we'll still be able to restart one with the
same name. (obviously we should only do the rename once)

Ian

_______________________________________________
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®.