Insufficient permissions for policy files are not handled

Bug #1836390 reported by Vadym Markov on 2019-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.policy
Medium
Herve Beraud

Bug Description

Issue affects Horizon. Tested on Queens Devstack, but seems to affect any release and deployment.

Steps to reproduce:
1. chmod 000 ~/horizon/openstack_dashboard/conf/cinder_policy.json
2. Set DEBUG = False in ~/horizon/openstack_dashboard/local/local_settings.py
3. Restart Apache service
4. Log in to Horizon

Expected behavior:
Left panel is present, probably except some dashboards related to volumes

Actual behavior:
Left panel is absent, screenshot attached

in this case, policy loading fails at https://github.com/openstack/horizon/blob/master/openstack_auth/policy.py#L67 It logs traceback as warning

Changed in oslo.policy:
assignee: nobody → Vadym Markov (vmarkov)
status: New → In Progress
Changed in oslo.policy:
assignee: Vadym Markov (vmarkov) → Herve Beraud (herveberaud)
Ben Nemec (bnemec) on 2019-09-13
Changed in oslo.policy:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers