[Openstack-devel] folsom cinder backtrace

Loic Dachary loic at dachary.org
Sun Feb 24 15:28:38 UTC 2013


Hi,

The patch is applied in python-cinderclient-1.0.2 but the version found at
http://ftp.gplhost.com/debian/pool/openstack/main/p/python-cinderclient/
triggers another problem when detaching the volume. In cinder.log it says:

2013-02-24 15:02:37 28994 CRITICAL cinder [-] Got unknown keyword args to utils.execute: {'old_name': None}
2013-02-24 15:02:37 28994 TRACE cinder Traceback (most recent call last):
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/bin/cinder-volume", line 48, in <module>
2013-02-24 15:02:37 28994 TRACE cinder     service.wait()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 422, in wait
2013-02-24 15:02:37 28994 TRACE cinder     _launcher.wait()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 127, in wait
2013-02-24 15:02:37 28994 TRACE cinder     service.wait()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2013-02-24 15:02:37 28994 TRACE cinder     return self._exit_event.wait()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-02-24 15:02:37 28994 TRACE cinder     return hubs.get_hub().switch()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2013-02-24 15:02:37 28994 TRACE cinder     return self.greenlet.switch()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2013-02-24 15:02:37 28994 TRACE cinder     result = function(*args, **kwargs)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 88, in run_server
2013-02-24 15:02:37 28994 TRACE cinder     server.start()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 159, in start
2013-02-24 15:02:37 28994 TRACE cinder     self.manager.init_host()
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 101, in init_host
2013-02-24 15:02:37 28994 TRACE cinder     self.driver.ensure_export(ctxt, volume)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 352, in ensure_export
2013-02-24 15:02:37 28994 TRACE cinder     old_name=old_name)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 198, in create_iscsi_target
2013-02-24 15:02:37 28994 TRACE cinder     self._new_target(name, tid, **kwargs)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 211, in _new_target
2013-02-24 15:02:37 28994 TRACE cinder     **kwargs)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 60, in _run
2013-02-24 15:02:37 28994 TRACE cinder     self._execute(self._cmd, *args, run_as_root=True, **kwargs)
2013-02-24 15:02:37 28994 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 142, in execute
2013-02-24 15:02:37 28994 TRACE cinder     'to utils.execute: %r') % kwargs)
2013-02-24 15:02:37 28994 TRACE cinder Error: Got unknown keyword args to utils.execute: {'old_name': None}
2013-02-24 15:02:37 28994 TRACE cinder



On 02/24/2013 12:21 PM, Loic Dachary wrote:
> Hi,
> 
> I think the problem comes from the fact that the python-cinderclient package for folsom needs upgrading. Namely, it contains
> 
> http://anonscm.debian.org/gitweb/?p=openstack/python-cinderclient.git;a=blob;f=cinderclient/v1/volumes.py;h=2ef19b8050519bb5da93cfbb8ee335b1f574ea59;hb=195e3f10b01d3c9c6042660280fc0f656e9eb54a
> 
> which misses the following commit:
> 
> https://github.com/openstack/python-cinderclient/commit/a4d46014
> 
> and I think it impacts all people who installed the package : they are unable to detach volumes.
> 
> Cheers
> 
> On 02/22/2013 01:16 PM, Loic Dachary wrote:
>> Hi,
>>
>> I'm having the following backtrace when running 
>>
>> nova volume-detach test e21b0144-ff91-432a-8c4a-203030e85d12
>>
>> Note that the volume has been successfully created, attached to a VM and used. It is using LVM.
>>
>> The full list of packages is http://paste.debian.net/236717/ and they all come from http://ftp.gplhost.com/debian/
>> I would like to know if anyone already had this issue. And most importantly if anyone has a working cinder with these packages, meaning I should look for an issue in my environment instead of a packaging bug ;-)
>>
>> Cheers
>>
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack Traceback (most recent call last):
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 78, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return req.get_response(self.application)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     application, catch_exc_info=False)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return resp(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return self.app(env, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return resp(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return resp(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return resp(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     response = self.app(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return resp(environ, start_response)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 894, in __call__
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     content_type, body, accept)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 942, in _process_stack
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1030, in dispatch
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return method(req=request, **action_args)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/volumes.py", line 446, in delete
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     volume_id=volume_id)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1937, in detach_volume
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     self._detach_volume(context, instance, volume_id)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 105, in inner
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     return function(self, context, instance, *args, **kwargs)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1917, in _detach_volume
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     self.volume_api.begin_detaching(context, volume)
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/volume/cinder.py", line 178, in begin_detaching
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack     cinderclient(context).volumes.begin_detaching(volume['id'])
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack AttributeError: 'VolumeManager' object has no attribute 'begin_detaching'
>> 2013-02-22 11:48:18 30499 TRACE nova.api.openstack
>> 2013-02-22 11:48:18 INFO nova.api.openstack [req-1fa3bc8f-2436-4607-8e90-cdb0014e477e 2daa9763d7424bfeb43329779dadc90a 3a0aff9bf01741dab6f1640c400b4f11] http://10.8.0.46:8774/v2/3a0aff9bf01741dab6f1640c400b4f11/servers/871\
>> e9232-0a5d-4c2d-bfb2-904d16acea2f/os-volume_attachments/e21b0144-ff91-432a-8c4a-203030e85d12 returned with HTTP 500
>>
>>
> 

-- 
Loïc Dachary, Artisan Logiciel Libre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20130224/83982900/attachment.pgp>


More information about the Openstack-devel mailing list