openstack-dashboard charm does not prefix static paths with configured webroot

Bug #1548986 reported by Mike Deats on 2016-02-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack openstack-dashboard charm
openstack-dashboard (Juju Charms Collection)

Bug Description

My instance of the dashboard is behind a web proxy which is used to expose applications to the external network. I am setting the "webroot" setting on the Juju charm to "/openstack" because all links on the web proxy take the form of "https://my.proxy/application", so the dashboard needs to be accessible internally like this: "" in order to be accessible externally like this: "https://my.proxy/openstack"

But when setting the "webroot" setting in the openstack-dashboard charm, WEBROOT is not set correctly. This results in none of the static graphical content (such as the CSS files) being loaded when I try and access the dashboard through the proxy as the path is being served like this "/static/dashboard/css/8b38ca41e738.css" when it should be "/openstack/static/dashboard/css/8b38ca41e738.css"

I noticed in the following variables get set:

James Page (james-page) on 2017-02-23
Changed in openstack-dashboard (Juju Charms Collection):
status: New → Invalid
James Page (james-page) wrote :

As we're in full control of:

WEBROOT = '{{ webroot }}'
STATIC_URL = '/static/'

this should be fixable.

summary: - openstack-dashboard charm does not correctly set webroot
+ openstack-dashboard charm does not prefix static paths with configured
+ webroot
Changed in charm-openstack-dashboard:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers