Bugzilla Version 2.20.1
View Bug Activity | Format For Printing | Clone This Bug
On Xen 3.1.0 I'm trying to setup the serial port access from the domU following the instructions at http://wiki.xensource.com/xenwiki/InstallationNotes. So I addedd these configurations to the domU cfg file: irq = [ 4 ] ioports = [ "3f8-3ff" ] When I create this new domU I get this error: Error: function takes exactly 3 arguments (2 given)
Please post the backtrace from /var/log/xen/xend.log
I have exactly the same. This is on a debian lenny xen 3.1-1. Happened right after upgrading from xen 3.0.3 my xend.log: [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) Balloon: 395064 KiB free; need 393216; done. [2007-09-24 14:19:01 3115] INFO (__init__:1072) buildDomain os=linux dom=6 vcpus=1 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) domid = 6 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) memsize = 384 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) image = /boot/vmlinuz-2.6.18-4-xen-amd64 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) store_evtchn = 1 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) console_evtchn = 2 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) cmdline = root=/dev/hda1 ro [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) ramdisk = /boot/initrd.img-2.6.18-4-xen-amd64 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) vcpus = 1 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) features = [2007-09-24 14:19:01 3115] INFO (__init__:1072) createDevice: vbd : {'uuid': 'c67e31ec-176c-df62-ae66-fa35fae26215', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'hda1', 'uname': 'file:/srv/xen/netsrv.img', 'mode': 'w'} [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/6/769'} to /local/domain/6/device/vbd/769. [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'domain': 'netsrv', 'frontend': '/local/domain/6/device/vbd/769', 'uuid': 'c67e31ec-176c-df62-ae66-fa35fae26215', 'dev': 'hda1', 'state': '1', 'params': '/srv/xen/netsrv.img', 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'file'} to /local/domain/0/backend/vbd/6/769. [2007-09-24 14:19:01 3115] INFO (__init__:1072) createDevice: vbd : {'uuid': 'c7757107-3b67-c058-447d-9d1f7d032724', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'hda2', 'uname': 'file:/srv/xen/netsrv_swap.img', 'mode': 'w'} [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/6/770'} to /local/domain/6/device/vbd/770. [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'domain': 'netsrv', 'frontend': '/local/domain/6/device/vbd/770', 'uuid': 'c7757107-3b67-c058-447d-9d1f7d032724', 'dev': 'hda2', 'state': '1', 'params': '/srv/xen/netsrv_swap.img', 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'file'} to /local/domain/0/backend/vbd/6/770. [2007-09-24 14:19:01 3115] INFO (__init__:1072) createDevice: vif : {'bridge': 'br-xen', 'mac': '00:16:3E:00:00:17', 'uuid': 'ef2693fa-d787-0f18-f8d6-0c9dec67fc8e'} [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'mac': '00:16:3E:00:00:17', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/6/0'} to /local/domain/6/device/vif/0. [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) DevController: writing {'bridge': 'br-xen', 'domain': 'netsrv', 'handle': '0', 'uuid': 'ef2693fa-d787-0f18-f8d6-0c9dec67fc8e', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/6/device/vif/0', 'mac': '00:16:3E:00:00:17', 'online': '1', 'frontend-id': '6', 'type': 'netfront'} to /local/domain/0/backend/vif/6/0. [2007-09-24 14:19:01 3115] INFO (__init__:1072) createDevice: irq : {'irq': 4, 'uuid': '493cd78a-f034-ef8c-c019-a0ab7c35dd32'} [2007-09-24 14:19:01 3115] ERROR (__init__:1072) VM start failed Traceback (most recent call last): File "/usr/lib/xen-3.1-1/lib/python/xen/xend/XendDomainInfo.py", line 396, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-3.1-1/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-3.1-1/lib/python/xen/xend/XendDomainInfo.py", line 1527, in _initDomain self._createDevices() File "/usr/lib/xen-3.1-1/lib/python/xen/xend/XendDomainInfo.py", line 1318, in _createDevices devid = self._createDevice(devclass, config) File "/usr/lib/xen-3.1-1/lib/python/xen/xend/XendDomainInfo.py", line 1294, in _createDevice return self.getDeviceController(deviceClass).createDevice(devConfig) File "/usr/lib/xen-3.1-1/lib/python/xen/xend/server/DevController.py", line 85, in createDevice (devid, back, front) = self.getDeviceDetails(config) File "/usr/lib/xen-3.1-1/lib/python/xen/xend/server/irqif.py", line 66, in getDeviceDetails allow_access = True) TypeError: function takes exactly 3 arguments (2 given) [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=6 [2007-09-24 14:19:01 3115] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(6) [2007-09-24 14:19:01 3115] ERROR (__init__:1072) Domain construction failed
Looks like there is a bug in tools/python/xen/xend/server/irqif.py xc.domain_irq_permission is called with keyword argument dom instead of domid as it should be. This has been fixed in the unstable branch. This api change seems to have been made in: http://lists.xensource.com/archives/html/xen-changelog/2006-11/msg00086.html which misses this file.