← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1644891] Re: Guest shouldn't be migrated to same host

 

Issue is with devstack default config.

** Changed in: nova
       Status: New => Invalid

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

Title:
  Guest shouldn't be migrated to same host

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description
  ===========

  Issuing a migrate (not live migrate) on a guest can get it to be
  scheduled on the same host.

  Some hypervisor allows resize on the same host, but not libvirt.
  Anyhow, by definition, migrate should be scheduled on a different
  host.

  Steps to reproduce
  ==================

  1) Boot a guest
  2) Migrate the guest

  Expected result
  ===============

  The guest should be re-scheduled on a different host.

  Actual result
  =============

  It's possible for the guest to be migrated to the same host as where
  it is currently running.

  Environment
  ===========

  commit 7188bd01ec0264f6efee1ee5014a9edf71a57e5b
  Merge: 2249898 6a85a98
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Fri Nov 25 16:57:47 2016 +0000

      Merge "libvirt: prepare domain XML update for serial ports"

  Logs & Configs
  ==============

  2016-11-25 12:41:33.240 ERROR oslo_messaging.rpc.server [req-9d87c551-563d-4443-8a62-784a2a5a5670 admin demo] Exception during message handling
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server Traceback (most recent call last):
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 225, in dispatch
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 195, in _do_dispatch
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 75, in wrapped
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     function_name, call_dict, binary)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     self.force_reraise()
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 66, in wrapped
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     return f(self, context, *args, **kw)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 188, in decorated_function
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     LOG.warning(msg, e, instance=instance)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     self.force_reraise()
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 157, in decorated_function
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/utils.py", line 664, in decorated_function
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 216, in decorated_function
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     self.force_reraise()
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 204, in decorated_function
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 3724, in prep_resize
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     filter_properties)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 3775, in _reschedule_resize_or_reraise
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     six.reraise(*exc_info)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 3713, in prep_resize
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     node, clean_shutdown)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 3652, in _prep_resize
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server     instance_id=instance.uuid, host=self.host)
  2016-11-25 12:41:33.240 TRACE oslo_messaging.rpc.server UnableToMigrateToSelf: Unable to migrate instance (25ee00f2-fa5b-4cc4-bceb-486a95979d43) to current host (IronPass-2).

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


References