OpenStack Compute (Nova)

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

Reported by Dan Prince on 2011-09-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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) on 2011-09-27
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → High

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