Reviewed: https://review.openstack.org/313124 Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=01c6f681f9f4c0e81c1c1ece61ad812f4cb7e6bc Submitter: Jenkins Branch: master
commit 01c6f681f9f4c0e81c1c1ece61ad812f4cb7e6bc Author: Mitsuhiro Tanino <email address hidden> Date: Thu May 5 12:31:00 2016 -0400
Add Cheesecake APIs to policy.json file
These replication v2.1 APIs are not enforced by the cinder policy.json file. This patch adds policy and the code to support applying this policy action.
"volume:failover_host": "rule:admin_api", "volume:freeze_host": "rule:admin_api", "volume:thaw_host": "rule:admin_api",
Also these methods create a completely new context instead of doing context.elevated(). It's better to preserve the information that already there.
Change-Id: Ib577e902cda634ae2bd813edd9e39e022f23fde1 Closes-Bug: #1578722
Reviewed: https:/ /review. openstack. org/313124 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=01c6f681f9f 4c0e81c1c1ece61 ad812f4cb7e6bc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 01c6f681f9f4c0e 81c1c1ece61ad81 2f4cb7e6bc
Author: Mitsuhiro Tanino <email address hidden>
Date: Thu May 5 12:31:00 2016 -0400
Add Cheesecake APIs to policy.json file
These replication v2.1 APIs are not enforced by the
cinder policy.json file. This patch adds policy and
the code to support applying this policy action.
" volume: failover_ host": "rule:admin_api", volume: freeze_ host": "rule:admin_api", volume: thaw_host" : "rule:admin_api",
"
"
Also these methods create a completely new context
instead of doing context.elevated(). It's better
to preserve the information that already there.
Change-Id: Ib577e902cda634 ae2bd813edd9e39 e022f23fde1
Closes-Bug: #1578722