[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] This patch fixes an error in the xm create path when the



# HG changeset patch
# User emellor@ewan
# Node ID 0f33cbec4e3600f3d708af2630b8eabb9b6641a5
# Parent  bea563754fe6e4137464688bc585eef34deb7949
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@xxxxxxxxxx>

diff -r bea563754fe6 -r 0f33cbec4e36 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Mon Oct 10 18:04:03 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Mon Oct 10 18:06:14 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):

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


 


Rackspace

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