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 <email address hidden>
Co-authored-by: Brian Rosmaita <email address hidden>
Change-Id: Ic2da41f3962c1108f974aca952bce3da6d6ac277
Closes-bug: #1944577
(cherry picked from commit 8088dc9580356ca51581c56888c9022848f543b1)
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 9c1aa92b9578c1dc1d63d4d9124d873438d495eb)
(cherry picked from commit dd12492f32c8c0796c79fec430912045fbee52bd)
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
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/844605 /opendev. org/openstack/ cinder/ commit/ ba947e6d7db6781 79b9c14638ac98b c861194b78
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit ba947e6d7db6781 79b9c14638ac98b c861194b78
Author: Yadiel Xuan(轩艳东) <email address hidden>
Date: Thu Dec 24 17:20:42 2020 +0800
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 <email address hidden>
Co-authored-by: Brian Rosmaita <email address hidden>
Change-Id: Ic2da41f3962c11 08f974aca952bce 3da6d6ac277 51581c56888c902 2848f543b1) tests/unit/ api/contrib/ test_volume_ manage. py - used a c1d63d4d9124d87 3438d495eb) 96c79fec4309120 45fbee52bd) tests/unit/ api/contrib/ test_volume_ manage. py - restored a v2 ref/source/ v2/volume- manage. inc
Closes-bug: #1944577
(cherry picked from commit 8088dc9580356ca
change:
cinder/
feature of unittest.mock that was introduced in py38; rewritten to
be compatible with py36
(cherry picked from commit 9c1aa92b9578c1d
(cherry picked from commit dd12492f32c8c07
conflicts:
cinder/
test that had been removed in xena
added:
api-