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] Deal with domain info going away (handle new error path

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Deal with domain info going away (handle new error path introduced by
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 04:14:10 +0000
Delivery-date: Thu, 15 Sep 2005 04:12:42 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 shand@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID bd477fcd32aba8a3196873b702ae6ea0d8a7e43b
# Parent  36f8c5900e8646b0465d92d602bd07f3d3b5a966
Deal with domain info going away (handle new error path introduced by 
cset 6828). Believe Dan Smith is working up a more comprehensive patch.

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>

diff -r 36f8c5900e86 -r bd477fcd32ab tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Sep 15 01:46:40 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Sep 15 04:12:54 2005
@@ -353,7 +353,12 @@
     def update(self, info=None):
         """Update with  info from xc.domain_getinfo().
         """
-        self.info = info or dom_get(self.domid)
+        if info:
+            self.info = info
+        else:
+            di = dom_get(self.domid)
+            if not di:
+                return 
         self.memory = self.info['mem_kb'] / 1024
         self.ssidref = self.info['ssidref']
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Deal with domain info going away (handle new error path introduced by, Xen patchbot -unstable <=