python-ldap 2.4.20 causing install issues

Bug #1472503 reported by yalei wang
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned
pbr (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I use the lastest devstack and lastest keystone, and the install error from devstack is like this:

2015-07-08 07:15:36.238 | + local name=keystone
2015-07-08 07:15:36.238 | + /opt/stack/requirements/.venv/bin/edit-constraints /opt/stack/requirements/upper-constraints.txt -- keystone '-e file:///opt/stack/keystone#egg=keystone'
2015-07-08 07:15:36.315 | + setup_package /opt/stack/keystone -e
2015-07-08 07:15:36.315 | + local project_dir=/opt/stack/keystone
2015-07-08 07:15:36.315 | + local flags=-e
2015-07-08 07:15:36.315 | + pip_install -e /opt/stack/keystone
2015-07-08 07:15:36.592 | + sudo -H http_proxy=http://proxy01.cd.intel.com:911 https_proxy=http://proxy01.cd.intel.com:911 'no_proxy=intel.com,*.intel.com,10.0.0.0/8,192.168.0.0/16,127.0.0.0/8,localhost,127.0.0.1,192.168.140.145' PIP_FIND_LINKS=file:///opt/stack/.wheelhouse /usr/local/bin/pip install -e /opt/stack/keystone
2015-07-08 07:15:37.358 | Obtaining file:///opt/stack/keystone
2015-07-08 07:15:38.004 | Complete output from command python setup.py egg_info:
2015-07-08 07:15:38.004 | error in setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Expected ',' or end-of-list in python-ldap>=2.4;python_version=='2.7' at ;python_version=='2.7'
2015-07-08 07:15:38.004 |
2015-07-08 07:15:38.004 | ----------------------------------------
2015-07-08 07:15:38.004 | Command "python setup.py egg_info" failed with error code 1 in /opt/stack/keystone
2015-07-08 07:15:38.015 | + exit_trap
2015-07-08 07:15:38.015 | + local r=1
2015-07-08 07:15:38.016 | ++ jobs -p
2015-07-08 07:15:38.016 | + jobs=
2015-07-08 07:15:38.016 | + [[ -n '' ]]
2015-07-08 07:15:38.016 | + kill_spinner
2015-07-08 07:15:38.016 | + '[' '!' -z '' ']'
2015-07-08 07:15:38.016 | + [[ 1 -ne 0 ]]
2015-07-08 07:15:38.016 | + echo 'Error on exit'
2015-07-08 07:15:38.017 | Error on exit
2015-07-08 07:15:38.017 | + [[ -z /opt/stack/logs ]]
2015-07-08 07:15:38.017 | + /home/stack/devstack/devstack/tools/worlddump.py -d /opt/stack/logs
2015-07-08 07:15:38.051 | df: '/run/user/112/gvfs': Permission denied
2015-07-08 07:15:38.484 | + exit 1
stack@stack-PC44-8000:~/devstack/devstack$ 2015-07-08 07:15:38.490 | /bin/sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
2015-07-08 07:15:38.490 | kill -l [exitstatus]

seems this line in https://review.openstack.org/#/c/197773/2/test-requirements.txt
python-ldap>=2.4;python_version=='2.7'

Revision history for this message
Steve Martinelli (stevemar) wrote :

looks like an error with the latest python-ldap - considering it was releases yesterday this seems about right https://pypi.python.org/pypi/python-ldap/2.4.20

summary: - install error because of tests_require string
+ python-ldap 2.4.20 causing install issues
Revision history for this message
Steve Martinelli (stevemar) wrote :

Might want to double check that you're not using an old devstack or pbr. I'm not seeing any breaks in our CI

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

This is likley an issue with a previous installation on an old vm.

If you spin up a new (clean) vm, does this occur? We made some changes to pbr that leverage new functionality that allows us to indicate versions of libraries in our requirements. You can also try updating pbr.

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

Please mark this bug as new if he clean vm/new drvstack does not solve this.

Changed in keystone:
status: New → Incomplete
Revision history for this message
yalei wang (yalei-wang) wrote :

Thanks all for your help, it's OK if I updated the pbr, if it is the reason, why there is no version constrain for pbr ?

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

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

Changed in pbr (Ubuntu):
status: New → Confirmed
Dolph Mathews (dolph)
Changed in pbr (Ubuntu):
status: Confirmed → Invalid
Changed in keystone:
status: Incomplete → Invalid
Changed in pbr (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Dolph Mathews (dolph) wrote :

Closing in keystone based on comment #5. The version constraint for pbr in keystone's requirements already includes the latest version, but the minimum could certainly be bumped OpenStack-wide:

  https://github.com/openstack/keystone/blob/7efc3d/requirements.txt#L5

  https://github.com/openstack/requirements/blob/7f192f/global-requirements.txt#L105

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.