Ubuntu Mitaka package fails to upgrade with SyntaxError: Undefined variable: '$helpPanelWidthDefault'.

Bug #1568971 reported by György Szombathelyi
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
horizon (Ubuntu)
Fix Released
Undecided
Corey Bryant

Bug Description

Upgrading Mitaka from Liberty fails with:
Unpacking openstack-dashboard (2:9.0.0-0ubuntu1~cloud0) over (2:8.0.1-0ubuntu1~cloud0) ...
.
.
.
Collecting and compressing static assets...
CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html: Error evaluating expression:
    $helpPanelWidthDefault

on line 51 of framework/widgets/help-panel/help-panel.scss
imported from line 50 of framework/widgets/widgets.scss
imported from line 50 of framework/framework.scss
imported from line 6 of dashboard/scss/horizon.scss
imported from line 1 of u'string:ed963272ebc1da4e:\n // My Themes\n@import "/themes/ubuntu/variables";\n\n// Horizon\n@import "/dashboard/scss/horizon.s'
Traceback:
  File "/usr/lib/python2.7/dist-packages/scss/calculator.py", line 141, in evaluate_expression
    return ast.evaluate(self, divide=divide)
  File "/usr/lib/python2.7/dist-packages/scss/ast.py", line 346, in evaluate
    raise SyntaxError("Undefined variable: '%s'." % self.name)
SyntaxError: Undefined variable: '$helpPanelWidthDefault'.
dpkg: error processing package openstack-dashboard (--configure):
 subprocess installed post-installation script returned error exit status 1

The workaround is to clean up the compiled static assets before upgrading (/usr/share/openstack-dashboard/openstack_dashboard/static). I think it should be done in the pre-install script.

Revision history for this message
György Szombathelyi (gyurco) wrote :

/usr/share/openstack-dashboard/static/{auth, bootstrap, custom, framework, scss, themes} should be deleted

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in horizon (Ubuntu):
status: New → Confirmed
Changed in horizon (Ubuntu):
assignee: nobody → Corey Bryant (corey.bryant)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horizon - 2:9.0.0-0ubuntu2

---------------
horizon (2:9.0.0-0ubuntu2) xenial; urgency=medium

  * d/openstack-dashboard.[preinst|postrm]: Remove any static files from
    /usr/share/openstack-dashboard/static/* prior to install and after removal
    (LP: #1568971).

 -- Corey Bryant <email address hidden> Mon, 18 Apr 2016 15:05:42 -0400

Changed in horizon (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Corey Bryant (corey.bryant) wrote :

György, thanks for reporting this. This fix is now available in xenial and working it's way back to the trusty cloud archive.

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.