Openstack horizon offline compression key missing from manifest

Solution In Progress - Updated -

Environment

  • Red Hat Openstack Plataform 17.1

Issue

Not able to use Horizon dashboard from any browser due an unexpected error related to a missing compression.

Resolution

  1. Run the compression in the horizon container in each controller a time.
[root@overcloud-controller-1 ~]# podman exec -it -u root horizon bash
[root@overcloud-controller-1 /]# python /usr/share/openstack-dashboard/manage.py compress
[root@overcloud-controller-1 /]# exit
[root@overcloud-controller-1 ~]# systemctl restart tripleo_horizon.service

Root Cause

Possibly due to a race condition. Any change to /etc/openstack_dashboard/local_settings should trigger re-building of the compressed assets, among other things.

Diagnostic Steps

  1. Try to open Horizon dashboard in a browser and receive an unexpected error.

  2. Check Horizon log in a controller for the following error.

    raise OfflineGenerationError('You have offline compression '
compressor.exceptions.OfflineGenerationError: You have offline compression enabled but key "dbf52fe9eafa4b50d57c151a16962bcb02dfc37de3ae4fde450231af213e84a9" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments