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>
This commit is contained in:
emellor@ewan committed 2005-09-27 14:36:58 +01:00
1 parent 4cdb221751
commit 4ac7f7b347
1 file changed
+11 -1
+11 -1
View File
@@ -976,10 +976,20 @@ class XendDomainInfo:
self.cleanup()
try:
self.removeVm()
except Exception:
log.exception("Removing VM path failed.")
try:
self.removeDom()
except Exception:
log.exception("Removing domain path failed.")
try:
if self.domid is not None:
xc.domain_destroy(dom=self.domid)
except Exception, exn:
except Exception:
log.exception("XendDomainInfo.destroy: xc.domain_destroy failed.")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.