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

Bug #1682245 reported by Matt Riedemann on 2017-04-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Stephen Finucane

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

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",

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

Looks like this might still be valid for Ocata. I'll take a look.

Changed in openstack-manuals:
assignee: Chetna (ck-khullar) → Stephen Finucane (stephenfinucane)
Changed in openstack-manuals:
status: Confirmed → Won't Fix
tags: added: doc
Changed in nova:
status: New → Confirmed
importance: Undecided → Low

The way we generate policy docs now (using 'oslo_policy.sphinxext') means our local copies of this document are automatically up-to-date. This is no longer an issue and similar issues should not recur going forward.

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers