| commit | 1898a683be78622445e48f1f071cf7188ab19450 | [log] [tgz] |
|---|---|---|
| author | Rajat Dhasmana <rajatdhasmana@gmail.com> | Tue Mar 14 05:35:33 2023 +0000 |
| committer | Rajat Dhasmana <rajatdhasmana@gmail.com> | Wed Mar 15 07:21:54 2023 +0000 |
| tree | 06fa0e9f543b68338b99e5a8a344bfa839923f1e | |
| parent | 35c9afffa5d2988c1438e45692ef87b9d9d7ab3b [diff] |
Create multiattach volume type for tempest Creating multiattach volume is a non-admin operation but creating multiattach volume type is an admin operation. Previously cinder allowed creating multiattach volumes without a volume type but that support is being removed with[1]. The change requires updating tempest tests[2] but some tempest tests are non-admin, which require admin priviledges to create the multiattach volume type. Based on the last discussion with tempest team[3], the proposed solution is to create a multiattach volume type in devstack, if ENABLE_VOLUME_MULTIATTACH is True, and use it in tempest tests. Similar to how admins create multiattach volume types for non-admin users. This patch creates a multiattach volume type if ENABLE_VOLUME_MULTIATTACH is True. Also we set the multiattach type name as a tempest config option 'volume_type_multiattach'. [1] https://review.opendev.org/c/openstack/cinder/+/874865 [2] https://review.opendev.org/c/openstack/tempest/+/875372 [3] https://meetings.opendev.org/irclogs/%23openstack-cinder/%23openstack-cinder.2023-03-13.log.html#t2023-03-13T18:47:56 Change-Id: Icd3690565bf7b27898cd206641e612da3993703d