cinder/cinder/api/v2
Rajat Dhasmana e63cb8548a Default type overrides
This patch adds a feature by which we allow setting default volume types
for projects.
The following changes are made to achieve the feature:

1) Add 4 set of APIs, set, get, get_all, unset volume type
2) All policies (except get_all) default to system/domain/project admin
3) Preference order: project default, conf default
4) Logic to not allow deletion of default type

We validate set, get and unset APIs with keystone to verify a valid
project id is passed in the request and user has proper authorization
rights to show the project.

The policies are system/domain/project admin by default except get_all
policy which defaults to system admin.

Implements: Blueprint multiple-default-volume-types

Change-Id: Idcc949ed6adbaea0c2337fac83014998b81ff1f8
2020-09-16 14:05:31 +00:00
..
views Don't show host_name to non-admins 2020-07-02 08:17:36 +00:00
__init__.py adding copy of v1 as v2 2012-11-21 21:26:40 -08:00
limits.py Re-enable new pycodestyle errors 2019-06-04 14:28:09 +00:00
router.py [Trivial fix]Remove unnecessary slash 2019-05-06 13:56:27 +08:00
snapshot_metadata.py Performance: Remove useless snapshot object get 2017-06-23 01:49:53 +00:00
snapshots.py Rename volume/utils.py to volume/volume_utils.py 2019-09-09 15:00:07 -04:00
types.py Default type overrides 2020-09-16 14:05:31 +00:00
volume_metadata.py V3 jsonschema validation: Volume metadata 2017-12-08 12:40:01 +05:30
volumes.py Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00