cinder/api-ref
Yadiel Xuan(轩艳东) ba947e6d7d 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
(cherry picked from commit 9c1aa92b95)
(cherry picked from commit dd12492f32)
conflicts:
  cinder/tests/unit/api/contrib/test_volume_manage.py - restored a v2
  test that had been removed in xena
added:
  api-ref/source/v2/volume-manage.inc
2022-06-03 11:14:49 -04:00
..
source Prohibit volume manage to an encrypted volume type 2022-06-03 11:14:49 -04:00