The policy.json file in Configuration Reference - compute:get_all no longer exists

Bug #1682245 reported by Matt Riedemann on 2017-04-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Low
Chetna

Bug Description

- [x] This doc is inaccurate in this way:

The "compute:get_all" example is no longer valid, that rule does not exist in Nova in Ocata. It did back in Mitaka, but in Newton the policy for Nova was all moved into code. The "compute:get_all" rule was for the old v2 API.

With the v2.1 API the rule is now something like "os_compute_api:servers:index" or "os_compute_api:servers:detail" depending on the actual API that is called.

This is a minor issue, very low severity, but the docs could be updated to replace "compute:get_all" with "os_compute_api:servers:detail" for the example.

-----------------------------------
Release: 15.0.0 on 2017-04-10 10:26
SHA: 42e384ee11368ba8ad1545b6bd3042ee66954062
Source: https://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/config-reference/source/policy-json-file.rst
URL: https://docs.openstack.org/ocata/config-reference/policy-json-file.html

Matt Riedemann (mriedem) wrote :

The examples are also a bit odd because before the examples there is a warning about not modifying from the defaults:

"While recipes for editing policy.json files are found on blogs, modifying the policy can have unexpected side effects and is not encouraged."

But then the example shows:

"compute:get_all" : ""

Which was not the actual default back when this was defined in Mitaka:

"compute:get_all": "rule:admin_or_owner",

https://github.com/openstack/nova/blob/stable/mitaka/etc/nova/policy.json#L14

Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → pike
assignee: nobody → Alexandra Settle (alexandra-settle)
tags: added: low-hanging-fruit
Changed in openstack-manuals:
assignee: Alexandra Settle (alexandra-settle) → nobody
Chetna (ck-khullar) on 2017-04-23
Changed in openstack-manuals:
assignee: nobody → Chetna (ck-khullar)

Chetna - are you still working on this issue?

Changed in openstack-manuals:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers