openstack-dashboard horizon is in broken in a non-operational state

Bug #1902948 reported by Pedro Victor Lourenço Fragola
6
This bug affects 1 person
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 "cd7532f8e831ce92774ff026f1b711f60e7dcbb1891fce186d67729f0c6c0988" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:"

[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 "cd7532f8e831ce92774ff026f1b711f60e7dcbb1891fce186d67729f0c6c0988" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:"

3) Changing the parameter manually
After change /etc/openstack-dashboard/local_settings.py the parameter COMPRESS_OFFLINE to False I have a healthy state as shown in the image(work.png)

COMPRESS_OFFLINE = False

4) Setting the parameter by Juju

juju config openstack-dashboard offline-compression=no or juju config openstack-dashboard offline-compression=false

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

Revision history for this message
Pedro Victor Lourenço Fragola (pedrovlf) wrote :
Revision history for this message
Pedro Victor Lourenço Fragola (pedrovlf) wrote :
Revision history for this message
Pedro Victor Lourenço Fragola (pedrovlf) wrote :
Revision history for this message
Przemyslaw Hausman (phausman) wrote :

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"

Revision history for this message
Pedro Victor Lourenço Fragola (pedrovlf) wrote :

I did the suggested workaround and now I have a healthy status for Horizon.

In your bundle is Octavia used as a plugin?

Thank you for the information.

Revision history for this message
Przemyslaw Hausman (phausman) wrote :

hi @pedrovlf, no I don't have Octavia in the bundle.

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.