[Bug 1568971] Re: Ubuntu Mitaka package fails to upgrade with SyntaxError: Undefined variable: '$helpPanelWidthDefault'.
Launchpad Bug Tracker
1568971 at bugs.launchpad.net
Tue Apr 19 06:56:02 UTC 2016
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 <corey.bryant at canonical.com> Mon, 18 Apr 2016 15:05:42
-0400
** Changed in: horizon (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1568971
Title:
Ubuntu Mitaka package fails to upgrade with SyntaxError: Undefined
variable: '$helpPanelWidthDefault'.
Status in horizon package in Ubuntu:
Fix Released
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 at import "/themes/ubuntu/variables";\n\n// Horizon\n at 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1568971/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list