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] Reduce the log level for the 'cannot recreate informatio

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Reduce the log level for the 'cannot recreate information for dying domain'
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Oct 2005 10:16:12 +0000
Delivery-date: Thu, 06 Oct 2005 10:13:52 +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 emellor@ewan
# Node ID 1cfe0875658d5f83d38a5d96abe7a66e0d5db508
# Parent  b0bc53c9d5b6c9c5c8ff79272f7c25c7eaaf4d2a
Reduce the log level for the 'cannot recreate information for dying domain'
message for all but the first refresh when Xend starts.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r b0bc53c9d5b6 -r 1cfe0875658d tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Thu Oct  6 09:16:50 2005
+++ b/tools/python/xen/xend/XendDomain.py       Thu Oct  6 10:04:49 2005
@@ -22,6 +22,7 @@
  Needs to be persistent for one uptime.
 """
 import os
+import logging
 import threading
 
 import xen.lowlevel.xc
@@ -61,7 +62,7 @@
 
         self.domains_lock.acquire()
         try:
-            self.refresh()
+            self.refresh(True)
             self.dom0_setup()
         finally:
             self.domains_lock.release()
@@ -148,9 +149,13 @@
             info.cleanupDomain()
 
 
-    def refresh(self):
+    def refresh(self, initialising = False):
         """Refresh domain list from Xen.  Expects to be protected by the
         domains_lock.
+
+        @param initialising True if this is the first refresh after starting
+        Xend.  This does not change this method's behaviour, except for
+        logging.
         """
         doms = self.xen_domains()
         for d in self.domains.values():
@@ -162,10 +167,10 @@
         for d in doms:
             if d not in self.domains:
                 if doms[d]['dying']:
-                    log.error(
-                        'Cannot recreate information for dying domain %d.  '
-                        'Xend will ignore this domain from now on.',
-                        doms[d]['dom'])
+                    log.log(initialising and logging.ERROR or logging.DEBUG,
+                            'Cannot recreate information for dying domain %d.'
+                            '  Xend will ignore this domain from now on.',
+                            doms[d]['dom'])
                 else:
                     try:
                         dominfo = XendDomainInfo.recreate(doms[d])

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Reduce the log level for the 'cannot recreate information for dying domain', Xen patchbot -unstable <=