[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>
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

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