From: Stefan Berger Subject: [PATCH] [Xend] Fix problem when destroying VMs using the Xen-API Date: Thu, 12 Jul 2007 16:10:42 -0400 Message-ID: <1184271042.22571.17.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1q3hEMz50QroP75kYGNi" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-1q3hEMz50QroP75kYGNi Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-1q3hEMz50QroP75kYGNi Content-Disposition: attachment; filename=fix_xend_xm_delete.diff Content-Type: text/x-patch; name=fix_xend_xm_delete.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py | 1 + 1 file changed, 1 insertion(+) Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +++ root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py @@ -1593,6 +1593,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() --=-1q3hEMz50QroP75kYGNi Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-1q3hEMz50QroP75kYGNi--