Insufficient permissions for policy files are not handled
Bug #1836390 reported by
Vadym Markov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.policy |
Fix Released
|
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/
2. Set DEBUG = False in ~/horizon/
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:/
Changed in oslo.policy: | |
assignee: | nobody → Vadym Markov (vmarkov) |
status: | New → In Progress |
Changed in oslo.policy: | |
assignee: | Vadym Markov (vmarkov) → Herve Beraud (herveberaud) |
Changed in oslo.policy: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.policy/ +/670571 /opendev. org/openstack/ oslo.policy/ commit/ 9919f1317c03716 3d0f31232991cca 261881b66b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9919f1317c03716 3d0f31232991cca 261881b66b
Author: BubaVV <email address hidden>
Date: Thu Jul 11 17:57:47 2019 +0300
Correctly handle IO errors at policy file load
For now, policy file unaccessible due to access permission leads to
silent failure without any notifictaion. Side effects of it are also
affected by policy caching and might be quite confusing, like periodic
disappearing of Horizon panels. Proposed patch added handling of such
errors.
Closes-bug: #1836390 63d6bb807f013e5 e7334efc715
Change-Id: I0d67b6e7c2dcaa