← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1844211] Re: nova compute service failed to start when cpu_model_extra_flags set

 

Reviewed:  https://review.opendev.org/682267
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=af45b6e981681937c370a814144e13b182f9e02f
Submitter: Zuul
Branch:    master

commit af45b6e981681937c370a814144e13b182f9e02f
Author: ya.wang <wang.ya@xxxxxxxxxxx>
Date:   Mon Sep 16 10:34:45 2019 +0800

    libvirt: Get the CPU model, not 'arch' from get_capabilities()
    
    This fixes a regression introduced with change
    Ib37ff6fc2e1f9de0e60adca54e87c74f45f12ffa.
    
    Without this, setting [libvirt]/cpu_model_extra_flags
    to some value results in libvirt failing to start with
    an error like this:
    
      Configured extra flag: aes it not correct, or the host CPU
      does not support this flag. Please correct the config and
      try again. Migration pre-check error: CPU doesn't have
      compatibility.
    
    Closes-Bug: 1844211
    Change-Id: I9c7e842c4ef29cc78057a7ed9701f28ecb5e1a8b


** 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/1844211

Title:
  nova compute service failed to start when cpu_model_extra_flags set

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Description
  ===========

  The nova compute service failed to start when use libvirt drive and
  cpu_model_extra_flags set.

  
  Steps to reproduce
  ==================

  * set [default]/compute_driver = libvirt.LibvirtDriver
  * set [libvirt]/cpu_model_extra_flags = aes
  * restart nova compute service

  
  Expected result
  ===============

  Nova compute service start correct.

  
  Actual result
  =============

  Nova compute service failed to start.

  
  Environment
  ===========

  
  Logs & Configs
  ==============

  2019-09-17 10:31:59.044 6 ERROR oslo_service.service Traceback (most recent call last):
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_service/service.py", line 810, in run_service
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service     service.start()
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/service.py", line 160, in start
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service     self.manager.init_host()
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1255, in init_host
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service     self.driver.init_host(host=self.host)
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 742, in init_host
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service     self._check_cpu_compatibility()
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 798, in _check_cpu_compatibility
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service     raise exception.InvalidCPUInfo(msg)
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service InvalidCPUInfo: Configured extra flag: aes it not correct, or the host CPU does not support this flag. Please correct the config and try again. Migration pre-check error: CPU doesn't have compatibility.
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service internal error: Unknown CPU model x86_64
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service Refer to http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
  2019-09-17 10:31:59.044 6 ERROR oslo_service.service

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1844211/+subscriptions


References