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
Keir Fraser
2009-Jul-24 11:05 UTC
Re: [Xen-devel] KeyError: ''use_tmp_kernel'' with -unstable
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_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Jul-26 21:09 UTC
Re: [Xen-devel] KeyError: ''use_tmp_kernel'' with -unstable
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Jul-29 04:14 UTC
Re: [Xen-devel] KeyError: ''use_tmp_kernel'' with -unstable
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel