[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove the domain and VM paths from the store when destroying a domain. This



# HG changeset patch
# User emellor@ewan
# Node ID 63f06da6c5b0f2114bb4c854292898ecbc369254
# Parent  9ff1bea68d51126fbcf4c084ab1650f8cba81f72
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@xxxxxxxxxxxxx>

diff -r 9ff1bea68d51 -r 63f06da6c5b0 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Tue Sep 27 12:54:02 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Tue Sep 27 13:36:58 2005
@@ -977,9 +977,19 @@
         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.")
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.