cinder/cinder/api/contrib
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
..
__init__.py Use oslo.log instead of oslo-incubator 2015-03-11 21:45:04 -05:00
admin_actions.py API: os-reset_status notification fix 2020-03-25 15:34:52 +00:00
availability_zones.py Remove XML API 2016-04-21 16:05:29 +00:00
backups.py Refactor API utilities into api_utils.py 2019-08-05 16:59:59 -04:00
capabilities.py Use constants for cinder-volume 2017-12-29 09:05:08 +08:00
cgsnapshots.py Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
consistencygroups.py Deprecate CG APIs 2017-12-22 06:33:27 -08:00
extended_services.py Remove XML API 2016-04-21 16:05:29 +00:00
extended_snapshot_attributes.py Use soft authorize for 'extended_snapshot_attributes' policy 2018-03-16 10:21:28 +08:00
hosts.py Deprecate Cinder Hosts API/Extension 2018-02-07 11:44:27 -07:00
qos_specs_manage.py Refactor API utilities into api_utils.py 2019-08-05 16:59:59 -04:00
quota_classes.py V3 jsonschema validation: Quota classes 2018-04-27 08:39:56 +05:30
quotas.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
resource_common_manage.py Use constants for microversion values 2017-09-22 08:15:56 -05:00
scheduler_hints.py Add OS-SCH-HNT in extensions list 2019-06-07 08:38:06 +05:30
scheduler_stats.py [policy in code] Add support for service, limits 2017-10-12 15:08:34 +08:00
services.py Fix service-get-log to respect server filters 2020-06-22 17:07:25 +00:00
snapshot_actions.py V3 jsonschema validation: snapshot_actions 2018-04-10 14:23:56 +05:30
snapshot_manage.py Add missing 'target_obj' when perform policy check 2018-03-19 19:02:00 +08:00
snapshot_unmanage.py Add missing 'target_obj' when perform policy check 2018-03-19 19:02:00 +08:00
types_extra_specs.py Support multiple stores of Glance 2020-01-21 06:02:47 +00:00
types_manage.py Modify default/delete volume type logic 2020-09-16 14:47:10 +00:00
used_limits.py [policy in code] Add support for service, limits 2017-10-12 15:08:34 +08:00
volume_actions.py Use volume utils to clone encryption 2019-11-12 17:52:04 +08:00
volume_encryption_metadata.py Add missing 'target_obj' when perform policy check 2018-03-19 19:02:00 +08:00
volume_host_attribute.py [policy in code] Add support for volume, volume type resources 2017-10-17 09:54:28 +08:00
volume_image_metadata.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
volume_manage.py Refactor API utilities into api_utils.py 2019-08-05 16:59:59 -04:00
volume_mig_status_attribute.py [policy in code] Add support for volume, volume type resources 2017-10-17 09:54:28 +08:00
volume_tenant_attribute.py [policy in code] Add support for volume, volume type resources 2017-10-17 09:54:28 +08:00
volume_transfer.py Support volume transfer `name` filters 2020-02-07 06:30:42 +00:00
volume_type_access.py V3 jsonschema validation: volume_type_access 2018-01-22 12:43:46 +05:30
volume_type_encryption.py Resolve deprecation of encryption policy target 2020-04-16 10:59:18 -04:00
volume_unmanage.py Add missing 'target_obj' when perform policy check 2018-03-19 19:02:00 +08:00