28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
# HG changeset patch
|
|
# User kfraser@localhost.localdomain
|
|
# Date 1184330609 -3600
|
|
# Node ID 00fabe66d79e46de1d1318fd545ddbde734a8137
|
|
# Parent 049e4e61644d6dbdae15802dafb7db8e9c5e70fc
|
|
[Xend] Fix problem when destroying VMs using the Xen-API
|
|
|
|
When domains are destroyed/suspend-resume/migration using the Xen-API
|
|
things break due to the domid not having been reset. This patch fixes
|
|
this. This is the best place I found for fixing this problem. I could
|
|
not push this line into _stateSet() for the case of DOM_STATE_HALTED
|
|
and left a comment regarding this.
|
|
|
|
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
|
|
|
|
Index: xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
===================================================================
|
|
--- xen-3.1-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
+++ xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
@@ -1571,6 +1571,7 @@ class XendDomainInfo:
|
|
log.exception("Removing domain path failed.")
|
|
|
|
self._stateSet(DOM_STATE_HALTED)
|
|
+ self.domid = None # Do not push into _stateSet()!
|
|
finally:
|
|
self.refresh_shutdown_lock.release()
|
|
|