[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Fix destruction of VMMetrics objects for managed domains
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216203156 -3600 # Node ID 45787d746db410deaa4cb7249e35d42cd8d01a9c # Parent ea6a9793928d2b5c58dc838368ffd57f3ebbfb50 xend: Fix destruction of VMMetrics objects for managed domains While plugging a xend memory lead (c/s 18030), I introduced a bug in the case of managed domains. Managed domains continue to exist after shutdown and thus should not have their associated VMMetrics object destroyed until deleted. The bug actually manifested by a new -> start -> shutdown -> delete sequence of operations. Shutdown destroyed the VMMetrics object and delete tried to do the same :-): Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r ea6a9793928d -r 45787d746db4 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Tue Jul 15 18:00:13 2008 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Jul 16 11:12:36 2008 +0100 @@ -2618,7 +2618,9 @@ class XendDomainInfo: def _cleanupVm(self): """Cleanup VM resources. Idempotent. Nothrow guarantee.""" - self.metrics.destroy() + from xen.xend import XendDomain + if not XendDomain.instance().is_domain_managed(self): + self.metrics.destroy() self._unwatchVm() try: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |