From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kip Macy Subject: Re: Error: Error creating domain: global name 'log' is not defined Date: Mon, 16 May 2005 11:32:21 -0700 Message-ID: References: <1116264756.26086.3.camel@dyn95394152.austin.ibm.com> Reply-To: Kip Macy Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1116264756.26086.3.camel@dyn95394152.austin.ibm.com> Content-Disposition: inline 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 =20 On 5/16/05, David F Barrera wrote: > I am getting the following error when attempting to create a DomU: >=20 > [root@lamb5 xen]# xm create -c vm1.cfg vmid=3D1 > Using config file "vm1.cfg". > [xend] DEBUG (XendDomainInfo:696) init_domain> Created domain=3D1 name=3D= vm1 > memory=3D200704 > [xend] DEBUG (XendDomainInfo:1117) creating linux domain with cmdline: > root=3D/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=3D0 domain=3D1 port=3D9601 > 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=3Drecreate) > File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in > createDevice > return ctrl.createDevice(devconfig, recreate=3Dself.recreate) > File "/usr/lib/python/xen/xend/server/controller.py", line 231, in > createDevice > dev =3D self.newDevice(self.nextDeviceId(), config, recreate=3Drecrea= te) > File "/usr/lib/python/xen/xend/server/blkif.py", line 414, in > newDevice > return BlkDev(self, id, config, recreate=3Drecreate) > File "/usr/lib/python/xen/xend/server/blkif.py", line 177, in __init__ > self.configure(self.config, recreate=3Drecreate) > File "/usr/lib/python/xen/xend/server/blkif.py", line 201, in > configure > self.vdev =3D 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> > False > ConsoleDev>destroy> 0xb775e4ec> False > [xend] DEBUG (blkif:420) Destroying blkif domain=3D1 > 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 =3D self.xd.domain_create(config) > File "/usr/lib/python/xen/xend/XendDomain.py", line 401, in > domain_create > dominfo =3D 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=3Drecreate) > File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in > createDevice > return ctrl.createDevice(devconfig, recreate=3Dself.recreate) > File "/usr/lib/python/xen/xend/server/controller.py", line 231, in > createDevice > dev =3D self.newDevice(self.nextDeviceId(), config, recreate=3Drecrea= te) > File "/usr/lib/python/xen/xend/server/blkif.py", line 414, in > newDevice > return BlkDev(self, id, config, recreate=3Drecreate) > File "/usr/lib/python/xen/xend/server/blkif.py", line 177, in __init__ > self.configure(self.config, recreate=3Drecreate) > File "/usr/lib/python/xen/xend/server/blkif.py", line 201, in > configure > self.vdev =3D 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'] >=20 > 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. >=20 > -- > Regards, >=20 > David F Barrera > Linux Technology Center > Systems and Technology Group, IBM >=20 > "The wisest men follow their own direction. " > Euripides >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >