Skip to contentSkip to conversation

Unable to start xend on sles 9 boxes

DISCUSSION David F Barrera 2 participants 3 messages Aug 17, 2006 – Aug 18, 2006

lore
Share & tools
lore
#0 lore raw

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.)

x235:~ # xend start
x235:~ # xm list
Error: Error connecting to xend: Connection refused. Is xend running? x235:~ #

changeset:   11134:ec03b24a2d83
tag:         tip
user:        [email protected]
date:        Tue Aug 15 13:53:55 2006 +0100
summary:     Fix VT after hvm changes.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=742

# tail /var/log/xend.log
[2006-08-17 08:19:37 xend 10333] ERROR (XendCheckpoint:234) Save exit rc=0
[2006-08-17 08:19:37 xend.XendDomainInfo 10331] DEBUG (XendDomainInfo:1409) XendDomainInfo.destroyDomain(138)
[2006-08-17 08:19:38 xend.XendDomainInfo 10387] DEBUG (XendDomainInfo:186) XendDomainInfo.create(['vm', ['name', '03_save_bogusfile_neg-1155820778'], ['memory', 64], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16.13-xen'], ['ramdisk', '/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/xm-test/ramdisk/initrd.img'], ['root', '/dev/ram0']]]])
[2006-08-17 08:19:38 xend.XendDomainInfo 10387] DEBUG (XendDomainInfo:292) parseConfig: config is ['vm', ['name', '03_save_bogusfile_neg-1155820778'], ['memory', 64], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.16.13-xen'], ['ramdisk', '/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/xm-test/ramdisk/initrd.img'], ['root', '/dev/ram0']]]]
[2006-08-17 08:19:38 xend.XendDomainInfo 10387] DEBUG (XendDomainInfo:391) parseConfig: result is {'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.16.13-xen'], ['ramdisk', '/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/xm-test/ramdisk/initrd.img'], ['root', '/dev/ram0']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': '03_save_bogusfile_neg-1155820778', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 64, 'device': [], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-08-17 08:19:38 xend.XendDomainInfo 10387] DEBUG (XendDomainInfo:1219) XendDomainInfo.construct: None
[2006-08-17 08:19:38 xend.XendDomainInfo 10387] DEBUG (XendDomainInfo:1251) XendDomainInfo.initDomain: 139 1.0
[2006-08-17 08:19:38 xend 10387] DEBUG (balloon:127) Balloon: 144140 KiB free; need 65536; done.
[2006-08-17 08:19:38 xend 10387] INFO (image:134) buildDomain os=linux dom=139 vcpus=1
[2006-08-17 08:19:38 xend 10387] DEBUG (image:177) dom            = 139
# 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)
Signature · 9 lines
Regards,

David F Barrera
Linux Technology Center
Systems and Technology Group, IBM

"The wisest men follow their own direction. "
	
                         Euripides
#1 lore raw
Quoted 5 lines · David F Barrera

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]

Quoted 12 lines
# 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:

tools/python/xen/xend/XendLogging.py Wed Aug 16 16:06:32 2006 +0100 renamed from tools/python/xen/xend/XendLogging.py Wed Aug 16 16:01:00 2006 +0100 +1 -1
@@ -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.

#2 lore raw
Quoted 5 lines · Ewan Mellor

removing old xend.log files is sufficient (this code runs when it rotates the log file, which happens when that reaches 1MB in size).

Ewan,

Thanks. Actually, I did exactly that yesterday to get around.

Quoted 9 lines

Cheers,

Ewan.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 8 lines
Regards,

David F Barrera
Linux Technology Center
Systems and Technology Group, IBM

"The wisest men follow their own direction. "
                                                     Euripides