← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1118491] Re: check_can_live_migrate_source does not return data (xenapi)

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

-- 
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/1118491

Title:
  check_can_live_migrate_source does not return data (xenapi)

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  I try to live block migrate on nova trunk with xenapi as virt driver
  and I see this stacktrace in the scheduler log:

  2013-02-07 05:18:02.768 ERROR nova.openstack.common.rpc.amqp [req-33d5b197-0db2-48f3-b1f6-c2ddd60b0855 YWg4YWB8q9aDwKbdC4lR4DAY YWg4YWB8q9aDwKbdC4lR4DAY] Exception during message handling
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 99, in live_migration
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     context, ex, {})
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 94, in live_migration
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     block_migration, disk_over_commit)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/scheduler/driver.py", line 170, in schedule_live_migration
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     context, instance, dest, block_migration, disk_over_commit)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/rpcapi.py", line 225, in check_can_live_migrate_destination
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     ctxt, destination, None))
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line 80, in call
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     return rpc.call(context, self._get_topic(topic), msg, timeout)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 109, in call
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     return _get_impl().call(cfg.CONF, context, topic, msg, timeout)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 765, in call
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     rpc_amqp.get_connection_pool(conf, Connection))
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 379, in call
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     rv = list(rv)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 347, in __iter__
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     raise result
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'update'
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 109, in wrapped
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     temp_level, payload)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2657, in check_can_live_migrate_destination
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp     migrate_data.update(dest_check_data['migrate_data'])
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp
  2013-02-07 05:18:02.768 10466 TRACE nova.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'update'

  I narrowed it down to the fact that

  https://github.com/openstack/nova/blob/master/nova/virt/xenapi/driver.py#L443

  does not return dest_check_data.

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