Python-keystoneclient requirement mismatch when installing on Ubuntu 12.04

Bug #1199529 reported by Krishnan Narayan
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Francois Eleouet

Bug Description

Hi,

I am setting up Openstack on my machine using devstack and there seems to be a mismatch in the python-keystoneclient versions that's downloaded via devstack.

I am running this on Ubuntu 12.04 TLS. I do not have any previous versions of python-keystoneclient installed. I also tried removing what was previously installed after running stack.sh once (sudo apt-get remove python-keystoneclient) but it seems like the keystone client being installed is an older version.

Stack trace:
error: Installed distribution python-keystoneclient 0.2.5 conflicts with requirement python-keystoneclient>=0.3
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace

Thanks,
Keshy

Revision history for this message
Alex Wallace (alexrwallace) wrote :

I am seeing the same thing.

Interestingly I ran stack.sh just fine last night with Ubuntu 12.04. Today it is failing with both Ubuntu 12.04 AND Fedora 18

Revision history for this message
Tim Simmons (timsim) wrote :

I'm in the same situation. It worked fine for me last night.

Revision history for this message
Krishnan Narayan (keshi8086) wrote :

I tried manually setting up the python-keystoneclient with version 0.3.1 from here:
https://pypi.python.org/pypi/python-keystoneclient

But then I get the following bug as most of the other projects have requirements for the keystone client version to be between 0.2 and 0.3.

error: Installed distribution python-keystoneclient 0.2.5 conflicts with requirement python-keystoneclient>=0.2,<0.3
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace

A simple workaround would be to modify the dependency such that it accepts versions 0.2.5 which is currently being downloaded as a part of the devstack script.

Revision history for this message
Tim Simmons (timsim) wrote :

I tried this again late last night and didn't get the error. My procedure wasn't any different.

Revision history for this message
Kurt Martin (kurt-f-martin) wrote :

I'm getting the same error today, has this been resolved in devstack yet or a workaround exists?

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

I also encounter this issue today, does there a workaround way? Thanks.

Revision history for this message
Krishnan Narayan (keshi8086) wrote :

I did a complete update of devstack and removed the old /opt/stack folder. Did a complete re-install and seemed to work fine after that.

What is the exact error that your seeing? What version number do you get?

Revision history for this message
Krishnan Narayan (keshi8086) wrote :

I can confirm that I see the issue with the latest build of the script:

2013-07-25 13:16:39 Installed /opt/stack/horizon
2013-07-25 13:16:39 Processing dependencies for horizon==2013.2.a17.g6999264
2013-07-25 13:16:39 error: Installed distribution python-keystoneclient 0.3.1.24.gfd8f053 conflicts with requirement python-keystoneclient>=0.2,<0.3
2013-07-25 13:16:39 ++ failed
2013-07-25 13:16:39 ++ local r=1
2013-07-25 13:16:39 +++ jobs -p
2013-07-25 13:16:39 ++ kill
2013-07-25 13:16:39 ++ set +o xtrace
2013-07-25 13:16:39 stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2013-07-25-131405

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Thanks Krishnan, I got same error as you.

Creating /usr/local/lib/python2.7/dist-packages/horizon.egg-link (link to .)
Adding horizon 2013.2.a17.g6999264 to easy-install.pth file

Installed /opt/stack/horizon
Processing dependencies for horizon==2013.2.a17.g6999264
error: Installed distribution python-keystoneclient 0.3.1.24.gfd8f053 conflicts with requirement python-keystoneclient>=0.2,<0.3
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace

Revision history for this message
Haiwei Xu (xu-haiwei) wrote :

I got the exact same error with Jay Lau and Krishnan Narayan.
I am also using the latest version of devstack.

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Krishnan, how did you workaround this? Seems only remove files under /opt/stack does not work, since there are still some OpenStack binaries under /usr/local/bin/.

Revision history for this message
Dean Troyer (dtroyer) wrote :

If you are seeing the following:

> error: Installed distribution python-keystoneclient 0.3.1.24.XXXXXXX conflicts with requirement python-keystoneclient>=0.2,<0.3

then you have something out of date in your system. If you are not running trunk (say grizzly instead), then we need details in order to attempt to resolve the conflicts. Please provide the output of tools/info.sh as a start.

To find where the out-of-date requirement is:

grep keystoneclient /opt/stack/*/requirements.txt /opt/stack/*/tools/*requires*

Either refresh that repo or add RECLONE=yes to locarc and re-run stack.sh.

Changed in devstack:
status: New → Incomplete
Revision history for this message
gordon chung (chungg) wrote :

reclone didn't work for me (also, ran clean.sh in there).

building off the latest masters, my devstack fails with:

Installed /opt/stack/horizon
Processing dependencies for horizon==2013.2.a17.g6999264
error: Installed distribution python-keystoneclient 0.3.1.24.gfd8f053 conflicts with requirement python-keystoneclient>=0.2,<0.3
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace

openstack@plwdevstack:/opt/stack/ceilometer$ grep keystoneclient /opt/stack/*/requirements.txt /opt/stack/*/tools/*requires*
/opt/stack/ceilometer/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/cinder/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/horizon/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/keystone/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/neutron/requirements.txt:python-keystoneclient>=0.2.0
/opt/stack/nova/requirements.txt:python-keystoneclient>=0.2.0
/opt/stack/python-ceilometerclient/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/python-glanceclient/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/python-openstackclient/requirements.txt:python-keystoneclient>=0.2,<1.0
/opt/stack/tempest/requirements.txt:python-keystoneclient>=0.2.0
/opt/stack/glance/tools/pip-requires:python-keystoneclient>=0.2.0

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Here's mine:

dims@dims-desktop:/opt/stack$ grep keystoneclient /opt/stack/*/requirements.txt /opt/stack/*/tools/*requires*
/opt/stack/keystone/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/python-glanceclient/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/python-openstackclient/requirements.txt:python-keystoneclient>=0.2,<1.0
/opt/stack/glance/tools/pip-requires:python-keystoneclient>=0.2.0

Revision history for this message
gordon chung (chungg) wrote :

info.sh output (really hoping there isn't anything in there that i shouldn't be pasting): http://paste.openstack.org/show/41831/

Revision history for this message
Henry Gessau (gessau) wrote :

I am seeing this problem on trunk (reclone, online):

> error: Installed distribution python-keystoneclient 0.3.1.24.XXXXXXX conflicts with requirement python-keystoneclient>=0.2,<0.3

Here is the output of tools/info.sh:
http://paste.openstack.org/show/41833/

Revision history for this message
Krishnan Narayan (keshi8086) wrote :

Here's mine.

http://paste.openstack.org/show/41834/

I really do not see any requirement.txt file having keystone requirement of >=0.2,<0.3. Not really sure where this is being referenced from.

It fails out in installation of Horizon where its looking for dependencies.

/opt/stack/cinder/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/horizon/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/keystone/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/nova/requirements.txt:python-keystoneclient>=0.2.0
/opt/stack/python-glanceclient/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/python-openstackclient/requirements.txt:python-keystoneclient>=0.2,<1.0

According to the above requirement the existing keystone client satisfies it. The current version on my system is 0.3.1.24

Thanks,
Krishnan

Revision history for this message
Krishnan Narayan (keshi8086) wrote :

I think the last time I was able to get a workaround was by installing the version of keystone that's deemed valid by the openstack config files specified in the requirements.txt.

So I removed the keystone client installed with devstack and downloaded the older tar ball and wired it up.

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Here is mine:
root@liugya-ubuntu:~/devstack# grep keystoneclient /opt/stack/*/requirements.txt /opt/stack/*/tools/*requires*
/opt/stack/horizon/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/keystone/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/nova/requirements.txt:python-keystoneclient>=0.2.0
/opt/stack/python-glanceclient/requirements.txt:python-keystoneclient>=0.2.1
/opt/stack/glance/tools/pip-requires:python-keystoneclient>=0.2.0

Also reclone does not work. Thanks.

Revision history for this message
Francois Eleouet (fanchon) wrote :

I faced the same issue, it looks like it comes from python-heatclient requirement:

horizon requires python-heatclient>=0.2.2
but python-heatclient-0.2.2 requires python-keystoneclient>=0.2,<0.3

updating python-heatclient to 0.2.3 (pip install --upgrade python-heatclient) fixed the problem for me.

Revision history for this message
Francois Eleouet (fanchon) wrote :

It turned out not to be a devstack bug, but horizon dependancy issue (fixed in https://review.openstack.org/#/c/38825/ ). I'm assigning to myself to close the bug.

Changed in devstack:
assignee: nobody → Francois Eleouet (fanchon)
status: Incomplete → Fix Released
Revision history for this message
Dave Walker (davewalker) wrote :

I don't think it's as simple as a horizon problem... Looking at current stable/grizzly:

Installed /opt/stack/cinder
Processing dependencies for cinder==2013.1.5.a38.gc9c9eaa
error: Installed distribution python-keystoneclient 0.2.5 conflicts with requirement python-keystoneclient>=0.3.0

# grep keystoneclient /opt/stack/*/requirements.txt /opt/stack/*/tools/*requires*
/opt/stack/python-glanceclient/requirements.txt:python-keystoneclient>=0.3.0
/opt/stack/python-openstackclient/requirements.txt:python-keystoneclient>=0.4.1
/opt/stack/cinder/tools/pip-requires:python-keystoneclient>=0.2.0
/opt/stack/glance/tools/pip-requires:python-keystoneclient>=0.2.0
/opt/stack/keystone/tools/pip-requires:python-keystoneclient>=0.2.1,<0.3
/opt/stack/keystone/tools/test-requires:# for python-keystoneclient
/opt/stack/keystone/tools/test-requires:httplib2 # keystoneclient <0.2.1
/opt/stack/keystone/tools/test-requires:requests>=1.0.0 # replaces httplib2 in keystoneclient >=0.2.1

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.