ia64/xen-unstable

changeset 15594:00fabe66d79e

[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>
author kfraser@localhost.localdomain
date Fri Jul 13 13:43:29 2007 +0100 (2007-07-13)
parents 049e4e61644d
children 0aa2a954a6d1
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Jul 13 13:42:41 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Jul 13 13:43:29 2007 +0100
     1.3 @@ -1594,6 +1594,7 @@ class XendDomainInfo:
     1.4                  log.exception("Removing domain path failed.")
     1.5  
     1.6              self._stateSet(DOM_STATE_HALTED)
     1.7 +            self.domid = None  # Do not push into _stateSet()!
     1.8          finally:
     1.9              self.refresh_shutdown_lock.release()
    1.10