Bug 2010638

Summary: Live-migration fails with error "CPU doesn't have compatibility." during OSP update, but only for specific cpu model
Product: Red Hat OpenStack Reporter: Mikolaj Ciecierski <mciecier>
Component: openstack-novaAssignee: Kashyap Chamarthy <kchamart>
Status: CLOSED ERRATA QA Contact: Mikolaj Ciecierski <mciecier>
Severity: high Docs Contact:
Priority: urgent    
Version: 16.1 (Train)CC: alifshit, amodi, dasmith, eglynn, jhakimra, jlarriba, kchamart, sbauza, sgordon, smooney, spower, vromanso
Target Milestone: z7Keywords: Patch, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-20.4.1-1.20210708183306.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 20:20:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikolaj Ciecierski 2021-10-05 08:57:44 UTC
Description of problem:
Live-migration fails during OSP update, when OSP is deployed on specific cpu model(tested on Cascadelake-Server), however it works when running on different cpu model (Broadwell).  

Version-Release number of selected component (if applicable):
OSP16.1

How reproducible: 
always

Steps to Reproduce:
1. Create vm on overcloud, before starting update
2. Run minor update of overcloud nodes
3. Live-migrate created vm from compute node, before reboot machine after update
   $ nova host-evacuate-live  compute-0.redhat.local


Actual results:
Live-migration fails with this error(from compute-1/var/log/containers/nova/nova-compute.log):
 _compare_cpu /usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py:8586
2021-10-01 11:59:58.715 8 ERROR nova.virt.libvirt.driver [req-fd702777-6dd0-4740-98b1-f1db5fb9c826 9dbf2e5fcbfe4f2c927eaa827ec9da3f e787c047ec22454a825e1816309677a6 - default default] CPU doesn't have compatibility.

0

Refer to http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server [req-fd702777-6dd0-4740-98b1-f1db5fb9c826 9dbf2e5fcbfe4f2c927eaa827ec9da3f e787c047ec22454a825e1816309677a6 - default default] Exception during message handling: nova.exception.InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.

0

Refer to http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 274, in dispatch
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/exception_wrapper.py", line 79, in wrapped
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     function_name, call_dict, binary, tb)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     self.force_reraise()
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/six.py", line 675, in reraise
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     raise value
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/exception_wrapper.py", line 69, in wrapped
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kw)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/utils.py", line 1372, in decorated_function
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 219, in decorated_function
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     self.force_reraise()
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/six.py", line 675, in reraise
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     raise value
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 207, in decorated_function
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 6796, in check_can_live_migrate_destination
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     block_migration, disk_over_commit)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 8285, in check_can_live_migrate_destination
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     self._compare_cpu(None, source_cpu_info, instance)
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 8602, in _compare_cpu
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server     raise exception.InvalidCPUInfo(reason=m % {'ret': ret, 'u': u})
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server nova.exception.InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server 
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server 0
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server 
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server Refer to http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
2021-10-01 11:59:58.798 8 ERROR oslo_messaging.rpc.server 


Expected results:
Vm is live-migrated without errors.


Additional info:

Comment 29 errata-xmlrpc 2021-12-09 20:20:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3762