django-openstack-auth 1.1.8+ breaks stable/icehouse devstack

Bug #1415243 reported by Ryan Hsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

Global requirements currently has no cap for the django-openstack-auth dependency, which is used for Horizon and there are a few problems with the latest releases with regards to stable/icehouse:

1. version 1.1.8 breaks unit tests as per bug #1413876 [1]
2. version 1.1.9 adds[2] a requirement for oslo.config>=1.6.0 but stable/icehouse projects require oslo.config<1.5.0 (for example see nova [3])

This can be fixed by adding a django-openstack-auth<1.1.8 constraint to horizon and global requirements. The fix will resolve the following error message seen during stacking:

Traceback (most recent call last):
  File "/usr/local/bin/glance-manage", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 614, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 627, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: oslo.config<1.5,>=1.2.0

[1] https://bugs.launchpad.net/horizon/+bug/1413876
[2] https://github.com/openstack/django_openstack_auth/commit/2b10c7b51081306b4c675046fd7dfe9df375943d
[3] https://github.com/openstack/nova/blob/stable/icehouse/requirements.txt#L32

Ryan Hsu (rhsu)
description: updated
description: updated
Changed in horizon:
assignee: nobody → Ryan Hsu (rhsu)
Ryan Hsu (rhsu)
description: updated
Revision history for this message
Alan Pevec (apevec) wrote :

Dependencies in requirements.txt do not seem to be used in stable/icehouse gate jobs, recent pip freeze in stable/icehouse shows:
...
 oslo.config==1.6.0 # git sha 99e530e
 django-openstack-auth==1.1.9 # git sha 2079383

Revision history for this message
Ryan Hsu (rhsu) wrote :

Alan is correct, I just looked at a recent stable/icehouse Horizon patch (#149621) that passed gate but the devstack log showed multiple occurrences of oslo.config getting uninstalled with the 1.6.0. You can see these if you open up the devstack log [1] for that run and search "uninstalling oslo.config".

[1] http://logs.openstack.org/21/149621/1/check/check-tempest-dsvm-full/376d864/logs/devstacklog.txt.gz

Changed in horizon:
assignee: Ryan Hsu (rhsu) → nobody
status: New → 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.