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] [PATCH] Prevent xend from starting duplicate domains

To: "Dan Smith" <danms@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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