WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Ignore dying domains on recreate, and log the fact.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 09 Nov 2006 11:30:16 +0000
Delivery-date: Thu, 09 Nov 2006 03:30:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Ignore dying domains on recreate, and log the fact., Xen patchbot-unstable <=