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-devel

Re: [Xen-devel] Unable to start xend on sles 9 boxes

To: David F Barrera <dfbp@xxxxxxxxxx>
Subject: Re: [Xen-devel] Unable to start xend on sles 9 boxes
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Fri, 18 Aug 2006 09:57:54 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 Aug 2006 02:09:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44E4AA05.2050601@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <44E4AA05.2050601@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Aug 17, 2006 at 12:40:21PM -0500, David F Barrera wrote:

> The last couple of days I have been unable to start xend on a couple of i386
> boxes with SLES 9: (Note: A box with FC4 worked just fine.)
> 
> [Snip]
>
> # tail /var/log/xend-debug.log
>    self.callHandlers(record)
>  File "/usr/lib/python2.3/logging/__init__.py", line 1037, in callHandlers
>    hdlr.handle(record)
>  File "/usr/lib/python2.3/logging/__init__.py", line 592, in handle
>    self.emit(record)
>  File "/usr/lib/python2.3/logging/handlers.py", line 105, in emit
>    self.doRollover()
>  File "/usr/lib/python/xen/xend/XendLogging.py", line 60, in doRollover
>    logging.handlers.RotatingFileHandler.doRollover()
> TypeError: unbound method doRollover() must be called with 
> RotatingFileHandler instance as first argument (got nothing instead)

You need this patch:

--- a/tools/python/xen/xend/XendLogging.py Wed Aug 16 16:01:00 2006 +0100
+++ b/tools/python/xen/xend/XendLogging.py Wed Aug 16 16:06:32 2006 +0100
@@ -57,7 +57,7 @@ class XendRotatingFileHandler(logging.ha
         self.setCloseOnExec()
 
     def doRollover(self):
-        logging.handlers.RotatingFileHandler.doRollover()
+        logging.handlers.RotatingFileHandler.doRollover(self)
         self.setCloseOnExec()
 
     # NB yes accessing 'self.stream' violates OO encapsulation somewhat,


This is in our queue, but it's not been pushed because something else is
broken.  You could apply this one manually for now, or you might find that
removing old xend.log files is sufficient (this code runs when it rotates the
log file, which happens when that reaches 1MB in size).

Cheers,

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>