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

Bug #860520 reported by Dan Prince on 2011-09-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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/", 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/", line 98, in wrapped
(nova.rpc): TRACE: return f(*args, **kw)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/", 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/", 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/", line 561, in snapshot
(nova.rpc): TRACE: options)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/", line 402, in upload_image
(nova.rpc): TRACE: session.wait_for_task(task,
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/", line 455, in wait_for_task
(nova.rpc): TRACE: return done.wait()
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/eventlet/", line 116, in wait
(nova.rpc): TRACE: return hubs.get_hub().switch()
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/eventlet/hubs/", 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) on 2011-09-27
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → High

Submitter: Jenkins
Branch: master

 status fixcommitted

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) on 2011-11-09
Changed in nova:
milestone: none → essex-1
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/ or glance/common/ Its not able to get the Auth Token.
Are you able to get this error when trying to take snapshot?

Thierry Carrez (ttx) on 2011-11-17
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers