yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47149
[Bug 1447342] Re: libvirtError: XML error: Missing CPU model name lead to compute service fail to start
Sam-I-Am was reporting this in the nova IRC channel, same failure but
with more details:
http://paste.openstack.org/show/488781/
In his case the host capabilities xml does not have a cpu model, so
setting cpu_mode=none in nova.conf doesn't help, the details are in the
stack trace:
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service [req-5b0007bc-76b1-4ce1-86bb-2a79f73db1e7 - - - - -] Error starting thread.
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service Traceback (most recent call last):
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/oslo_service/service.py", line 680, in run_service
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service service.start()
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/service.py", line 183, in start
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service self.manager.init_host()
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 1309, in init_host
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service self.driver.init_host(host=self.host)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 643, in init_host
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service self._do_quality_warnings()
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 621, in _do_quality_warnings
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service caps = self._host.get_capabilities()
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 787, in get_capabilities
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service result = proxy_call(self._autowrap, f, *args, **kwargs)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service rv = execute(f, *args, **kwargs)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service six.reraise(c, e, tb)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service rv = meth(*args, **kwargs)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service File "/opt/bbc/openstack-11.0-master/nova/local/lib/python2.7/site-packages/libvirt.py", line 3153, in baselineCPU
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self)
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service libvirtError: XML error: Missing CPU model name
2016-03-01 16:02:55.830 22615 ERROR oslo_service.service
danpb said this about the failure:
danpb Sam-I-Am: oh that's totally bogus and unrelated to the cpu_mode/cpu_model config options 16:05
danpb Sam-I-Am: in the host.py get_capabilities() method before it does [self._caps.host.cpu.to_xml()], 16:05
danpb Sam-I-Am: it should check whether self._cps.host.cpu has a non-None model 16:06
danpb Sam-I-Am: if the model is None, it should skip the baselineCPU() api call
** Changed in: nova
Status: Invalid => Confirmed
** Changed in: nova
Importance: Undecided => High
** Changed in: nova
Assignee: jichenjc (jichenjc) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1447342
Title:
libvirtError: XML error: Missing CPU model name lead to compute
service fail to start
Status in OpenStack Compute (nova):
Confirmed
Bug description:
got following error and failed to start a compute service
not sure if we should disallow compute service to start
if 'libvirtError: XML error: Missing CPU model name' or not
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/service.py", line 497, in run_service
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup service.start()
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/service.py", line 164, in start
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup self.manager.init_host()
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/compute/manager.py", line 1258, in init_host
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup self.driver.init_host(host=self.host)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 529, in init_host
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup self._do_quality_warnings()
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 507, in _do_quality_warnings
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup caps = self._host.get_capabilities()
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/host.py", line 753, in get_capabilities
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in doit
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup result = proxy_call(self._autowrap, f, *args, **kwargs)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup rv = execute(f, *args, **kwargs)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup six.reraise(c, e, tb)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup rv = meth(*args, **kwargs)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 3153, in baselineCPU
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self)
2015-04-20 14:06:57.351 TRACE nova.openstack.common.threadgroup libvirtError: XML error: Missing CPU model name
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1447342/+subscriptions
References