image snapshots broken (disk config change causes glance plugin AttributeError)

Bug #860520 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Prince

Bug Description

Using nova trunk a515337.

I'm now getting the following exception when trying to create an image snapshot w/ nova:

2011-09-27 08:20:34,265 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/python2.6/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.6/dist-packages/nova/exception.py", line 98, in wrapped
(nova.rpc): TRACE: return f(*args, **kw)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 687, in snapshot_instance
(nova.rpc): TRACE: self.driver.snapshot(context, instance_ref, image_id)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi_conn.py", line 209, in snapshot
(nova.rpc): TRACE: self._vmops.snapshot(context, instance, image_id)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vmops.py", line 561, in snapshot
(nova.rpc): TRACE: options)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vm_utils.py", line 402, in upload_image
(nova.rpc): TRACE: session.wait_for_task(task, instance.id)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi_conn.py", line 455, in wait_for_task
(nova.rpc): TRACE: return done.wait()
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/eventlet/event.py", line 116, in wait
(nova.rpc): TRACE: return hubs.get_hub().switch()
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/eventlet/hubs/hub.py", line 177, in switch
(nova.rpc): TRACE: return self.greenlet.switch()
(nova.rpc): TRACE: Failure: ['XENAPI_PLUGIN_EXCEPTION', 'upload_vhd', 'AttributeError', "'NoneType' object has no attribute 'get'"]
(nova.rpc): TRACE:

---

According to smokestack revision 532cd93 runs clean (and can create snapshots). It looks like 144b5e4 (Adds disk config) is the culprit here.

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/nova

Reviewed: https://review.openstack.org/680
Committed: http://github.com/openstack/nova/commit/21da183edee9c8f8ddf0ff6a880486c0ed2e4623
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 21da183edee9c8f8ddf0ff6a880486c0ed2e4623
Author: Dan Prince <email address hidden>
Date: Tue Sep 27 08:58:54 2011 -0400

    Make sure options is set before checking managed_disk setting. Fixes bug 860520.

    Change-Id: I83c6c1cdb8e11959d6af5c08827e9f9ce82a5913

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-1
Revision history for this message
Rajesh Battala (rajesh-battala) wrote :

Hi ,
When am trying to create a snapshot from the Dashboard, am getting the error 403.
there is problem in nova/glance.py or glance/common/client.py. Its not able to get the Auth Token.
Are you able to get this error when trying to take snapshot?

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-1 → 2012.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.