Apache config results in no CSS loading

Bug #1672990 reported by Gregory Orange
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Michael Polenchuk

Bug Description

Detailed bug description:
Using Fuel 11 to deploy OpenStack Ocata UCA, the Apache configuration on the controller node results in no CSS loading in Horizon. Here's a sample access_log error:

192.102.250.216 - - 14/Mar/2017:07:53:41.783 "GET /horizon/static/dashboard/css/34f8a8f8d5e5.css HTTP/1.1" 404 243 168 "http://146.118.112.23/horizon/auth/login/?next=/horizon/identity/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0"

We noticed that /etc/apache2/sites-available/horizon_vhost.conf has:
  Alias /horizon/static "/usr/share/openstack-dashboard/static"

This directory doesn't exit, but the correct files appeared to be in /var/lib instead of /usr/share. We changed it to that, and CSS loads much better.

Steps to reproduce:
Using Fuel 11, install OpenStack Ocata UCA. Browse to the resulting Horizon interface.

Expected results:
Correctly loading CSS.

Actual result:
No CSS, text only.

Reproducibility:
Always.

Workaround:
Change /etc/apache2/sites-available/horizon_vhost.conf so that the /horizon/static Alias points to /var/lib... instead of /usr/share...

Impact:
Difficult to use web interface.

Description of the environment:
 Operation system: Controller node: Ubuntu 16.04.2 LTS. Fuel: Centos 7.
 Versions of components: Fuel 11, OpenStack Ocata.

Changed in fuel:
milestone: none → 11.0
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
importance: Undecided → High
status: New → Confirmed
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Michael Polenchuk (mpolenchuk)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Michael Polenchuk (mpolenchuk) wrote :
tags: added: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/450343

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/ocata)

Reviewed: https://review.openstack.org/450343
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=d74fd2942f36fcaf1aef38befd64b35d9dcb05a7
Submitter: Jenkins
Branch: stable/ocata

commit d74fd2942f36fcaf1aef38befd64b35d9dcb05a7
Author: Michael Polenchuk <email address hidden>
Date: Mon Mar 27 19:55:12 2017 +0400

    Rectify horizon static alias

    Rectify static alias prefix since starting from Ocata
    on Debian platforms static files reside in /var/lib.

    Change-Id: I56dc7ca51f1c429003f1f4b04de0c7bb5c4a8be0
    Closes-Bug: #1672990

tags: added: in-stable-ocata
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library ocata-eol

This issue was fixed in the openstack/fuel-library ocata-eol 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.