cinder/cinder
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
..
api Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
backup Rework backup process to make it async 2022-01-19 15:43:54 +00:00
brick LVM: Retry lvextend commands on code 139 2021-08-18 12:29:01 -04:00
cmd Merge "db: Vendor 'oslo_db.sqlalchemy.migration'" 2021-09-10 18:11:04 +00:00
common Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
compute Support volume re-image 2022-02-24 15:23:38 +05:30
db Merge "db: Preserve API signatures" 2022-03-09 20:02:15 +00:00
group db: Remove 'db_driver' option 2021-08-27 15:13:21 +01:00
image Merge "Use 'visibility' instead of 'is_public' when only use Glance API v2" 2021-12-22 18:36:09 +00:00
interface Remove attach and detach volume driver methods 2022-01-31 15:46:22 +01:00
keymgr Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
locale Imported Translations from Zanata 2022-02-03 02:15:42 +00:00
message Add user messages for backup operations 2021-08-27 05:44:42 -04:00
objects Merge "Fix: nfs format info limitation" 2021-12-22 18:35:58 +00:00
policies Support volume re-image 2022-02-24 15:23:38 +05:30
privsep Enable flake8-logging-format extension 2020-01-09 14:35:20 -06:00
scheduler Remove various unused code 2022-01-24 14:53:40 +00:00
tests Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
transfer db: Remove 'db_driver' option 2021-08-27 15:13:21 +01:00
volume Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
wsgi Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
zonemanager Brocade: Fix lookup UnboundLocalError 2020-08-07 15:24:44 +02:00
__init__.py
context.py Merge "Add infrastructure for testing new RBAC policies" 2021-09-06 17:44:47 +00:00
coordination.py mypy: coordination.py 2021-08-17 14:50:46 +00:00
exception.py mypy: annotate volume_utils / utils / exc 2021-04-30 10:41:30 -04:00
flow_utils.py mypy: create_volume flows 2021-08-10 10:26:39 -04:00
i18n.py
manager.py mypy: Fix unused type: ignore in manager.py 2021-09-16 10:25:39 -04:00
opts.py Merge "Move nimble driver code to hpe folder" 2022-03-02 11:54:20 +00:00
policy.py Add infrastructure for testing new RBAC policies 2021-08-31 15:41:17 -07:00
quota.py Merge "Remove six from quota.py" 2021-04-20 07:49:02 +00:00
quota_utils.py Modify/Move project validation methods to api_utils 2021-04-05 08:00:40 -04:00
rpc.py mypy: continued manager, scheduler, rpcapi 2021-08-11 08:36:09 -04:00
service.py Fix typo on service cluster change method 2020-05-06 19:36:07 -05:00
service_auth.py
ssh_utils.py Remove six in files under cinder/* 2020-10-08 14:00:14 +08:00
utils.py Merge "Correct type annotations for utils.retry()" 2021-11-09 18:24:32 +00:00
version.py