Comment 5 for bug 1944577

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/834478
Committed: https://opendev.org/openstack/cinder/commit/9c1aa92b9578c1dc1d63d4d9124d873438d495eb
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 9c1aa92b9578c1dc1d63d4d9124d873438d495eb
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: 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