Skip to contentSkip to conversation

Fix "Invalid Parameter" during xm create

PATCH RESEND Applied Tom Lendacky 2 participants 2 messages Oct 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Fix "Invalid Parameter" during xm create

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.

tools/python/xen/xend/XendDomainInfo.py +2 -1
diff -r 03d69dbea152 tools/python/xen/xend/XendDomainInfo.py
@@ -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

Applied
#1 lore raw
Quoted 7 lines · Tom Lendacky

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.

Applied, thanks!

Ewan.