It is a bug in xend that manifested itself for me when all of my
loopback devices were marked in ues because it wasn't always unbinding
them on shutdown/destroy.
-Kip
On 5/16/05, David F Barrera <dfbp@xxxxxxxxxx> wrote:
> I am getting the following error when attempting to create a DomU:
>
> [root@lamb5 xen]# xm create -c vm1.cfg vmid=1
> Using config file "vm1.cfg".
> [xend] DEBUG (XendDomainInfo:696) init_domain> Created domain=1 name=vm1
> memory=200704
> [xend] DEBUG (XendDomainInfo:1117) creating linux domain with cmdline:
> root=/dev/sda1 ro
> [xend] INFO (XendRoot:122) EVENT> xend.domain.create ['vm1', '1']
> [xend] WARNING (XendDomainInfo:725) building dom with 1 vcpus
> VIRTUAL MEMORY ARRANGEMENT:
> Loaded kernel: c0100000->c0338884
> Init. ramdisk: c0339000->c0339000
> Phys-Mach map: c0339000->c036a000
> Page tables: c036a000->c036c000
> Start info: c036c000->c036d000
> Boot stack: c036d000->c036e000
> TOTAL: c0000000->c0400000
> ENTRY ADDRESS: c0100000
> VCPUS: 1
> [xend] WARNING (XendDomainInfo:1062) Unknown config field memmap
> [xend] WARNING (XendDomainInfo:1062) Unknown config field device_model
> [xend] WARNING (XendDomainInfo:1062) Unknown config field device_config
> [xend] INFO (console:100) Created console id=0 domain=1 port=9601
> Domain construction error: global name 'log' is not defined
> Traceback (most recent call last):
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 513, in
> construct
> [xend] INFO (XendRoot:122) EVENT> xend.console.create [0, 1, 9601]
> self.configure()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1003, in
> configure
> self.create_devices()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 795, in
> create_devices self.create_configured_devices()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 784, in
> create_configured_devices
> self.createDevice(ctrl_type, dev_config, recreate=recreate)
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in
> createDevice
> return ctrl.createDevice(devconfig, recreate=self.recreate)
> File "/usr/lib/python/xen/xend/server/controller.py", line 231, in
> createDevice
> dev = self.newDevice(self.nextDeviceId(), config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 414, in
> newDevice
> return BlkDev(self, id, config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 177, in __init__
> self.configure(self.config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 201, in
> configure
> self.vdev = blkif.blkdev_name_to_number(self.dev)
> File "/usr/lib/python/xen/util/blkif.py", line 24, in
> blkdev_name_to_number
> log.debug("exception looking up device number for %s: %s", name, ex)
> NameError: global name 'log' is not defined
> ConsoleController>destroyController>
> <xen.xend.server.console.ConsoleController instance at 0xb775e3ac> False
> ConsoleDev>destroy> <xen.xend.server.console.ConsoleDev instance at
> 0xb775e4ec> False
> [xend] DEBUG (blkif:420) Destroying blkif domain=1
> op_create> Exception creating domain:
> Traceback (most recent call last):
> File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 63, in
> op_create
> dominfo = self.xd.domain_create(config)
> File "/usr/lib/python/xen/xend/XendDomain.py", line 401, in
> domain_create
> dominfo = XendDomainInfo.vm_create(config)
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 184, in
> vm_create
> vm.construct(config)
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 513, in
> construct
> self.configure()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1003, in
> configure
> self.create_devices()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 795, in
> create_devices self.create_configured_devices()
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 784, in
> create_configured_devices
> self.createDevice(ctrl_type, dev_config, recreate=recreate)
> File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in
> createDevice
> return ctrl.createDevice(devconfig, recreate=self.recreate)
> File "/usr/lib/python/xen/xend/server/controller.py", line 231, in
> createDevice
> dev = self.newDevice(self.nextDeviceId(), config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 414, in
> newDevice
> return BlkDev(self, id, config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 177, in __init__
> self.configure(self.config, recreate=recreate)
> File "/usr/lib/python/xen/xend/server/blkif.py", line 201, in
> configure
> self.vdev = blkif.blkdev_name_to_number(self.dev)
> File "/usr/lib/python/xen/util/blkif.py", line 24, in
> blkdev_name_to_number
> log.debug("exception looking up device number for %s: %s", name, ex)
> NameError: global name 'log' is not defined
> Error: Error creating domain: global name 'log' is not defined
> [root@lamb5 xen]# [xend] INFO (XendRoot:122) EVENT> xend.domain.died
> ['vm1', '1']
>
> This was on a RHEL 4 machine. On a SLES 9 SP1 machine, I get only the
> "Error: Error creating domain: global name 'log' is not defined"
> message, without the debug info.
>
> --
> Regards,
>
> David F Barrera
> Linux Technology Center
> Systems and Technology Group, IBM
>
> "The wisest men follow their own direction. "
> Euripides
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|