ia64/xen-unstable

changeset 7074:63f06da6c5b0

Remove the domain and VM paths from the store when destroying a domain. This
goes a long way towards fixing the problem of stale entries in the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Sep 27 14:36:58 2005 +0100 (2005-09-27)
parents 9ff1bea68d51
children a8ed2f186c23
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Sep 27 13:54:02 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Sep 27 14:36:58 2005 +0100
     1.3 @@ -977,9 +977,19 @@ class XendDomainInfo:
     1.4          self.cleanup()
     1.5  
     1.6          try:
     1.7 +            self.removeVm()
     1.8 +        except Exception:
     1.9 +            log.exception("Removing VM path failed.")
    1.10 +
    1.11 +        try:
    1.12 +            self.removeDom()
    1.13 +        except Exception:
    1.14 +            log.exception("Removing domain path failed.")
    1.15 +
    1.16 +        try:
    1.17              if self.domid is not None:
    1.18                  xc.domain_destroy(dom=self.domid)
    1.19 -        except Exception, exn:
    1.20 +        except Exception:
    1.21              log.exception("XendDomainInfo.destroy: xc.domain_destroy failed.")
    1.22  
    1.23