cinder/cinder/tests/unit/volume/flows
Rajat Dhasmana e5d842eb1b 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
2020-08-19 02:07:15 +00:00
..
api Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00
__init__.py Add entry create and cast tasks to manage workflow 2015-07-27 19:20:22 +03:00
fake_volume_api.py Fix A/A 'resource_backend' when scheduling volumes 2018-12-13 09:56:34 -05:00
test_create_volume_flow.py Default volume_type set too early 2020-06-24 17:07:38 -04:00
test_manage_snapshot_flow.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_manage_volume_flow.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00