* KeyError: 'use_tmp_kernel' with -unstable
@ 2009-07-24 10:58 Jun Koi
2009-07-24 11:05 ` Keir Fraser
2009-07-26 21:09 ` Andreas Florath
0 siblings, 2 replies; 5+ messages in thread
From: Jun Koi @ 2009-07-24 10:58 UTC (permalink / raw)
To: xen-devel
Hi,
The latest -unstable tree has following error when starting xend
This is on Ubuntu 9.04, Python 2.6.2
Any suggestion to fix this?
Thanks,
J
# cat /var/log/xen/xend.log
....
ERROR (SrvDaemon:349) Exception starting xend ('use_tmp_kernel')
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
line 341, in run
servers = SrvServer.create()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
line 251, in create
root.putChild('xend', SrvRoot())
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
line 40, in __init__
self.get(name)
File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
line 84, in get
val = val.getobj()
File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
line 52, in getobj
self.obj = klassobj()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
line 30, in __init__
self.xn = XendNode.instance()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 1015, in instance
inst.save()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 485, in save
self.save_networks()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 500, in save_networks
for network_uuid in XendNetwork.get_all()])
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendBase.py",
line 102, in get_record
for key in keys])
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNetwork.py",
line 196, in get_VIFs
vms = XendDomain.instance().get_all_vms()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
line 1739, in instance
inst.init()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
line 123, in init
dom0 = XendDomainInfo.recreate(dom0info, True)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomainInfo.py",
line 206, in recreate
vm.image = image.create(vm, vm.info)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
line 66, in create
return findImageHandlerClass(vmConfig)(vm, vmConfig)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
line 98, in __init__
self.configure(vmConfig)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
line 680, in configure
ImageHandler.configure(self, vmConfig)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
line 111, in configure
if vmConfig['use_tmp_kernel']:
KeyError: 'use_tmp_kernel'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: KeyError: 'use_tmp_kernel' with -unstable
2009-07-24 10:58 KeyError: 'use_tmp_kernel' with -unstable Jun Koi
@ 2009-07-24 11:05 ` Keir Fraser
2009-07-26 21:09 ` Andreas Florath
1 sibling, 0 replies; 5+ messages in thread
From: Keir Fraser @ 2009-07-24 11:05 UTC (permalink / raw)
To: Jun Koi, xen-devel@lists.xensource.com
The offending changeset is 19961. I will revert.
-- Keir
On 24/07/2009 11:58, "Jun Koi" <junkoi2004@gmail.com> wrote:
> Hi,
>
> The latest -unstable tree has following error when starting xend
>
> This is on Ubuntu 9.04, Python 2.6.2
>
> Any suggestion to fix this?
>
> Thanks,
> J
>
> # cat /var/log/xen/xend.log
> ....
> ERROR (SrvDaemon:349) Exception starting xend ('use_tmp_kernel')
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line 341, in run
> servers = SrvServer.create()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line 251, in create
> root.putChild('xend', SrvRoot())
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> line 40, in __init__
> self.get(name)
> File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
> line 84, in get
> val = val.getobj()
> File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
> line 52, in getobj
> self.obj = klassobj()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> line 30, in __init__
> self.xn = XendNode.instance()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line 1015, in instance
> inst.save()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line 485, in save
> self.save_networks()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line 500, in save_networks
> for network_uuid in XendNetwork.get_all()])
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendBase.py",
> line 102, in get_record
> for key in keys])
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNetwork.py",
> line 196, in get_VIFs
> vms = XendDomain.instance().get_all_vms()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
> line 1739, in instance
> inst.init()
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
> line 123, in init
> dom0 = XendDomainInfo.recreate(dom0info, True)
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomainInfo.py",
> line 206, in recreate
> vm.image = image.create(vm, vm.info)
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
> line 66, in create
> return findImageHandlerClass(vmConfig)(vm, vmConfig)
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
> line 98, in __init__
> self.configure(vmConfig)
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
> line 680, in configure
> ImageHandler.configure(self, vmConfig)
> File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
> line 111, in configure
> if vmConfig['use_tmp_kernel']:
> KeyError: 'use_tmp_kernel'
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: KeyError: 'use_tmp_kernel' with -unstable
2009-07-24 10:58 KeyError: 'use_tmp_kernel' with -unstable Jun Koi
2009-07-24 11:05 ` Keir Fraser
@ 2009-07-26 21:09 ` Andreas Florath
2009-07-28 1:05 ` Jun Koi
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Florath @ 2009-07-26 21:09 UTC (permalink / raw)
To: Jun Koi; +Cc: xen-devel
Hello!
IMHO the bug is, that not in all code paths the 'use_tmp_xxx' is set.
So a more robust if-statement would be
if 'use_tmp_xxx' in vmConfig ...
You reported, that this error occurred during the start of xend. Is it
possible, that there were one/some VMs which were started directly
during the startup of xend? If so, can you please provide some
information about the VMs: OS / Distributuion / PV or HVM? (If not so,
I'm a little bit confused, because the 'use_tmp_xxx' were build up in
the VM start path and in the stack trace there is at least one 'recreate'.)
Background:
The 'data:' and 'schema:' handling feature was removed from the
repository because of this bug report. But before providing a corrected
version, I want to be sure that I'll get all aspects of this error
report - especially I want to extend my local regression test suite.
Kind regards
Andreas Florath
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: KeyError: 'use_tmp_kernel' with -unstable
2009-07-26 21:09 ` Andreas Florath
@ 2009-07-28 1:05 ` Jun Koi
2009-07-29 4:14 ` Andreas Florath
0 siblings, 1 reply; 5+ messages in thread
From: Jun Koi @ 2009-07-28 1:05 UTC (permalink / raw)
To: Andreas Florath; +Cc: xen-devel
On Mon, Jul 27, 2009 at 6:09 AM, Andreas Florath<xen@flonatel.org> wrote:
> Hello!
>
> IMHO the bug is, that not in all code paths the 'use_tmp_xxx' is set.
> So a more robust if-statement would be
> if 'use_tmp_xxx' in vmConfig ...
>
> You reported, that this error occurred during the start of xend. Is it
> possible, that there were one/some VMs which were started directly
> during the startup of xend?
No, my xend doesnt start any VM during its boot.
And after Keir revert that patch, Xen work perfectly!
Thanks,
J
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: KeyError: 'use_tmp_kernel' with -unstable
2009-07-28 1:05 ` Jun Koi
@ 2009-07-29 4:14 ` Andreas Florath
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Florath @ 2009-07-29 4:14 UTC (permalink / raw)
To: Jun Koi; +Cc: xen-devel
Hello!
Had a closer look at this - and it looks that the 'recreate' is related
to the dom0. So should be easy to re-test.
Thanks a lot for your answer.
Andreas Florath
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-29 4:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 10:58 KeyError: 'use_tmp_kernel' with -unstable Jun Koi
2009-07-24 11:05 ` Keir Fraser
2009-07-26 21:09 ` Andreas Florath
2009-07-28 1:05 ` Jun Koi
2009-07-29 4:14 ` Andreas Florath
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.