← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1379389] [NEW] filer hosts for live migration by cpu compatibility

 

Public bug reported:

when we try to live migrate an instance, we get available host list.
however, we fail on cpu compatibility.

It would be good if we can filter hosts so that user's cannot migrate
instances to hosts that are incompatible.

I opened a ticket for novacli to create a query for host compatibility which horizon can use:
https://bugs.launchpad.net/python-novaclient/+bug/1379385

here is the error we would get when trying to migrate:

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
:

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1379389

Title:
  filer hosts for live migration by cpu compatibility

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  when we try to live migrate an instance, we get available host list.
  however, we fail on cpu compatibility.

  It would be good if we can filter hosts so that user's cannot migrate
  instances to hosts that are incompatible.

  I opened a ticket for novacli to create a query for host compatibility which horizon can use:
  https://bugs.launchpad.net/python-novaclient/+bug/1379385

  here is the error we would get when trying to migrate:

  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
  :

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1379389/+subscriptions


Follow ups

References