← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1447342] Re: libvirtError: XML error: Missing CPU model name lead to compute service fail to start

 

Reviewed:  https://review.openstack.org/286868
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=04bbf658e7998d40ffbdb2b6467dfab8dc5fde55
Submitter: Jenkins
Branch:    master

commit 04bbf658e7998d40ffbdb2b6467dfab8dc5fde55
Author: Matt Riedemann <mriedem@xxxxxxxxxx>
Date:   Tue Mar 1 17:36:38 2016 -0500

    libvirt: don't attempt to get baseline cpu features if host cpu model is None
    
    In certain cases, libvirt can't determine the host's CPU model.
    
    This is fine when you're setting virt_type=qemu and cpu_mode=none,
    for example (like with nested virtualization).
    
    If we can't determine the host's cpu model, don't attempt to get
    cpu features on startup of the compute service (since it will
    crash the service).
    
    Change-Id: I81ae5a04c7b4eb84e976902a575d890d4e850151
    Closes-Bug: #1447342


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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):
  Fix Released
Status in OpenStack Compute (nova) kilo series:
  New
Status in OpenStack Compute (nova) liberty series:
  New

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