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] Save the old domid when restarting, as it

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Save the old domid when restarting, as it may get wiped out before we need to
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Nov 2006 13:30:15 +0000
Delivery-date: Wed, 08 Nov 2006 05:30:07 -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 5c5b03381d3c3e47067be76f097a7c71f2e53eed
# Parent  1fcdb3a35db32e1ae1835d1bb1a07f1e78337739
Save the old domid when restarting, as it may get wiped out before we need to
log it (on restart failure).

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

diff -r 1fcdb3a35db3 -r 5c5b03381d3c tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Nov 08 10:48:55 2006 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Nov 08 11:08:18 2006 +0000
@@ -994,6 +994,7 @@ class XendDomainInfo:
             self.destroy()
             return
 
+        old_domid = self.domid
         self._writeVm(RESTART_IN_PROGRESS, 'True')
 
         now = time.time()
@@ -1040,7 +1041,7 @@ class XendDomainInfo:
                     self._removeVm(RESTART_IN_PROGRESS)
                 raise
         except:
-            log.exception('Failed to restart domain %s.', str(self.domid))
+            log.exception('Failed to restart domain %s.', str(old_domid))
 
     def getSysMem(self):
         info = dom_get(self.domid)

_______________________________________________
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] Save the old domid when restarting, as it may get wiped out before we need to, Xen patchbot-unstable <=