From 27c39debdc44e931ef35e601298e6a07b48cefb4 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 8 Nov 2006 18:27:31 +0000 Subject: [PATCH] Ignore dying domains on recreate, and log the fact. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomain.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 8f76952e64..2877d40b23 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -59,7 +59,7 @@ class XendDomain: @ivar domains: map of domains indexed by UUID Strings @type domains: dict of XendDomainInfo - @ivar domains_managed: uuid of domains that are managed by Xend + @ivar managed_domains: uuid of domains that are managed by Xend @type managed_domains: list of (uuids, dom_name) @ivar domains_lock: lock that must be held when manipulating self.domains @type domains_lock: threaading.RLock @@ -152,6 +152,11 @@ class XendDomain: # add all active domains for dom in running: + if dom['dying'] == 1: + log.warn('Ignoring dying domain %d from now on' % + dom['domid']) + continue + if dom['domid'] != DOM0_ID: try: new_dom = XendDomainInfo.recreate(dom, False) -- 2.30.2