cinder/cinder/api
Rajat Dhasmana b46f5becda Modify default/delete volume type logic
This patch modifies the delete volume type logic such that a volume type
cannot be deleted if:
1) It is the default volume type
2) The default type configured is wrong/doesn't exist

This also implies that there will exist atleast 1 volume type in the
deployment and that will be the default volume type.

This also includes following 2 changes on the default_volume_type conf option:
1) It is a mandatory field
2) default value of this config option is '__DEFAULT__'

All these changes ensure that we don't allow creating untyped volumes.

Also it is now possible to delete the '__DEFAULT__' type as it acts
as a normal type.

Change-Id: Ifa3d22305060b5913332cad89ea696bf7fd84ce1
Closes-Bug: #1886632
(cherry picked from commit e5d842eb1b)
2020-09-16 14:47:10 +00:00
..
contrib Modify default/delete volume type logic 2020-09-16 14:47:10 +00:00
middleware Move some code out of utils.py 2019-08-26 11:34:20 -04:00
openstack Merge "Fix some typos in docs" 2020-04-23 04:48:55 +00:00
schemas Add volume type name and description check when update volume type 2019-10-11 15:56:10 +08:00
v2 Modify default/delete volume type logic 2020-09-16 14:47:10 +00:00
v3 Modify default/delete volume type logic 2020-09-16 14:47:10 +00:00
validation validator: Replace InvalidInput exception w/ InvalidName 2020-04-07 16:21:41 -04:00
views Fix issue of getting detail backups list info 2019-08-02 03:17:29 +00:00
__init__.py Remove API v1 2017-09-06 07:39:10 -05:00
api_utils.py Move some code out of utils.py 2019-08-26 11:34:20 -04:00
common.py Merge "Extend remove_version_from_href support" 2020-03-19 14:03:16 +00:00
extensions.py Enable flake8-logging-format extension 2020-01-09 14:35:20 -06:00
microversions.py Support to query volume filter by updated_at/created_at 2020-02-25 17:58:13 +08:00
urlmap.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
versions.py Exclude disabled API versions from listing 2018-09-26 23:31:46 +00:00