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
|