cinder/cinder/api
Rajat Dhasmana 36cfe78132 Fix: show volume by name for non-admins
Currently we don't pop the all_tenants field for non-admins resulting
in database not able to process it and no records are displayed.
Cinderclient passes it for most APIs since it doesn't have the context
and cannot determine if the user is admin or non-admin.
On the API side, we need to filter out the all_tenants key for non-admins
since it is only valid for admin operations.
This only happens incase of general filtering API which was introduced
in microversion 3.31, prior to this all invalid filters were removed.

Closes-Bug: #1917574
Change-Id: Idf619b4dbb64318f6e2231b13b8bacce3deaa43b
(cherry picked from commit b675b66d4f)
2021-04-07 05:27:12 +00:00
..
contrib Remove nested quota leftovers 2021-04-05 06:19:07 +00:00
middleware Import HTTPStatus instead of http_client 2020-10-08 13:16:18 -04:00
openstack Add encryption_key_id to volume and backup details 2021-02-04 07:23:08 -08:00
schemas API validation: Use cinder_host for services checks 2021-03-13 21:55:57 +00:00
v2 Introduces MV to add volume type ID in volumes details 2021-01-15 10:46:12 -03:00
v3 Support format info in fs type drivers 2021-03-12 12:41:12 -05:00
validation API validation: Add cinder_host type to support ipv6 in manage 2021-03-11 10:32:13 -05:00
views Remove six of dir cinder/api/* 2020-10-07 14:20:48 +08:00
__init__.py Remove API v1 2017-09-06 07:39:10 -05:00
api_utils.py Remove six of dir cinder/api/* 2020-10-07 14:20:48 +08:00
common.py Fix: show volume by name for non-admins 2021-04-07 05:27:12 +00:00
extensions.py Remove exception.Error class 2020-07-21 18:21:21 +03:00
microversions.py Add encryption_key_id to volume and backup details 2021-02-04 07:23:08 -08:00
urlmap.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
versions.py Import HTTPStatus instead of http_client 2020-10-08 13:16:18 -04:00