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

[Xen-changelog] [xen-unstable] Ignore dying domains on recreate, and log the fact.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 42769ff008b5ac024db7c460a624d5092f82b3e4
# Parent  fbf851ec9103f75119b153eec614466722e086b9
Ignore dying domains on recreate, and log the fact.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomain.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r fbf851ec9103 -r 42769ff008b5 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Wed Nov 08 15:26:22 2006 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Wed Nov 08 18:27:31 2006 +0000
@@ -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)

_______________________________________________
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®.