grenade fails setting up horizon with "ImportError: No module named utils" for compressor package

Bug #1532048 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Matt Riedemann
Kilo
Fix Released
Undecided
Unassigned

Bug Description

Seen on a stable/liberty change here, so the old side would be setting up kilo:

http://logs.openstack.org/80/256180/1/gate/gate-grenade-dsvm/d1909a9/logs/grenade.sh.txt.gz#_2016-01-07_19_40_08_188

2016-01-07 19:40:08.188 | Traceback (most recent call last):
2016-01-07 19:40:08.188 | File "/opt/stack/old/horizon/manage.py", line 23, in <module>
2016-01-07 19:40:08.188 | execute_from_command_line(sys.argv)
2016-01-07 19:40:08.188 | File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
2016-01-07 19:40:08.188 | utility.execute()
2016-01-07 19:40:08.189 | File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
2016-01-07 19:40:08.189 | django.setup()
2016-01-07 19:40:08.189 | File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
2016-01-07 19:40:08.189 | apps.populate(settings.INSTALLED_APPS)
2016-01-07 19:40:08.189 | File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
2016-01-07 19:40:08.189 | app_config.import_models(all_models)
2016-01-07 19:40:08.189 | File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
2016-01-07 19:40:08.189 | self.models_module = import_module(models_module_name)
2016-01-07 19:40:08.189 | File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
2016-01-07 19:40:08.196 | __import__(name)
2016-01-07 19:40:08.196 | File "/usr/local/lib/python2.7/dist-packages/compressor/models.py", line 1, in <module>
2016-01-07 19:40:08.196 | from compressor.conf import CompressorConf # noqa
2016-01-07 19:40:08.196 | File "/usr/local/lib/python2.7/dist-packages/compressor/conf.py", line 5, in <module>
2016-01-07 19:40:08.196 | from django.template.utils import InvalidTemplateEngineError
2016-01-07 19:40:08.196 | ImportError: No module named utils

Looks like this is probably due to django_compressor 2.0 released today breaking all branches:

https://pypi.python.org/pypi/django_compressor/2.0

Matt Riedemann (mriedem)
Changed in horizon:
status: New → Confirmed
Revision history for this message
Matt Riedemann (mriedem) wrote :

Capping django_compressor<2.0 in stable/kilo g-r:

https://review.openstack.org/#/c/265026/

The breaking change was https://github.com/django-compressor/django-compressor/commit/671cf7dce2a9c5c42e2d2c4b8bfc82dcfbcd064a which drops support for django<1.8 and that's what we have django capped at in stable/kilo g-r.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Actually the cap is in this change which was proposed first by jlk: https://review.openstack.org/#/c/265025/

tags: added: in-stable-kilo
Revision history for this message
Matt Riedemann (mriedem) wrote :

Here is the g-r sync to horizon stable/kilo: https://review.openstack.org/#/c/265179/

I had to update that to workaround a pbr bug so we can get this merged and unblock kilo and liberty.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/kilo)

Reviewed: https://review.openstack.org/265179
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=03c154b0bba5b88a45f352388faf8e17a3b341c4
Submitter: Jenkins
Branch: stable/kilo

commit 03c154b0bba5b88a45f352388faf8e17a3b341c4
Author: OpenStack Proposal Bot <email address hidden>
Date: Fri Jan 8 10:53:01 2016 +0000

    Updated from global requirements and workaround testr/pbr issue

    The fix for pbr is in 6e472b4905411a39e993c81c382a27ca9c771ef5 but
    rather than wait for that to be released in pbr on stable/kilo we
    will workaround it here so we can get stable/kilo and stable/liberty
    gates unblocked, then come back and cleanup later.

    Closes-Bug: #1532048
    Related-Bug: #1375048

    Change-Id: I59a128a1775ac06c2ca5f53ced9e1eaeb2f3f889

Matt Riedemann (mriedem)
Changed in horizon:
status: Confirmed → Fix Committed
assignee: nobody → Matt Riedemann (mriedem)
Changed in horizon:
importance: Undecided → High
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/266646

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/liberty)

Change abandoned by Steve McLellan (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/266646
Reason: Wrong remote - sorry!

Changed in horizon:
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.