All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <christian.limpach@gmail.com>
To: Dan Smith <danms@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] Prevent xend from starting duplicate domains
Date: Fri, 16 Sep 2005 20:40:45 +0100	[thread overview]
Message-ID: <3d8eece205091612407ddf69a9@mail.gmail.com> (raw)
In-Reply-To: <87d5ncsksl.fsf@us.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

On 9/13/05, Dan Smith <danms@us.ibm.com> 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 #2: fix-name-check.patch --]
[-- Type: application/octet-stream, Size: 474 bytes --]

diff -r 4490e39fc322 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 16 19:11:39 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 16 20:40:23 2005
@@ -635,8 +635,6 @@
         # my domain id.
         if not dominfo:
             return
-        if dominfo.is_terminated():
-            return
         if not self.domid or (dominfo.domid != self.domid):
             raise VmError('vm name clash: ' + name)
         

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

  parent reply	other threads:[~2005-09-16 19:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-13 21:46 [PATCH] Prevent xend from starting duplicate domains Dan Smith
2005-09-13 23:20 ` David Hopwood
2005-09-14  0:06   ` Dan Smith
2005-09-14  4:32     ` Anthony Liguori
2005-09-16 19:40 ` Christian Limpach [this message]
2005-09-16 22:49   ` Dan Smith
2005-09-16 23:47     ` Christian Limpach
  -- strict thread matches above, loose matches on Subject: below --
2005-09-14 12:04 Ian Pratt
2005-09-14 13:36 ` Dan Smith
2005-09-14 17:15   ` Christian Limpach
2005-09-14 20:50 Ian Pratt
2005-09-14 21:03 ` Dan Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d8eece205091612407ddf69a9@mail.gmail.com \
    --to=christian.limpach@gmail.com \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=danms@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.