** No longer affects: nova/folsom -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1050190
Title: osapi_volume snapshot-list doesn't work with cinder Status in OpenStack Compute (Nova): Invalid Bug description: When running nova-api with osapi_volume enabled and volume_api_class set to nova.volume.cinder - nova volume-snapshot-list fails. 2012-09-13 04:28:53 INFO nova.api.openstack.wsgi [req-6056b2ad-cfdc-434f-a753-027657b89d02 demo demo] GET http://10.127.0.28:8776/v1/ac3a0f688ee94e829dede4b8056b8b85/snapshots/detail GET http://10.127.0.28:8776/v1/ac3a0f688ee94e829dede4b8056b8b85/snapshots/detail 2012-09-13 04:28:53 DEBUG nova.api.openstack.wsgi [req-6056b2ad-cfdc-434f-a753-027657b89d02 demo demo] No Content-Type provided in request from (pid=16290) get_body /opt/stack/nova/nova/api/openstack/wsgi.py:775 No Content-Type provided in request 2012-09-13 04:28:53 ERROR nova.api.openstack.wsgi [req-6056b2ad-cfdc-434f-a753-027657b89d02 demo demo] Exception handling resource: get_all_snapshots() got an unexpected keyword argument 'search_opts' 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi Traceback (most recent call last): 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 925, in _process_stack 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1013, in dispatch 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi return method(req=request, **action_args) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/volume/snapshots.py", line 127, in detail 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi return self._items(req, entity_maker=_translate_snapshot_detail_view) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/volume/snapshots.py", line 137, in _items 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi search_opts=search_opts) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi TypeError: get_all_snapshots() got an unexpected keyword argument 'search_opts' 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi Exception handling resource: get_all_snapshots() got an unexpected keyword argument 'search_opts' 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi Traceback (most recent call last): 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 925, in _process_stack 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1013, in dispatch 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi return method(req=request, **action_args) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/volume/snapshots.py", line 127, in detail 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi return self._items(req, entity_maker=_translate_snapshot_detail_view) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/volume/snapshots.py", line 137, in _items 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi search_opts=search_opts) 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi TypeError: get_all_snapshots() got an unexpected keyword argument 'search_opts' 2012-09-13 04:28:53 TRACE nova.api.openstack.wsgi 2012-09-13 04:28:53 INFO nova.api.openstack.wsgi [req-6056b2ad-cfdc-434f-a753-027657b89d02 demo demo] http://10.127.0.28:8776/v1/ac3a0f688ee94e829dede4b8056b8b85/snapshots/detail returned with HTTP 400 http://10.127.0.28:8776/v1/ac3a0f688ee94e829dede4b8056b8b85/snapshots/detail returned with HTTP 400 2012-09-13 04:28:53 INFO nova.osapi_volume.wsgi.server [req-6056b2ad-cfdc-434f-a753-027657b89d02 demo demo] 10.127.0.28 - - [13/Sep/2012 04:28:53] "GET /v1/ac3a0f688ee94e829dede4b8056b8b85/snapshots/detail HTTP/1.1" 400 338 0.160828 There seems to have been a slight change in the signature between nova.volume.api.API.get_all_snapshots and nova.volume.cinder.API.get_all_snapshots. https://review.openstack.org/#/c/12816/3/nova/volume/cinder.py,unified To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1050190/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

