Material Theme in Newton Appears to be Broken

Bug #1645630 reported by Jay Jahns
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
High
Unassigned

Bug Description

Pulled down project from git (stable/newton).

Used OpenStack global requirements and installed in a virtualenv under Ubuntu 14.04 (python 2.7).

Problem manifested during compress operation, when setting up the web application for use.

Code excerpt attached.

To workaround, I explicitly disabled the Material theme.

https://gist.githubusercontent.com/jjahns/025e51e0b82009dd17a30651c2256262/raw/d02d96dcba8c2f68a0b68a3b175e6ed1c77190fc/gistfile1.txt

Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

The upper-constraints pinning of the XStatic-roboto-fontface isn't working for some reason in your environment. To be absolutely sure, please ensure you include the upper-constraints.txt file for stable/newton in your virtualenv install, for example:

  pip install -c http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton .

Note that run_tests.sh has been modified in stable/newton to pull that file in during virtualenv installation, so "run_tests.sh -m compress" should work for you.

The "tox -e manage" command *should also* be pulling that in but it appears not to be, and I'm not sure why, so I've marked this as a valid bug.

Changed in horizon:
status: New → Triaged
importance: Undecided → Critical
milestone: none → ocata-2
importance: Critical → High
milestone: ocata-2 → none
no longer affects: horizon/newton
Revision history for this message
Jay Jahns (jjahns) wrote :

Hello.

I did the upper constraints as asked.

I am still getting the error at compress time for the material theme.

root@osctrl01:/opt/mhos/openstack/horizon# bin/python manage.py compress
Found 'compress' tags in:
 /opt/mhos/openstack/horizon/openstack_dashboard/templates/_stylesheets.html
 /opt/mhos/openstack/horizon/openstack_dashboard/templates/horizon/_conf.html
 /opt/mhos/openstack/horizon/openstack_dashboard/templates/horizon/_scripts.html
Compressing... CommandError: An error occurred during rendering /opt/mhos/openstack/horizon/openstack_dashboard/templates/_stylesheets.html: Couldn't find anything to import: /horizon/lib/roboto_fontface/css/roboto-fontface.scss
Extensions: <NamespaceAdapterExtension>, <DjangoExtension>, <CompassExtension>
Search path:

on line 16 of themes/material/bootstrap/_styles.scss
imported from line 16 of themes/material/_styles.scss
imported from line 1 of u'string:c61b5d22d54bf56c:\n // My Themes\n@import "/themes/material/variables";\n\n// Horizon\n@import "/dashboard/scss/horizon'

Revision history for this message
Jay Jahns (jjahns) wrote :

My workaround is to remove the material theme from the list in the local_settings.py file. That works as expected.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Related to bug 1671004

Revision history for this message
Akihiro Motoki (amotoki) wrote :

python manage.py compress works well both with newton-eol and stable/ocata horizon. I specified upper-constraints.txt from stable/newton and stable/ocata respectively. I believe this bug is no longer valid.

Changed in horizon:
status: Triaged → Invalid
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.