From: Stefan Berger Subject: [PATCH] [XEND] destroy domain info if exception occurs during resume Date: Fri, 06 Apr 2007 20:08:22 -0400 Message-ID: <1175904502.4630.2.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-0LH24stQ5x4O0T+RilxY" 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@lists.xensource.com Cc: ewan@xensource.com List-Id: xen-devel@lists.xenproject.org --=-0LH24stQ5x4O0T+RilxY Content-Type: text/plain Content-Transfer-Encoding: 7bit Destroy information about the domain in case an error occurs during resume of a domain. Signed-off-by: Stefan Berger --=-0LH24stQ5x4O0T+RilxY Content-Disposition: attachment; filename=resume_with_error_destroy_domain.diff Content-Type: text/x-patch; name=resume_with_error_destroy_domain.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 @@ -430,6 +430,7 @@ class XendDomainInfo: self._endRestore() except: log.exception('VM resume failed') + self.destroy() raise else: raise XendError('VM already running') --=-0LH24stQ5x4O0T+RilxY 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 --=-0LH24stQ5x4O0T+RilxY--