Horizon packaging issue: puppet-horizon recipe calling manage.py with --clear breaks horizon

Bug #1479340 reported by Robert van Leeuwen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Triaged
Medium
Unassigned
horizon (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

failed to execute compression:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear && /usr/share/openstack-dashboard/manage.py compress --force

Found 'compress' tags in:
      /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
      /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_conf.html
      /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_scripts.html
CommandError: An error occured during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html: 'dashboard/scss/horizon.scss' could not be found in the COMPRESS_ROOT '/usr/share/openstack-dashboard/static' or with staticfiles.

This will break horizon.
The problem seem to exist due to some packaging issues.
Exact details can be found here:
https://bugs.launchpad.net/mos/+bug/1470143

I suggest to implement the changes in the packaging as described in the above bug report.

Not sure if Mirantis and Ubuntu are working together on this stuff but it would be great if these fixes would be shared/merged :)

Revision history for this message
James Page (james-page) wrote :

Reproduced on Kilo UCA packages.

Changed in cloud-archive:
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :

This persists to the Mitaka packages as well; looking at the other bug report the '--clear' command is removing the package provided files.

Looking at Newton (as packaging changed abit).

Changed in cloud-archive:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
James Page (james-page) wrote :

Adding Ubuntu task as well as this impacts the latest packages as well.

The horizon package generally needs unpicking and putting back together to ensure that compress/collected assets are separated from those provided by the package itself; we don't currently use /var/lib/horizon at all so we should look to make those changes.

That said its non-trivial - I'd hope to look at this for newton, but we're not far off release now.

Changed in horizon (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
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.