Bug 2010638 - Live-migration fails with error "CPU doesn't have compatibility." during OSP update, but only for specific cpu model
Summary: Live-migration fails with error "CPU doesn't have compatibility." during OSP ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 16.1 (Train)
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Kashyap Chamarthy
QA Contact: Mikolaj Ciecierski
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-05 08:57 UTC by Mikolaj Ciecierski
Modified: 2021-12-09 20:20 UTC (History)
12 users (show)

Fixed In Version: openstack-nova-20.4.1-1.20210708183306.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:20:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-10176 0 None None None 2021-11-18 11:35:28 UTC
Red Hat Issue Tracker UPG-3412 0 None None None 2021-10-05 08:58:45 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:20:59 UTC

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


Note You need to log in before you can comment on or make changes to this bug.