解决问题:Exception during message handling: Unacceptable CPU info: CPU doesn't have compatibility

简介:

一: openstack 迁移报错,日志详情    

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Refer to http: //libvirt .org /html/libvirt-libvirt-host .html #virCPUCompareResult
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher [req-fe373e8f-67f2-457c-aad4-f43b8a8c7bd0 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Exception during message handling: Unacceptable CPU info: CPU doesn't have compatibility.
 
0
 
Refer to http: //libvirt .org /html/libvirt-libvirt-host .html #virCPUCompareResult
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py" , line 138,  in  _dispatch_and_reply
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py" , line 185,  in  _dispatch
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher      return  self._do_dispatch(endpoint, method, ctxt, args)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py" , line 127,  in  _do_dispatch
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/exception.py" , line 110,  in  wrapped
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     payload)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 220,  in  __exit__
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 196,  in  force_reraise
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/exception.py" , line 89,  in  wrapped
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher      return  f(self, context, *args, **kw)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 423,  in  decorated_function
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher      return  function (self, context, *args, **kwargs)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 388,  in  decorated_function
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     kwargs[ 'instance' ], e, sys.exc_info())
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 220,  in  __exit__
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 196,  in  force_reraise
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 376,  in  decorated_function
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher      return  function (self, context, *args, **kwargs)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 5150,  in  check_can_live_migrate_destination
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     disk_over_commit)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 5161,  in  _do_check_can_live_migrate_destination
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     block_migration, disk_over_commit)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 5481,  in  check_can_live_migrate_destination
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     self._compare_cpu(None, source_cpu_info)
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 5740,  in  _compare_cpu
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher     raise exception.InvalidCPUInfo(reason=m % { 'ret' : ret,  'u' : u})
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher 
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher 0
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher 
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher Refer to http: //libvirt .org /html/libvirt-libvirt-host .html #virCPUCompareResult
2017-10-09 15:23:58.969 45323 ERROR oslo_messaging.rpc.dispatcher 
2017-10-09 15:23:58.972 45323 ERROR oslo_messaging._drivers.common [req-fe373e8f-67f2-457c-aad4-f43b8a8c7bd0 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Returning exception Unacceptable CPU info: CPU doesn't have compatibility.

二:解决办法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
      vim  /usr/lib/python2 .7 /site-packages/nova/virt/libvirt/driver .py
 
     5702          if  guest_cpu is None:
     5703             info = jsonutils.loads(host_cpu_str)
     5704             LOG.info(_LI( 'Instance launched has CPU info: %s' ), host_cpu_str)
     5705             cpu = vconfig.LibvirtConfigCPU()
     5706             cpu.arch = info[ 'arch' ]
     5707             cpu.model = info[ 'model' ]
     5708             cpu.vendor = info[ 'vendor' ]
     5709             cpu.sockets = info[ 'topology' ][ 'sockets' ]
     5710             cpu.cores = info[ 'topology' ][ 'cores' ]
     5711             cpu.threads = info[ 'topology' ][ 'threads' ]
     5712              #for f in info['features']:
     5713              #    cpu.add_feature(vconfig.LibvirtConfigCPUFeature(f))
     5714              #    LOG.info("Add william info  :%s CPU Feature" %f)
     5715          else :
     5716             cpu = self._vcpu_model_to_cpu_config(guest_cpu)
     5717 
     5718         u = ( "http://libvirt.org/html/libvirt-libvirt-host.html#"
     5719               "virCPUCompareResult" )
     
     重启openstack-Nova-compute 服务
         service openstack-nova-compute restart

三:验证问题

1
2
3
4
5
6
7
8
9
10
11
     2017-10-09 16:40:05.731 113517 INFO nova.extend.network [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william check_result: True
     2017-10-09 16:40:05.732 113517 INFO nova.extend.network [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william,vlan901 is exists,so is not create
     2017-10-09 16:40:05.732 113517 INFO nova.compute.manager [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william, live migrate vm  bridge_multiple_vlan True
     2017-10-09 16:40:05.798 113517 INFO nova.virt.libvirt.driver [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Instance launched has CPU info: { "vendor" "Intel" "model" "Haswell-noTSX" "arch" "x86_64" "features" : [ "pge" "avx" "xsaveopt" "clflush" "sep" "syscall" "tsc_adjust" "vme" "dtes64" "invpcid" "msr" "sse" "xsave" "vmx" "erms" "xtpr" "cmov" "smep" "nx" "est" "pat" "monitor" "smx" "pbe" "lm" "tsc" "fpu" "fxsr" "tm" "sse4.1" "pae" "sse4.2" "pclmuldq" "pcid" "fma" "tsc-deadline" "mmx" "osxsave" "cx8" "mce" "de" "tm2" "ht" "dca" "pni" "abm" "popcnt" "mca" "pdpe1gb" "apic" "fsgsbase" "f16c" "pse" "ds" "invtsc" "lahf_lm" "aes" "avx2" "sse2" "ss" "ds_cpl" "arat" "bmi1" "bmi2" "acpi" "ssse3" "rdtscp" "cx16" "pse36" "mtrr" "movbe" "pdcm" "cmt" "rdrand" "x2apic" ],  "topology" : { "cores" : 10,  "cells" : 2,  "threads" : 2,  "sockets" : 1}}
     2017-10-09 16:40:06.067 113517 INFO nova.extend.network [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william check_result: True
     2017-10-09 16:40:06.069 113517 INFO nova.extend.network [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william,vlan901 is exists,so is not create
     2017-10-09 16:40:06.070 113517 INFO nova.compute.manager [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] Add william, live migrate vm  bridge_multiple_vlan True
     2017-10-09 16:40:06.499 113517 INFO nova.virt.libvirt.firewall [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] [instance: 91619be9-3237-4831-aa41-fa4de9d338c3] Called setup_basic_filtering  in  nwfilter
     2017-10-09 16:40:06.500 113517 INFO nova.virt.libvirt.firewall [req-4ea72563-ffd5-4fcf-b681-744c31810206 bc77306e71644a05b5ff27003e416aa5 9c40d724fb9e4281a03a4c8e19a8a85e - - -] [instance: 91619be9-3237-4831-aa41-fa4de9d338c3] Ensuring static filters
     2017-10-09 16:40:06.863 113517 INFO nova.compute.manager [-] [instance: 91619be9-3237-4831-aa41-fa4de9d338c3] VM Started (Lifecycle Event)
     2017-10-09 16:40:09.948 113517 INFO nova.compute.manager [req-6c39c35f-c5c4-4da7-b693-f4812e766f31 - - - - -] [instance: 91619be9-3237-4831-aa41-fa4de9d338c3] VM Resumed (Lifecycle Event)
本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1970962
   
相关文章
|
Web App开发 前端开发
【前端异常】Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
【前端异常】Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
748 0
|
Java
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
1089 0
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
运行JProfiler:ERROR: Invalid license key. Aborting
运行JProfiler:ERROR: Invalid license key. Aborting
436 0
运行JProfiler:ERROR: Invalid license key. Aborting
|
5月前
|
存储 缓存 自然语言处理
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
46 1
|
6月前
|
JavaScript 安全 网络安全
Node: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error‘ ]异常处理
Node: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error‘ ]异常处理
2845 0
|
Java Maven Android开发
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
|
6月前
|
机器学习/深度学习 Java Android开发
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
225 0
|
Java Spring
【Java异常】Caused by: com.sun.mail.iap.BadCommandException: A3 BAD invalid command or parameters的解决方案
【Java异常】Caused by: com.sun.mail.iap.BadCommandException: A3 BAD invalid command or parameters的解决方案
184 0
|
数据安全/隐私保护
Do Sync Disk 0 Part 0 Failed, code=S3_F42, msg=Sync Failed after retry 5 times
Do Sync Disk 0 Part 0 Failed, code=S3_F42, msg=Sync Failed after retry 5 times
191 1
排错-Error--memory violation Exception ACCESS_VIOLATION received解决方
排错-Error--memory violation Exception ACCESS_VIOLATION received解决方
226 0