Duplicate lines in /etc/nova/policy.json

Bug #1577370 reported by Jerome Pansanel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Unassigned
Liberty
Fix Released
Low
Rajesh Tailor
oslo.policy
Invalid
Undecided
Unassigned

Bug Description

The default /etc/nova/policy.json released with Liberty contains two times the declaration for:
"compute:delete": "",
"compute:soft_delete": "",
"compute:force_delete": "",

I don't known it can impact the policy, but it may be better to raise an error when a rule is declared more than one time.

monika (monikaparkar25)
Changed in openstack-manuals:
assignee: nobody → monika (monikaparkar25)
Revision history for this message
Matt Kassawara (ionosphere80) wrote :

Did you install from packages? Can you validate this issue in the upstream file?

Changed in openstack-manuals:
status: New → Incomplete
Revision history for this message
Jerome Pansanel (pansanel) wrote :

The file has been installed from official RDO packages. The issue can also be found in the upstream file:
https://raw.githubusercontent.com/openstack/nova/stable/liberty/etc/nova/policy.json

Revision history for this message
Matt Kassawara (ionosphere80) wrote :

Bug belongs to the nova project.

affects: openstack-manuals → nova
Changed in nova:
assignee: monika (monikaparkar25) → nobody
Sean Dague (sdague)
Changed in nova:
status: Incomplete → Confirmed
status: Confirmed → Triaged
importance: Undecided → Low
Changed in nova:
assignee: nobody → Marcellin Fom Tchassem (mf6510)
tags: added: config
Changed in nova:
assignee: Marcellin Fom Tchassem (mf6510) → nobody
Rajesh Tailor (ratailor)
Changed in nova:
assignee: nobody → Rajesh Tailor (ratailor)
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

I added "oslo.policy" because of this part of the report description:

> I don't known it can impact the policy, but it may be better
> to raise an error when a rule is declared more than one time.

@oslo folks: Would be good to know if this is a valid request.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/312431

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Commit [1] introduced the delete targets with empty rules and commit [2] changed them in Mitaka incompletely to admin_or_owner rules.

[1] https://github.com/openstack/nova/commit/9c917816048482e3a42aa06e2aa4933a1a6f7f8c
[2] https://github.com/openstack/nova/commit/09a55e2bf4f3d5df3b76454f4839e2ce96f9d42f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/312431
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0e1bb7e36a19cd76175afc355ddbf28a41e6580b
Submitter: Jenkins
Branch: stable/liberty

commit 0e1bb7e36a19cd76175afc355ddbf28a41e6580b
Author: Rajesh Tailor <email address hidden>
Date: Wed May 4 06:19:17 2016 -0400

    Fix duplicate lines in policy.json

    Removed duplicate lines from etc/nova/policy.json file.

    Commit [1] introduced the delete targets with empty rules
    and commit [2] changed them in Liberty incompletely to
    admin_or_owner rules.

    [1] https://github.com/openstack/nova/commit/9c917816048482e3a42aa06e2aa4933a1a6f7f8c
    [2] https://github.com/openstack/nova/commit/09a55e2bf4f3d5df3b76454f4839e2ce96f9d42f

    Change-Id: I9081ccf28ec72a2d791cddac0597efef67e56429
    Closes-Bug:1577370

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 12.0.5

This issue was fixed in the openstack/nova 12.0.5 release.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Not an oslo.policy bug, and it looks like this was fixed in nova.

Changed in oslo.policy:
status: New → Invalid
Matt Riedemann (mriedem)
Changed in nova:
status: Triaged → Invalid
assignee: Rajesh Tailor (ratailor) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/nova 12.0.5 release.

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.