RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1219006 - Wrong permissions for directory /usr/share/openstack-dashboard/static/dashboard/
Summary: Wrong permissions for directory /usr/share/openstack-dashboard/static/dashboard/
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: python-django-horizon
Version: Kilo
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Javier Peña
QA Contact: Ido Ovadia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 12:01 UTC by Christian Berendt
Modified: 2016-03-30 23:07 UTC (History)
10 users (show)

Fixed In Version: python-django-horizon-2015.1.0-5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-06 12:06:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Christian Berendt 2015-05-06 12:01:03 UTC
After the initial installation with Packstack using the Kilo repository it is not possible to access the Horizon dashboard.

[Errno 13] Permission denied: '/usr/share/openstack-dashboard/static/dashboard/css/c202c9c6ad28.css'

Comment 1 Christian Berendt 2015-05-06 12:02:59 UTC
Manually restarting the httpd service solves the issue.

Comment 2 Matthias Runge 2015-05-06 12:06:30 UTC

*** This bug has been marked as a duplicate of bug 1150678 ***

Comment 3 Alan Pevec 2015-05-06 12:11:04 UTC
Repro steps:
* base OS installed with https://github.com/boxcutter/centos/blob/master
/http/ks7.cfg
* packstack multi node environment TODO get packstack answer file

Comment 4 Alan Pevec 2015-05-06 12:15:57 UTC
> * packstack multi node environment TODO get packstack answer file

http://paste.openstack.org/show/215445/

Comment 5 Itzik Brown 2015-05-06 12:25:52 UTC
I was able to reproduce.
After installation with packstack failed because of missing RPMs I reinstalled and the problem happens again.
After restarting httpd - the dashboard looks fine.

Checked with version openstack-dashboard-2015.1-0rc2.el7.centos.noarch

Comment 6 Joe Talerico 2015-05-06 16:36:31 UTC
I hit something similar to this. The webpage would display but all stylesheets were not being displayed, so it looked very bad. 

systemctl restart httpd 

fixed the stylesheet issue for me.

Comment 7 Matthias Runge 2015-05-06 17:27:43 UTC
this seems to happen on multi node environments
(not sure about all-in-one environments)

- on rhel and on centos
- httpd shared with keystone and not shared
- when packstack was run once and twice (in case of an error occurring)

Comment 8 Christian Berendt 2015-05-06 18:03:20 UTC
I can confirm this. For me the issue only occurs on a multi machine environment.

Comment 9 Javier Peña 2015-05-08 11:52:44 UTC
I have also reproduced it, and I think I have found the reason.

httpd is restarted by packstack after setting up Horizon, however "systemd daemon-reload" has not been executed, so the additional systemd file included by openstack-dashboard is not applied there. 

Checking /var/log/messages from my test system, I see daemon-reload is executed later, so any subsequent httpd service restart will create the required files.

I propose to add the following line to the %post scriptlet in openstack-dashboard:

systemctl daemon-reload >/dev/null 2>&1 || :

Comment 10 Alan Pevec (Fedora) 2015-05-08 17:30:03 UTC
https://review.gerrithub.io/232703

Comment 11 Alan Pevec (Fedora) 2015-05-08 18:18:56 UTC
in kilo/testing repo

Comment 12 Christian Berendt 2015-05-08 20:00:58 UTC
Tested. Works for me. Thanks.


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