From: Ewan Mellor Subject: Re: Unable to start xend on sles 9 boxes Date: Fri, 18 Aug 2006 09:57:54 +0100 Message-ID: <20060818085754.GC21706@leeni.uk.xensource.com> References: <44E4AA05.2050601@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <44E4AA05.2050601@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David F Barrera Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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.