cinder/cinder/api
Yadiel Xuan(轩艳东) 9c1aa92b95 Prohibit volume manage to an encrypted volume type
Managing a volume to an encrypted volume type should not be allowed.
One reason is that there is no way for an operator to specify an
encryption key ID for the volume. Another is that we already don't
allow a volume of an encrypted type to be un-managed, so this change
will be symmetric.

Also update and correct the api-ref for this call.

Co-authored-by: xuan <xuanyd@outlook.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Ic2da41f3962c1108f974aca952bce3da6d6ac277
Closes-bug: #1944577
(cherry picked from commit 8088dc9580)
change:
  cinder/tests/unit/api/contrib/test_volume_manage.py - used a
  feature of unittest.mock that was introduced in py38; rewritten to
  be compatible with py36
2022-03-23 01:57:28 +00:00
..
contrib Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
middleware Fix request id mess on Cinder-API 2022-02-23 16:48:45 +01:00
openstack Add yoga release note prelude 2022-03-11 09:11:43 -05:00
schemas Support volume re-image 2022-02-24 15:23:38 +05:30
v2 Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
v3 Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
validation API validation: Add cinder_host type to support ipv6 in manage 2021-03-11 10:32:13 -05:00
views Remove six of dir cinder/api/* 2020-10-07 14:20:48 +08:00
__init__.py Remove 'enable_v3_api' option 2021-08-05 06:30:16 -04:00
api_utils.py Modify/Move project validation methods to api_utils 2021-04-05 08:00:40 -04:00
common.py Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
extensions.py Remove exception.Error class 2020-07-21 18:21:21 +03:00
microversions.py Support volume re-image 2022-02-24 15:23:38 +05:30
urlmap.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
versions.py Remove 'enable_v3_api' option 2021-08-05 06:30:16 -04:00