Error when switching horizon from binary to source images

Bug #1886549 reported by Pierre Riteau
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Triaged
Low
Unassigned

Bug Description

What happened:

Horizon fails to start after switching from centos-binary to centos-source images

What you expected to happen: Horizon should start successfully

How to reproduce it:

1) Deploy Horizon with CentOS binary images
2) Set horizon_install_type: source
3) Reconfigure horizon

`docker logs horizon` shows:

++ /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compress --force
CommandError: An error occurred during rendering /var/lib/kolla/venv/lib/python3.6/site-packages/openstack_dashboard/templates/horizon/_scripts.html: Couldn't find any precompiler in COMPRESS_PRECOMPILERS setting for mimetype '\'text/javascript\''.

A fix is to prune memcached content before reconfiguring horizon.

Revision history for this message
Mark Goddard (mgoddard) wrote :

Could you share instructions for pruning memcached in case someone else hits this?

Changed in kolla-ansible:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Pierre Riteau (priteau) wrote :

Pruning memcached is done simply by restarting it:

docker restart memcached

Revision history for this message
Pierre Riteau (priteau) wrote :

Note: this probably logs out people of their web sessions.

Revision history for this message
Stig Telfer (stigtelfer) wrote :

I had the same issue and the restart of memcached worked for me.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

It drops the sessions, so yes, it will forcefully log out users.

Revision history for this message
Nick Jones (yankcrime) wrote :

Late to the party here, but I hit this same error when doing an upgrade from Victoria to Wallaby - and I'm not using the -source tagged images. Restarted memcached as suggested fixed the issue.

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.