All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][RESEND] Fix "Invalid Parameter" during xm create
@ 2005-10-10 17:50 Tom Lendacky
  2005-10-10 18:06 ` Ewan Mellor
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Lendacky @ 2005-10-10 17:50 UTC (permalink / raw)
  To: xen-devel

Forgot the signed-off-by...

This patch fixes an error in the xm create path when the
xc.domain_create call fails (eg, when ACM policy prevents creation of a
domain).  When xc.domain_create fails, dompath never gets set.

Signed-off-by: Tom Lendacky <toml@us.ibm.com>
diff -r 03d69dbea152 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	Mon Oct 10 15:57:41 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Oct 10 11:14:42 2005
@@ -1087,7 +1087,8 @@
         log.debug("XendDomainInfo.destroy: domid=%s", self.domid)
 
         self.cleanupVm()
-        self.destroyDomain()
+        if self.dompath is not None:
+                self.destroyDomain()
 

     def destroyDomain(self):

Thanks,
Tom Lendacky

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][RESEND] Fix "Invalid Parameter" during xm create
  2005-10-10 17:50 [PATCH][RESEND] Fix "Invalid Parameter" during xm create Tom Lendacky
@ 2005-10-10 18:06 ` Ewan Mellor
  0 siblings, 0 replies; 2+ messages in thread
From: Ewan Mellor @ 2005-10-10 18:06 UTC (permalink / raw)
  To: xen-devel

On Mon, Oct 10, 2005 at 12:50:03PM -0500, Tom Lendacky wrote:

> Forgot the signed-off-by...
> 
> This patch fixes an error in the xm create path when the
> xc.domain_create call fails (eg, when ACM policy prevents creation of a
> domain).  When xc.domain_create fails, dompath never gets set.
> 
> Signed-off-by: Tom Lendacky <toml@us.ibm.com>

Applied, thanks!

Ewan.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-10 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-10 17:50 [PATCH][RESEND] Fix "Invalid Parameter" during xm create Tom Lendacky
2005-10-10 18:06 ` Ewan Mellor

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.