cinder/cinder/api/v3
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
..
views Add project_id in group snapshots list and show API 2019-03-01 22:59:19 +05:30
__init__.py cinder-api-microversions code 2016-02-24 06:50:54 -07:00
attachments.py Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
backups.py Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
clusters.py V3 jsonschema validation: Clusters 2018-03-23 13:17:56 +05:30
consistencygroups.py Add cg policies and clean up old policy handling 2017-12-04 10:07:54 +08:00
group_snapshots.py Update delete group snapshot API exception handling 2018-07-31 17:36:10 -04:00
group_specs.py V3 jsonschema validation: Group type specs 2017-12-12 14:48:42 +05:30
group_types.py Refactor API utilities into api_utils.py 2019-08-05 16:59:59 -04:00
groups.py V3 json schema validation: generic volume groups 2018-05-08 18:07:28 +05:30
limits.py Use constants for microversion values 2017-09-22 08:15:56 -05:00
messages.py Add missing 'target_obj' when perform policy check 2018-03-19 19:02:00 +08:00
resource_common_manage.py Use constants for microversion values 2017-09-22 08:15:56 -05:00
resource_filters.py Use constants for microversion values 2017-09-22 08:15:56 -05:00
router.py [Trivial fix]Remove unnecessary slash 2019-05-06 13:56:27 +08:00
snapshot_manage.py V2/V3 json schema validation: snapshot manage 2018-01-02 09:52:42 +05:30
snapshots.py Refactor API utilities into api_utils.py 2019-08-05 16:59:59 -04:00
volume_manage.py V3 json schema validation: volume manage 2018-04-16 09:56:23 +05:30
volume_metadata.py V3 jsonschema validation: Volume metadata 2017-12-08 12:40:01 +05:30
volume_transfer.py Support volume transfer `name` filters 2020-02-07 06:30:42 +00:00
volumes.py Modify default/delete volume type logic 2020-09-16 14:47:10 +00:00
workers.py Replace HTTP numeric codes with constants 2019-04-02 14:07:30 +05:30