|
Unacceptable CPU info: CPU doesn't have compatibility 6 x6 b" A9 C% J/ @
OpenStack 虚机迁移 nova-compute报错:Unacceptable CPU info: CPU doesn't have compatibility0 f2 `" K7 V; G5 I& }0 @$ h& S
解决方法:% R1 I% v& l: t* {) l, W
[root@compute02 ~]# vim /usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py +6050 函数:check_can_live_migrate_destination 屏蔽代码,避免CPU校验: # Compare CPU
& o( ^5 ?* I( C4 B% l # if not instance.vcpu_model or not instance.vcpu_model.model:! ?& B/ W. u+ H; _5 }* H1 I0 w' T! Z5 E
# source_cpu_info = src_compute_info['cpu_info']
U$ {* C0 s. R. g # self._compare_cpu(None, source_cpu_info, instance)8 q( z+ d. |* C. ^6 L, n+ M0 f3 u5 X9 U
# else:
7 {, G1 R8 d2 v! d$ W # self._compare_cpu(instance.vcpu_model, None, instance)
/ f( T4 M8 S/ Y[root@compute02 ~]# systemctl restart openstack-nova-compute.service |