Dependency python-lesscpy not included with horizon

Bug #1311379 reported by Darryl Weaver
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-dashboard (Juju Charms Collection)
Fix Released
Low
Liang Chen
openstack-dashboard (Ubuntu)
Invalid
Low
Edward Hope-Morley

Bug Description

Deploy openstack-dashboard-16 with
Debug = True
Error is displayed explaining missing command.

apt-get install python-lesscpy fixes the issue.

Tested with cloud:precise-updates/icehouse

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

I suspect that 'offline-compression=False' will also resolve the issue - the compressor will use lesscpy or lessc (which gets installed with this option)

Changed in openstack-dashboard (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Low
tags: added: openstack
tags: added: cts
Liang Chen (cbjchen)
Changed in openstack-dashboard (Juju Charms Collection):
assignee: nobody → Liang Chen (cbjchen)
Liang Chen (cbjchen)
Changed in openstack-dashboard (Juju Charms Collection):
status: Triaged → In Progress
Revision history for this message
Edward Hope-Morley (hopem) wrote :

If openstack-dashboard depends on python-lesscpy in Icehouse we should add it as a dependency to the openstack-dashboard package instead of installing it in the charm.

Changed in openstack-dashboard (Juju Charms Collection):
status: In Progress → Invalid
Changed in openstack-dashboard (Ubuntu):
status: New → In Progress
assignee: nobody → Edward Hope-Morley (hopem)
importance: Undecided → Low
Revision history for this message
Edward Hope-Morley (hopem) wrote :

[Impact]

 * If users enable offline-compression in Openstack Icehouse Horizon they will get a runtime exception due to unmet dependency on python-lesscpy. Therefore it makes sense to add python-lesscpy as a dependency on the openstack-dashbaord package

[Test Case]

 * Install openstack-dashboard (Icehouse version) and set COMPRESS_OFFLINE=True in local_settings.py. Then restart apache service and you will observe the error in the apache logs.

[Regression Potential]

 * None

[Other Info]

 * Should be ported to Trusty (Icehouse) and Precise Icehouse Ubuntu Cloud Archive

Revision history for this message
Edward Hope-Morley (hopem) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1311379.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Ok, U-turn time. I did not spot that python-lesscpy is in universe not main so this SRU won't work so I'll re-allow doing this in the charm.

tags: removed: patch
Changed in openstack-dashboard (Ubuntu):
status: In Progress → Invalid
Changed in openstack-dashboard (Juju Charms Collection):
status: Invalid → In Progress
Changed in openstack-dashboard (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in openstack-dashboard (Juju Charms Collection):
milestone: none → 15.01
James Page (james-page)
Changed in openstack-dashboard (Juju Charms Collection):
status: Fix Committed → Fix Released
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.