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>
Subject: Re: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains
From: Christian Limpach <christian.limpach@xxxxxxxxx>
Date: Fri, 16 Sep 2005 20:40:45 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 16 Sep 2005 19:38:32 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qQJ8CcHeV9Ro5r4jtoDF4iniBOouV8VgJx6IZyncyooBlKjzRGe1LQca5qQy+M4YHyT4QO+aMfQwHHIDfzjL2mhuCDirARO00hnkfYmOjQkzrxAzP5BhTl084AUPfrylGX0NYpGdVlhk60ypCLHAcbMZGsQmR3Vj7pwJuk9pOCM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <87d5ncsksl.fsf@xxxxxxxxxx>
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>
References: <87d5ncsksl.fsf@xxxxxxxxxx>
Reply-to: Christian.Limpach@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 9/13/05, Dan Smith <danms@xxxxxxxxxx> 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')

There is already a check for domains with the same name in
XendDomainInfo.check_name.  We should fix that check instead of adding
another check.  Could you try the attached patch which removes the
check if a domain "is terminated" and thus allows creation of a domain
with the same name?

It's arguable if this should be allowed or not, but if we allow it,
then we need to find the root cause of the error you're seeing...

    christian

Attachment: fix-name-check.patch
Description: Binary data

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