for horizon to add filter on migration so that we only see hosts that are compatible for migration we need nova to create a check on cpu compatibility.
2014-10-09 16:58:48.942 28256 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: Unacceptable CPU info: CPU doesn't have compatibility.
0
Refer to http://libvirt.org/html/libvirt-libvirt.html#virCPUCompareResult
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher payload)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher e, sys.exc_info())
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 4440, in check_can_live_migrate_destination
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher block_migration, disk_over_commit)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4236, in check_can_live_migrate_destination
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher self._compare_cpu(source_cpu_info)
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4409, in _compare_cpu
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher raise exception.InvalidCPUInfo(reason=m % {'ret': ret, 'u': u})
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher 0
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher Refer to http://libvirt.org/html/libvirt-libvirt.html#virCPUCompareResult
2014-10-09 16:58:48.942 28256 TRACE oslo.messaging.rpc.dispatcher
2014-10-09 16:58:48.943 28256 ERROR oslo.messaging._drivers.common [-] Returning exception Unacceptable CPU info: CPU doesn't have compatibility.
0
Refer to http://libvirt.org/html/libvirt-libvirt.html#virCPUCompareResult to caller
2014-10-09 16:58:48.944 28256 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function\n e, sys.exc_info())\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 4440, in check_can_live_migrate_destination\n block_migration, disk_over_commit)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4236, in check_can_live_migrate_destination\n self._compare_cpu(source_cpu_info)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4409, in _compare_cpu\n raise exception.InvalidCPUInfo(reason=m % {\'ret\': ret, \'u\': u})\n', "InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.\n\n0\n\nRefer to http://libvirt.org/html/libvirt-libvirt.html#virCPUCompareResult\n"]
2014-10-09 16:59:31.735 28256 DEBUG nova.openstack.common.periodic_task [-] Running periodic task ComputeManager._poll_volume_usage run_periodic_tasks /usr/lib/python2.6/site-packages/nova/openstack/common/periodic_task.py:178
2014-10-09 16:59:31.735 28256 DEBUG nova.openstack.common.periodic_task [-] Running periodic task ComputeManager._instance_usage_audit run_periodic_tasks /usr/lib/python2.6/site-packages/nova/openstack/common/periodic_task.py:178
2014-10-09 16:59:31.736 28256 DEBUG nova.openstack.common.periodic_task [-] Running periodic task ComputeManager.update_available_resource run_periodic_tasks /usr/lib/python2.6/site-packages/nova/openstack/common/periodic_task.py:178
:
From what I understand, you are asking to add a feature to the novaclient library that would first validate cpu compatibility (perhaps through the hypervisors api[0]) before forwarding the migration request on to nova. Please add more detail to this bug if that is not the case.
[0] http:// developer. openstack. org/api- ref-compute- v2-ext. html#ext- os-hypervisors