image create fails with QemuImgInfo error

Bug #1076114 reported by David Kranz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Russell Bryant

Bug Description

Running the latest devstack, 'nova image-create' fails. The following is seen in the n-cpu log:

2012-11-07 14:56:34 23496 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp temp_level, payload)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 92, in wrapped
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return f(*args, **kw)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 175, in decorated_function
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp pass
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 161, in decorated_function
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 202, in decorated_function
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp kwargs['instance']['uuid'], e, sys.exc_info())
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 190, in decorated_function
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 1291, in snapshot_instance
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp self.driver.snapshot(context, instance, image_id)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp temp_level, payload)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 92, in wrapped
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return f(*args, **kw)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 822, in snapshot
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp source_format = libvirt_utils.get_disk_type(disk_path)
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/libvirt/utils.py", line 420, in get_disk_type
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp return images.qemu_img_info(path)['file format']
2012-11-07 14:56:34 23496 TRACE nova.openstack.common.rpc.amqp TypeError: 'QemuImgInfo' object has no attribute '__getitem__'

Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Tiago Rodrigues de Mello (tmello)
Revision history for this message
Russell Bryant (russellb) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/15655

Changed in nova:
assignee: Tiago Rodrigues de Mello (tmello) → Joshua Harlow (harlowja)
status: Confirmed → In Progress
Changed in nova:
assignee: Joshua Harlow (harlowja) → Russell Bryant (russellb)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/15655
Committed: http://github.com/openstack/nova/commit/528add2df39c2381cc7992a5026d283eea8816fa
Submitter: Jenkins
Branch: master

commit 528add2df39c2381cc7992a5026d283eea8816fa
Author: Joshua Harlow <email address hidden>
Date: Thu Nov 8 10:47:41 2012 -0800

    Another case of dictionary access

    Fixes bug 1076114 which was using the old dictionary
    access for getting the qemu image info 'file format'
    attribute which now should be through direct attribute
    access to 'file_format' instead.

    Change-Id: Id4c12b43b389b2fd2300d02743db17cf48b38e8f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.