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)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/835140 /opendev. org/openstack/ cinder/ commit/ dd12492f32c8c07 96c79fec4309120 45fbee52bd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit dd12492f32c8c07 96c79fec4309120 45fbee52bd
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)
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