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

Bug #1548986 reported by Mike Deats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard Charm
Triaged
Low
Unassigned
openstack-dashboard (Juju Charms Collection)
Invalid
Undecided
Unassigned

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: "https://172.45.33.126/openstack" 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 local_settings.py the following variables get set:
LOGIN_URL='/openstack/auth/login/'
LOGOUT_URL='/openstack/auth/logout/'
LOGIN_REDIRECT_URL='/openstack'

James Page (james-page)
Changed in openstack-dashboard (Juju Charms Collection):
status: New → Invalid
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.