[Openstack] [devstack][keystone][nova][glance][heat] error met when dealing with requirements files
Steve Heyman
steve.heyman at RACKSPACE.COM
Thu Jul 2 19:04:48 UTC 2015
Ken, can you clarify what you did? I have the same issue in my local dev environment for barbican.
I had keystonemidleware 1.6.1, pbr 1.1.1
After the update to requirements.txt I get the same failure: ValueError: ("Expected ',' or end-of-list in", "python-ldap>=2.4;python_version=='2.7'", 'at', ";python_version=='2.7'")
I deleted my .tox, .testrepository, still had the problem. Then I found your email.
I updated keystonemiddleware to 2.0.0 (which brought along pbr 1.2.0) but the problem still exists.
Simply running tox gives me the problem for all of our targets.
Thanks!
[cid:4D5C76B6-CDED-4B43-AB60-9ED60F98BC16]
From: "Chen, Ken" <ken.chen at intel.com<mailto:ken.chen at intel.com>>
Date: Thursday, June 25, 2015 at 9:02 PM
To: "openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>" <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] [devstack][keystone][nova][glance][heat] error met when dealing with requirements files
I found the issue. It is because my keystonemiddleware version is 1.6.1, while this version require pbr<1.0, >=0.6 (for keystonemiddleware>=1.5.0). So in the devstack installation, it will downgrade my pbr from 1.2.0 to 0.11.0.
After I upgrade my keystonemiddleware to 2.0.0 and pbr back to 1.2.0, this issue does not exist now. Therefore it is a bug, for pbr-0.11.0 is not compatible with those projects with lines like "*;python_version=='2.7'", while in their requirements.txt files there are still "pbr<2.0,>=0.11".
-Ken
From: Chen, Ken
Sent: Friday, June 26, 2015 9:16 AM
To: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: [devstack][keystone][nova][glance][heat] error met when dealing with requirements files
Today when I tried to build devstack on Ubuntu trusty, I found errors that I have not met before:
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'
It is because in keystone/test_requirements.txt, there is a line which cannot be recognized (the part after the semicolon):
python-ldap>=2.4;python_version=='2.7'
There are similar issue in glance/test_requirements.txt, nova/test_requirements.txt, and heat/requirements.txt where we have line like "*;python_version=='2.7'"
I do not know why, for I have already upgraded my pip and setuptools to the latest version.
-Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150702/c8154a33/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature-with-mafia[2][13].png
Type: image/png
Size: 14059 bytes
Desc: signature-with-mafia[2][13].png
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150702/c8154a33/attachment.png>
More information about the Openstack
mailing list