Description of problem: In order to prevent confusion, customer want to get rid of volume types that are not to be used. So they want to delete the __DEFAULT__ volume type. They have the default_volume_type defined as 'nvme' (in this case). Version-Release number of selected component (if applicable): RHOSP16.1 Z3 Additional Information: There is an upstream bug: https://bugs.launchpad.net/cinder/+bug/1886632 that is supposed to be fixed in Train release. Following are the details from current env. -- $ openstack volume type list --long +--------------------------------------+-------------+-----------+---------------------+------------+ | ID | Name | Is Public | Description | Properties | +--------------------------------------+-------------+-----------+---------------------+------------+ | 929a6d82-ec95-4438-9896-200684fd6afa | nvme | True | None | | | 91835972-c228-4fd9-8d08-861e7f619ad5 | __DEFAULT__ | True | Default Volume Type | | +--------------------------------------+-------------+-----------+---------------------+------------+ -- $ openstack volume type list --default +--------------------------------------+------+-----------+ | ID | Name | Is Public | +--------------------------------------+------+-----------+ | 929a6d82-ec95-4438-9896-200684fd6afa | nvme | True | +--------------------------------------+------+-----------+ -- openstack volume type delete __DEFAULT__ It fails with error "Failed to delete volume type with name or ID '__DEFAULT__': Target volume type is default and cannot be deleted. (HTTP 400"
Verified on: openstack-cinder-15.4.0-1.20210713144324.58f0e73.el8ost.noarch Types that we currently have: (overcloud) [stack@undercloud-0 ~]$ openstack volume type list --long +--------------------------------------+-------------+-----------+---------------------+------------+ | ID | Name | Is Public | Description | Properties | +--------------------------------------+-------------+-----------+---------------------+------------+ | d9c999f3-58d9-44ff-9a61-390bd5439af1 | tripleo | True | None | | | daa51200-aaf5-4031-abb4-646bbf9493b3 | __DEFAULT__ | True | Default Volume Type | | +--------------------------------------+-------------+-----------+---------------------+------------+ The default type is set to tripleo (overcloud) [stack@undercloud-0 ~]$ openstack volume type list --default +--------------------------------------+---------+-----------+ | ID | Name | Is Public | +--------------------------------------+---------+-----------+ | d9c999f3-58d9-44ff-9a61-390bd5439af1 | tripleo | True | +--------------------------------------+---------+-----------+ Lets try to delete "__DEFAULT__" (overcloud) [stack@undercloud-0 ~]$ openstack volume type delete __DEFAULT__ Looks good, this time we're able to delete __DEFAULT__ and are left with only the tripleo volume type: (overcloud) [stack@undercloud-0 ~]$ openstack volume type list --long +--------------------------------------+---------+-----------+-------------+------------+ | ID | Name | Is Public | Description | Properties | +--------------------------------------+---------+-----------+-------------+------------+ | d9c999f3-58d9-44ff-9a61-390bd5439af1 | tripleo | True | None | | +--------------------------------------+---------+-----------+-------------+------------+ Good to verify.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3762