Django Cache rebuild fails to find horizon.js

Bug #1603528 reported by MercSniper
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Alexey Deryugin

Bug Description

Detailed bug description:
 python-murano-dashboard fails to finish post-install because django cannot rebuild it's static cache. Fails to find horizon.js file
Steps to reproduce:
 1. Fresh Virtualbox install w/scripts
 2. Create Openstack Cluster using 14.04+UCA
 3. Create a minimum 1 compute+ceph, 1 controller host
 4. Add Murano to Openstack Environment and deploy
Expected results:
 No error
Actual result:
 2016-07-15 18:25:58 WARNING (Package[murano-dashboard](provider=apt_fuel)) CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html: 'horizon/js/horizon.js' could not be found in the COMPRESS_ROOT '/usr/share/openstack-dashboard/static' or with staticfiles.
2016-07-15 18:25:58 WARNING (Package[murano-dashboard](provider=apt_fuel)) WARNING:root:"dashboards" and "default_dashboard" in (local_)settings is DEPRECATED now and may be unsupported in some future release. The preferred way to specify the order of dashboards and the default dashboard is the pluggable dashboard mechanism (in /usr/share/openstack-dashboard/openstack_dashboard/enabled, /usr/share/openstack-dashboard/openstack_dashboard/local/enabled).
Reproducibility:
 Fresh Virtualbox environment
Workaround:
 None at the moment
Impact:
 python-murano-db fails post-install and halts install
Description of the environment:
 Operation system: Windows 7
 Versions of components: VirtualBox 5.1, Fuel 9.0
 Reference architecture: X64
 Network model: Virtualbox Scripts
 Related projects installed: MOS-Murano
Additional information:
 http://pastebin.com/wEd84G2v

Dmitry Pyzhov (dpyzhov)
no longer affects: fuel
Changed in mos:
status: New → Confirmed
assignee: nobody → MOS Murano (mos-murano)
milestone: none → 9.1
importance: Undecided → High
Revision history for this message
MercSniper (mercsniper) wrote :

This also affects a non-murano install with horizon for the same error:

CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html: 'horizon/js/horizon.js' could not be found in the COMPRESS_ROOT '/usr/share/openstack-dashboard/static' or with staticfiles.

Revision history for this message
MercSniper (mercsniper) wrote :

/usr/share/openstack-dashboard/static/dashboard/js is empty, if that helps.

Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Looks like it's a horizon and/or configuration error, rather than a murano issue. Removing mos-murano team from assignee.

Changed in mos:
assignee: MOS Murano (mos-murano) → nobody
tags: added: area-horizon horizon
MercSniper (mercsniper)
tags: added: customer-found
Changed in mos:
assignee: nobody → MOS Horizon (mos-horizon)
Changed in mos:
assignee: MOS Horizon (mos-horizon) → MOS Packaging Team (mos-packaging)
Changed in mos:
assignee: MOS Packaging Team (mos-packaging) → Ivan Udovichenko (iudovichenko)
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

"2. Create Openstack Cluster using 14.04+UCA"

UCA stands for Ubuntu Cloud Archive. It fetches packages from Ubuntu repositories which we don't maintain. UCA packages are maintained directly by Canonical.

I was able to find horizon.js [1] file in python-django-horizon package [2]. It should be collected during call of sub-collectstatic command.

[1] /usr/lib/python2.7/dist-packages/horizon/static/horizon/js/horizon.js
[2] http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/h/horizon/python-django-horizon_9.0.1-0ubuntu2~cloud0_all.deb

Changed in mos:
assignee: Ivan Udovichenko (iudovichenko) → MOS Puppet Team (mos-puppet)
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

MOS Puppet team, could you please confirm that horizon.js should be collected during call of collectstatic sub-command in Puppet manifests?

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Here, we're mixing Horizon from Canonical, with murano-dashboard from Debian. Indeed, murano-dashboard isn't maintained by Canonical (it's synced from Debian), while they do have a separate Horizon package that they maintain by themselves. I haven't dug into the issue, but what I can foresee is that this wont work because these are incompatible. The Horizon package from Debian works differently, and it's done this way to be Debian policy compliant.

So, the only thing I could advise would be to *not* use murano-dashboard with UCA, but with MOS only.

Revision history for this message
MercSniper (mercsniper) wrote :

@Thomas look at https://bugs.launchpad.net/mos/+bug/1604846. I had marked it as a duplicate because it was a similar problem, but it was interfering with Horizon on a non-murano build.

Changed in mos:
assignee: MOS Puppet Team (mos-puppet) → Alexey Deryugin (velovec)
Revision history for this message
Mikhail Ivanov (mivanov) wrote :

Issue caused from --clear option in postinst script of murano-dashboard. We can try to remove this option in packages and puppets

Revision history for this message
Mikhail Ivanov (mivanov) wrote :

Related fix to packages in 9.0: https://review.fuel-infra.org/#/c/25599/

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :
Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Alexey Deryugin (velovec) wrote :
Changed in mos:
status: In Progress → Fix Committed
tags: added: on-verification
Changed in mos:
status: Fix Committed → Fix Released
tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.