Horizon functionality broken after enabling new plugins

Bug #1867954 reported by Pierre Riteau
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Medium
Unassigned

Bug Description

When an existing Horizon deployment is reconfigured with extra dashboards (for example if enable_horizon_cloudkitty has switched from no to yes) without updating Horizon settings, some dashboard functionality becomes broken: no charts in Overview panel, Launch Instance button not working, etc.

/var/log/kolla/horizon/horizon.log reports issues such as:

[Tue Mar 17 16:19:09.033037 2020] [:error] [pid 75] Exception raised while rendering {% include %} for template 'auth/login.html'. Empty string rendered instead.
[Tue Mar 17 16:19:09.033122 2020] [:error] [pid 75] Traceback (most recent call last):
[Tue Mar 17 16:19:09.033137 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 216, in render
[Tue Mar 17 16:19:09.033141 2020] [:error] [pid 75] return template.render(context)
[Tue Mar 17 16:19:09.033145 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/django/template/base.py", line 209, in render
[Tue Mar 17 16:19:09.033149 2020] [:error] [pid 75] return self._render(context)
[Tue Mar 17 16:19:09.033153 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/django/template/base.py", line 199, in _render
[Tue Mar 17 16:19:09.033156 2020] [:error] [pid 75] return self.nodelist.render(context)
[Tue Mar 17 16:19:09.033160 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/django/template/base.py", line 990, in render
[Tue Mar 17 16:19:09.033164 2020] [:error] [pid 75] bit = node.render_annotated(context)
[Tue Mar 17 16:19:09.033168 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/django/template/base.py", line 957, in render_annotated
[Tue Mar 17 16:19:09.033171 2020] [:error] [pid 75] return self.render(context)
[Tue Mar 17 16:19:09.033175 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/compressor/templatetags/compress.py", line 127, in render
[Tue Mar 17 16:19:09.033179 2020] [:error] [pid 75] return self.render_compressed(context, self.kind, self.mode, forced=forced)
[Tue Mar 17 16:19:09.033183 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/compressor/templatetags/compress.py", line 86, in render_compressed
[Tue Mar 17 16:19:09.033187 2020] [:error] [pid 75] return self.render_offline(context)
[Tue Mar 17 16:19:09.033190 2020] [:error] [pid 75] File "/usr/lib/python2.7/site-packages/compressor/templatetags/compress.py", line 71, in render_offline
[Tue Mar 17 16:19:09.033194 2020] [:error] [pid 75] 'You may need to run "python manage.py compress".' % key)
[Tue Mar 17 16:19:09.033198 2020] [:error] [pid 75] OfflineGenerationError: You have offline compression enabled but key "e462cdaf344e8f8d59c0ae440b3cf152" is missing from offline manifest. You may need to run "python manage.py compress".

A workaround is to update local settings and reconfigure horizon, which will properly regenerate static files.

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

So we need another trigger.

Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
Uriel Medina (uriel-oncloud) wrote :

I can reproduce the same bug, and it always happens with Cloudkitty plugin.
The "solution" I could find by now was to deploy/reconfigure again, as the Horizon container didnt let me to "python manage.py compress" due I couldnt find the right "manage.py" file.

Revision history for this message
Michal Nasiadka (mnasiadka) wrote :

All releases mentioned in this bug report are EOL, marking as Invalid.

no longer affects: kolla-ansible/stein
no longer affects: kolla-ansible/train
no longer affects: kolla-ansible/ussuri
no longer affects: kolla-ansible/victoria
Changed in kolla-ansible:
status: New → Invalid
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.