2023.1: Live migration fails with new compare_hypervisor_cpu method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
We have test setup with 3 identical compute nodes. Recently test setup upgraded from Zed to 2023.1 Openstack Version, with nova 27.0.0, libvirt 8.0.0, qemu 6.2
During live migration we always getting error:
2023-06-05 13:33:06.158 1458525 ERROR nova.virt.
0
Refer to http://
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
ror: Migration pre-check error: Unacceptable CPU info: CPU doesn't have compatibility.
0
Refer to http://
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
2023-06-05 13:33:06.264 1458525 ERROR oslo_messaging.
Zed setup works ok with this nodes.
More info:
1. https:/
If revert libvirt to old cpu_compare instead cpu_hypervisor_
ret = self._host.
#ret = self._host.
live migration works ok.
ret = self._host.
ret = self._host.
2. Disabling cpu Comparation with changing nova.conf:
[workarounds]
skip_cpu_
makes live migration work ok.
3. Entry xml to cpu_compare looks like:
<cpu>
<arch>
<model>
<vendor>
<topology sockets="1" cores="4" threads="2"/>
<feature name="3dnowpref
<feature name="abm"/>
<feature name="acpi"/>
<feature name="adx"/>
<feature name="aes"/>
<feature name="apic"/>
<feature name="arat"/>
<feature name="arch-
<feature name="avx"/>
<feature name="avx2"/>
<feature name="bmi1"/>
<feature name="bmi2"/>
<feature name="clflush"/>
<feature name="clflushopt"/>
<feature name="cmov"/>
<feature name="cx16"/>
<feature name="cx8"/>
<feature name="de"/>
<feature name="ds"/>
<feature name="ds_cpl"/>
<feature name="dtes64"/>
<feature name="erms"/>
<feature name="est"/>
<feature name="f16c"/>
<feature name="fma"/>
<feature name="fpu"/>
<feature name="fsgsbase"/>
<feature name="fxsr"/>
<feature name="ht"/>
<feature name="intel-pt"/>
<feature name="invpcid"/>
<feature name="invtsc"/>
<feature name="lahf_lm"/>
<feature name="lm"/>
<feature name="mca"/>
<feature name="mce"/>
<feature name="md-clear"/>
<feature name="mmx"/>
<feature name="monitor"/>
<feature name="movbe"/>
<feature name="mpx"/>
<feature name="msr"/>
<feature name="mtrr"/>
<feature name="nx"/>
<feature name="pae"/>
<feature name="pat"/>
<feature name="pbe"/>
<feature name="pcid"/>
<feature name="pclmuldq"/>
<feature name="pdcm"/>
<feature name="pdpe1gb"/>
<feature name="pge"/>
<feature name="pni"/>
<feature name="popcnt"/>
<feature name="pse"/>
<feature name="pse36"/>
<feature name="rdrand"/>
<feature name="rdseed"/>
<feature name="rdtscp"/>
<feature name="rsba"/>
<feature name="sep"/>
<feature name="smap"/>
<feature name="smep"/>
<feature name="smx"/>
<feature name="spec-ctrl"/>
<feature name="ss"/>
<feature name="ssbd"/>
<feature name="sse"/>
<feature name="sse2"/>
<feature name="sse4.1"/>
<feature name="sse4.2"/>
<feature name="ssse3"/>
<feature name="stibp"/>
<feature name="syscall"/>
<feature name="tm"/>
<feature name="tm2"/>
<feature name="tsc"/>
<feature name="tsc-
<feature name="tsc_adjust"/>
<feature name="vme"/>
<feature name="vmx"/>
<feature name="x2apic"/>
<feature name="xgetbv1"/>
<feature name="xsave"/>
<feature name="xsavec"/>
<feature name="xsaveopt"/>
<feature name="xsaves"/>
<feature name="xtpr"/>
</cpu>
nova.conf
[libvirt]
cpu_mode = host-model
We are seeing the same issue having upgraded from Zed to 2023.1. This applies to freshly created VMs and to ones which existed prior to the upgrade in the same way. We have not changed libvirt or qemu versions as part of the upgrade.
libvirt: 8.0.0-1ubuntu7. 6~cloud0
qemu: 1:4.2-3ubuntu6.27
nova: b9089ac