Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1503806 - OSP11 -> OSP12 upgrade: logging in to Horizon dashboard fails: IOError: [Errno 13] Permission denied: '/etc/openstack-dashboard/nova_policy.json'
OSP11 -> OSP12 upgrade: logging in to Horizon dashboard fails: IOError: [Errn...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates (Show other bugs)
12.0 (Pike)
Unspecified Unspecified
high Severity urgent
: beta
: 12.0 (Pike)
Assigned To: Beth Elwell
Ola Pavlenko
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-18 15:34 EDT by Marius Cornea
Modified: 2018-02-05 14:15 EST (History)
8 users (show)

See Also:
Fixed In Version: openstack-tripleo-heat-templates-7.0.3-7.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-13 17:17:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 511442 None None None 2017-10-25 11:21 EDT
OpenStack gerrit 515105 None None None 2017-10-26 05:51 EDT
Red Hat Product Errata RHEA-2017:3462 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-15 20:43:25 EST

  None (edit)
Description Marius Cornea 2017-10-18 15:34:43 EDT
Description of problem:
OSP11 -> OSP12 upgrade: logging to Horizon dashboard fails after credentials input showing the 'Something went wrong!' page

Checking the container logs we can see:

[root@controller-0 stack]# docker exec -it horizon tail -f /var/log/horizon/horizon.log
    enforcer = _get_enforcer()
  File "/usr/lib/python2.7/site-packages/openstack_auth/policy.py", line 56, in _get_enforcer
    enforcer.load_rules()
  File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 537, in load_rules
    overwrite=self.overwrite)
  File "/usr/lib/python2.7/site-packages/oslo_policy/policy.py", line 675, in _load_policy_file
    self._file_cache, path, force_reload=force_reload)
  File "/usr/lib/python2.7/site-packages/oslo_policy/_cache_handler.py", line 41, in read_cached_file
    with open(filename) as fap:
IOError: [Errno 13] Permission denied: '/etc/openstack-dashboard/nova_policy.json'


Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-7.0.3-0.20171014102841.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy an OSP11 split stack environment with 3 controller, 3 messaging, 3 db, 2 networker, 2 compute, 3 ceph nodes
 
2. Upgrade to OSP12

3. Open in the browser the Horizon public URL

4. Input the credenaitls and log in

Actual results:
Something went wrong!

An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

Expected results:
The dashboard shows up.

Additional info:

https://review.openstack.org/#/c/507408/ was applied on the system as a fix for bug 1492135
Comment 1 Marius Cornea 2017-10-18 15:37:15 EDT
[root@controller-0 stack]# docker exec -it horizon ls -l /etc/openstack-dashboard
total 100
-rw-r-----. 1 horizon horizon  5283 Sep 29 18:03 cinder_policy.json
drwxr-xr-x. 2 horizon horizon  4096 Oct 17 20:23 enabled
-rw-r-----. 1 horizon horizon  1361 Sep 29 18:03 glance_policy.json
-rw-r-----. 1 horizon horizon  4544 Sep 29 18:03 heat_policy.json
-rw-r-----. 1 horizon horizon  9822 Sep 29 18:03 keystone_policy.json
-rwxr-xr-x. 1 apache  apache  30534 Oct 18 15:35 local_settings
drwxr-x---. 2 horizon horizon  4096 Oct 17 20:23 local_settings.d
-rw-r-----. 1 horizon horizon  9551 Sep 29 18:03 neutron_policy.json
-rw-r-----. 1 horizon horizon 15717 Sep 29 18:03 nova_policy.json
Comment 2 Beth Elwell 2017-10-26 05:51:14 EDT
Backport to pike https://review.openstack.org/#/c/515105
Comment 4 Beth Elwell 2017-11-09 09:09:50 EST
backport to pike merged
Comment 9 errata-xmlrpc 2017-12-13 17:17:19 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462

Note You need to log in before you can comment on or make changes to this bug.