Creating a volume out of an image using the nova api fails

Bug #1074061 reported by Johnny Boy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Trying to create a volume using this command:

nova volume-create --image-id 9542ab1e-3602-4940-86d3-1e7593c32ed7 --display-name "something" 50

The nova-volume.log shows:

2012-11-01 17:16:58 DEBUG nova.volume.manager [req-67d0a83a-b014-400f-b63f-169bef91a432 4629023da94042e5ab9b1fab79ddc2ce b73867eacaa64a90a77e16aa5cc86686] volume volume-4e7657a5-3e03-495b-a48f-9dcab7a5f8ca: creating lv of size 50G from (pid=1592) create_volume /usr/lib/python2.7/dist-packages/nova/volume/manager.py:137
2012-11-01 17:16:58 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 275, in _process_data
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 166, in create_volume
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp volume_ref['id'], {'status': 'error'})
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 150, in create_volume
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp image_location = image_service.get_location(context, image_id)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 210, in get_location
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp _reraise_translated_image_exception(image_id)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 208, in get_location
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp image_meta = client.call(context, 2, 'get', image_id)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 138, in call
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp return getattr(client.images, method)(*args, **kwargs)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 54, in get
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp resp, body = self.http_client.json_request('GET', url)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 174, in json_request
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp resp, body_iter = self._http_request(url, method, **kwargs)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 158, in _http_request
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp raise exc.from_response(resp)
2012-11-01 17:16:58 TRACE nova.openstack.common.rpc.amqp HTTPInternalServerError: HTTPInternalServerError (HTTP 500)

The glance api.log and the apache error.log shows nothing in relation to this. I'm not sure how to further debug it.

I'm using Folsom on Ubuntu 12.04.

Revision history for this message
John Griffith (john-griffith) wrote :

So it looks like this is actually a nova-volume issue, not a Cinder issue. Not sure why you're unable to reach Glance though... no issues with nova boot or other glance interactions?

Changed in cinder:
status: New → Incomplete
Changed in nova:
status: New → Incomplete
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This bug lacks the necessary information to effectively reproduce and fix it, therefore it has been closed. Feel free to reopen the bug by providing the requested information and set the bug status back to ''New''.

Changed in nova:
status: Incomplete → Invalid
Revision history for this message
Kamil Gardziejczyk (belussi-pl) wrote :
Revision history for this message
John Griffith (john-griffith) wrote :

Based on the discussion you referenced, this would be classified as a packstack but and not a Cinder or Nova bug. Unless there's some additional detail I'm missing, it seems this has been identified as an issue with how packstack is (or more accurately is NOT) initializing the Glance DataBase.

Changed in cinder:
status: Incomplete → Invalid
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.