[Openstack] [Cinder] volume from image

Mārtiņš Jakubovičs martins at vertigs.lv
Wed Jun 4 08:47:56 UTC 2014


Thanks, patch worked for me, but it is strange, I got all attributes,
which the lack of can cause that error described in bug report:

$ glance image-show 6a5862a4-6288-4845-994e-ca5a44092a61
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | cf2392db1f59d59ed69a8f8491b670e0     |
| container_format | bare                                 |
| created_at       | 2014-06-03T13:37:41                  |
| deleted          | False                                |
| disk_format      | raw                                  |
| id               | 6a5862a4-6288-4845-994e-ca5a44092a61 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | Cirros 0.3.2 x64 raw                 |
| owner            | cac514823e0e40158170fc3c2bcebb70     |
| protected        | False                                |
| size             | 41126400                             |
| status           | active                               |
| updated_at       | 2014-06-03T13:38:35                  |
+------------------+--------------------------------------+

On 2014.06.03. 23:46, Chris Buccella wrote:
> On 06/03/2014 10:54 AM, Mārtiņš Jakubovičs wrote:
>> Hello,
>>
>> I am playing with CEPH and cinder. I try to create cinder setup from
>> this tutorial: http://ceph.com/docs/master/rbd/rbd-openstack/
>>
>> At this point I can create volumes and attach them to running instances.
>> But if i create volume from an image, it fails with errors in cinder-api
>> log's: http://paste.openstack.org/show/82607/
>>
>> 2014-06-03 17:38:21.874 11379 AUDIT cinder.api.v1.volumes
>> [req-53f2d8ad-6296-4144-9064-b8979553111a
>> 4f6baff52d424d79967c25960e12d4d0 a3d7fb6ab05e4be28036d60e284a75f9 - - -]
>> Create volume of 1 GB
>> 2014-06-03 17:38:21.925 11379 ERROR cinder.api.middleware.fault
>> [req-53f2d8ad-6296-4144-9064-b8979553111a
>> 4f6baff52d424d79967c25960e12d4d0 a3d7fb6ab05e4be28036d60e284a75f9 - - -]
>> Caught error: deleted
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> Traceback (most recent call last):
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/api/middleware/fault.py", line
>> 75, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return req.get_response(self.application)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> application, catch_exc_info=False)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in
>> call_application
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> app_iter = application(self.environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return resp(environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py",
>>
>> line 582, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return self.app(env, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return resp(environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return resp(environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in
>> __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> response = self.app(environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return resp(environ, start_response)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault     resp
>> = self.call_func(req, *args, **self.kwargs)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return self.func(req, *args, **kwargs)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line
>> 895, in __call__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> content_type, body, accept)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line
>> 943, in _process_stack
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> action_result = self.dispatch(meth, request, action_args)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line
>> 1019, in dispatch
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return method(req=request, **action_args)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/api/v1/volumes.py", line 432,
>> in create
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> **kwargs)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/volume/api.py", line 189, in
>> create
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> flow_engine.run()
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/utils/lock_utils.py", line
>> 53, in wrapper
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> return f(*args, **kwargs)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
>>
>> line 111, in run
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> self._run()
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
>>
>> line 121, in _run
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> self._revert(misc.Failure())
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
>>
>> line 78, in _revert
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> misc.Failure.reraise_if_any(failures.values())
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line 558, in
>> reraise_if_any
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> failures[0].reraise()
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line 565, in
>> reraise
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> six.reraise(*self._exc_info)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py",
>>
>> line 36, in _execute_task
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> result = task.execute(**arguments)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/volume/flows/api/create_volume.py",
>>
>> line 341, in execute
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> self._check_image_metadata(context, image_id, size)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/volume/flows/api/create_volume.py",
>>
>> line 180, in _check_image_metadata
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> image_meta = self.image_service.show(context, image_id)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 228,
>> in show
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> base_image_meta = self._translate_from_glance(image)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 336, in
>> _translate_from_glance
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> image_meta = _extract_attributes(image)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 434, in
>> _extract_attributes
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> output[attr] = getattr(image, attr)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault   File
>> "/usr/lib/python2.7/dist-packages/warlock/model.py", line 72, in
>> __getattr__
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> raise AttributeError(key)
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>> AttributeError: deleted
>> 2014-06-03 17:38:21.925 11379 TRACE cinder.api.middleware.fault
>>
>> Maybe someone got this issue before and can help me to solve it.
> 
> 
> If you're using Icehouse 2014.1.0, this looks like it could be:
> 
> https://bugs.launchpad.net/cinder/+bug/1308058
> 
> 
> -Chris
> 
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack





More information about the Openstack mailing list