diff --git a/cinder/volume/api.py b/cinder/volume/api.py index be35e3a340d..7d829ee5aef 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -670,7 +670,7 @@ class API(base.Base): return snapshots def reserve_volume(self, context, volume): - context.authorize(vol_action_policy.RETYPE_POLICY, target_obj=volume) + context.authorize(vol_action_policy.RESERVE_POLICY, target_obj=volume) expected = {'multiattach': volume.multiattach, 'status': (('available', 'in-use') if volume.multiattach else 'available')} diff --git a/releasenotes/notes/fix-reserve-volume-policy-31790a8d865ee0a1.yaml b/releasenotes/notes/fix-reserve-volume-policy-31790a8d865ee0a1.yaml new file mode 100644 index 00000000000..cb9bad9d87e --- /dev/null +++ b/releasenotes/notes/fix-reserve-volume-policy-31790a8d865ee0a1.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + The reserve volume API was incorrectly enforcing "volume:retype" policy + action. It has been corrected to "volume_extension:volume_actions:reserve".