From: Kip Macy <kip.macy@gmail.com>
To: David F Barrera <dfbp@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Error: Error creating domain: global name 'log' is not defined
Date: Mon, 16 May 2005 11:32:21 -0700 [thread overview]
Message-ID: <b1fa29170505161132407b7a28@mail.gmail.com> (raw)
In-Reply-To: <1116264756.26086.3.camel@dyn95394152.austin.ibm.com>
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@us.ibm.com> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
prev parent reply other threads:[~2005-05-16 18:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 17:32 Error: Error creating domain: global name 'log' is not defined David F Barrera
2005-05-16 18:32 ` Kip Macy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1fa29170505161132407b7a28@mail.gmail.com \
--to=kip.macy@gmail.com \
--cc=dfbp@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.