separate create and update rules for volume metadata

Bug #1472042 reported by Anna Sortland
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Yuriy Nesenenko

Bug Description

Both create() and update() in cinder/api/v2/volume_metadata.py call cinder/volume/api.py's update_volume_metadata.
However, these are 2 different operations and might require different policy rules. For example, an operator might want a policy where anybody can create volume metadata but only owner can update it. So it would be better to have a separate create_volume_metadata() function in api.py that create() would call.
We will also need a new rule for create. Looks like the rule for update is missing in default policy.json so should be added as well.

Changed in cinder:
assignee: nobody → Bathri Ajay Raj (bathri-s)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/356624

Changed in cinder:
assignee: Bathri Ajay Raj (bathri-s) → Yuriy Nesenenko (ynesenenko)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/356624
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=9771c2cd4e32979358f8647e57b4bab355221c0d
Submitter: Jenkins
Branch: master

commit 9771c2cd4e32979358f8647e57b4bab355221c0d
Author: Yuriy Nesenenko <email address hidden>
Date: Wed Aug 17 20:15:03 2016 +0300

    Separate create and update rules for volume metadata

    This patch allows different policy rules for create and
    update volume metadata.

    Change-Id: I23dabd8866a9358c41eb3e048d91011a53c41cc3
    Closes-Bug: #1472042

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/cinder 9.0.0.0b3

This issue was fixed in the openstack/cinder 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.