← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1164072] Re: libvirt livemigration warning logger refernces a not defined local variable

 

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

** Changed in: nova
    Milestone: None => havana-1

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

Title:
  libvirt livemigration warning logger refernces a not defined local
  variable

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Released

Bug description:
  2013-04-03 19:45:56.433 7807 TRACE nova.compute.manager [instance: db05a638-846f-41cc-b013-e2e352e707d0] KeyError: u'u\'hostname\'\nTraceback (most recent call last):\n\n  File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n\n  File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n    return getattr(proxyobj, method)(ctxt, **kwargs)\n\n  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3071, in pre_live_migration\n    migrate_data)\n\n  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3201, in pre_live_migration\n    % locals())\n\nKeyError: u\'hostname\'\n'
  2013-04-03 19:45:56.433 7807 TRACE nova.compute.manager [instance: db05a638-846f-41cc-b013-e2e352e707d0] 
  2013-04-03 19:45:58.036 ERROR nova.openstack.common.rpc.amqp [req-8a1d4d7f-8bff-4e57-b57c-dc4698f5c25c 6787bedca8804cd7b204748d0240235c 4251d38a5827440299d71e3b3d78350b] Exception during message handling
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3115, in live_migration
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     block_migration, migrate_data)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3108, in live_migration
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     block_migration, disk, dest, migrate_data)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/rpcapi.py", line 408, in pre_live_migration
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     version='2.21')
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/proxy.py", line 80, in call
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     return rpc.call(context, self._get_topic(topic), msg, timeout)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/__init__.py", line 140, in call
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     return _get_impl().call(CONF, context, topic, msg, timeout)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/impl_qpid.py", line 610, in call
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     rpc_amqp.get_connection_pool(conf, Connection))
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 613, in call
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     rv = list(rv)
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 562, in __iter__
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp     raise result
  2013-04-03 19:45:58.036 7807 TRACE nova.openstack.common.rpc.amqp KeyError: u'u\'hostname\'\nTraceback (most recent call last):\n\n  File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n\n  File "/usr/lib/python2.7/site-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n    return getattr(proxyobj, method)(ctxt, **kwargs)\n\n  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3071, in pre_live_migration\n    migrate_data)\n\n  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3201, in pre_live_migration\n    % locals())\n\nKeyError: u\'hostname\'\n'

  
  https://github.com/openstack/nova/blob/2ee1c3d9f5342a135d422afcc7ea45264d232d2c/nova/virt/libvirt/driver.py#L3206

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