← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 867627] Re: Failure while rebuilding an instance with libvirt

 

** No longer affects: nova/diablo

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

Title:
  Failure while rebuilding an instance with libvirt

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  On the Diablo release, trying to run 'nova rebuild' on an instance
  running on libvirt results in a failure with:

  2011-10-04 16:57:15,543 DEBUG nova.virt.libvirt_conn [-] instance instance-00000001: starting toXML method from (pid=18743) to_xml /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:1162
  2011-10-04 16:57:15,543 ERROR nova.exception [-] Uncaught exception
  (nova.exception): TRACE: Traceback (most recent call last):
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped
  (nova.exception): TRACE:     return f(*args, **kw)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 597, in spawn
  (nova.exception): TRACE:     block_device_info=block_device_info)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1164, in to_xml
  (nova.exception): TRACE:     block_device_info)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1058, in _prepare_xml_info
  (nova.exception): TRACE:     block_device_info)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 58, in block_device_info_get_mapping
  (nova.exception): TRACE:     block_device_mapping = block_device_info.get('block_device_mapping') or []
  (nova.exception): TRACE: AttributeError: 'tuple' object has no attribute 'get'
  (nova.exception): TRACE: 
  2011-10-04 16:57:15,575 DEBUG nova.rpc [-] Making asynchronous cast on notifications.error... from (pid=18743) cast /usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py:747
  [...]
  (nova.exception): TRACE: Traceback (most recent call last):
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/notifier/api.py", line 122, in notify
  (nova.exception): TRACE:     driver.notify(msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/notifier/rabbit_notifier.py", line 36, in notify
  (nova.exception): TRACE:     rpc.cast(context, topic, message)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 49, in cast
  (nova.exception): TRACE:     return get_impl().cast(context, topic, msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 750, in cast
  (nova.exception): TRACE:     conn.topic_send(topic, msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 465, in topic_send
  (nova.exception): TRACE:     self.publisher_send(TopicPublisher, topic, msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 433, in publisher_send
  (nova.exception): TRACE:     publisher.send(msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 234, in send
  (nova.exception): TRACE:     self.producer.publish(msg)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 121, in publish
  (nova.exception): TRACE:     compression, headers)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 144, in _prepare
  (nova.exception): TRACE:     body) = encode(body, serializer=serializer)
  (nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/kombu/serialization.py", line 119, in encode
  (nova.exception): TRACE:     payload = encoder(data)
  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 123, in <lambda>
  (nova.exception): TRACE:     serialize = lambda value: implementation.serialize(value)
  (nova.exception): TRACE:   File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 85, in serialize
  (nova.exception): TRACE:     raise TypeError(*exc.args)
  (nova.exception): TRACE: TypeError: <capsule object "virConnectPtr" at 0x434fe70> is not JSON serializable
  (nova.exception): TRACE: 
  2011-10-04 16:57:15,584 ERROR nova.rpc [-] Exception during message handling
  (nova.rpc): TRACE: Traceback (most recent call last):
  (nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data
  (nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)
  (nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped
  (nova.rpc): TRACE:     return f(*args, **kw)
  (nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 117, in decorated_function
  (nova.rpc): TRACE:     function(self, context, instance_id, *args, **kwargs)
  (nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 574, in rebuild_instance
  (nova.rpc): TRACE:     self.driver.spawn(context, instance_ref, network_info, bd_mapping)
  (nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 129, in wrapped
  (nova.rpc): TRACE:     raise Error(str(e))
  (nova.rpc): TRACE: Error: 'tuple' object has no attribute 'get'
  (nova.rpc): TRACE:

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