openstack-dashboard horizon is in broken in a non-operational state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
New
|
Undecided
|
Unassigned |
Bug Description
[Description]
The Openstack charm of the Stein version with the following versions/revs:
openstack-dashboard version 15.3.1 - rev 490
openstack-dashboard version 15.3.1 - rev 308
octavia-dashboard version 3.0.1 - rev 42
octavia-dashboard version 3.0.1 - rev 19
When trying to access the horizon url it is in a broken state as shown in the attached image (broken.png).
When I enable DEBUG by juju I have the following message in the browser
"You have offline compression enabled but key "cd7532f8e831ce
[Reproduction]
1) Default value after install
juju config openstack-dashboard offline-compression
true
local_settings.py => COMPRESS_OFFLINE = True
When accessing horizon I have a non-operational state as shown in the image(broken.png)
2) When setting DEBUG
juju config openstack-dashboard debug=yes
I have the message in the browser as shown in the image(debug.png)
"You have offline compression enabled but key "cd7532f8e831ce
3) Changing the parameter manually
After change /etc/openstack-
COMPRESS_OFFLINE = False
4) Setting the parameter by Juju
juju config openstack-dashboard offline-
COMPRESS_OFFLINE = True
The parameter is not changed to False
[Impact]
It is not possible to change the parameter by Juju only manually.
Horizon only works with the COMPRESS_OFFLINE parameter as False, but it is only possible to do this manually
This could be a duplicte of LP #1902890.
The workaround that worked for me was:
juju run --model openstack --application openstack-dashboard -- "cd /usr/share/ openstack- dashboard/ openstack_ dashboard; sudo python3 /usr/share/ openstack- dashboard/ manage. py compress; sudo systemctl restart apache2"