ContextualVersionConflict Requirement.parse('python-keystoneclient>=3.8.0'), set(['glance-store'])

Bug #1657113 reported by Ken
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

During installation of Newton using DevStack, I have come across the error " ContextualVersionConflict: (python-keystoneclient 3.5.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('python-keystoneclient>=3.8.0'), set(['glance-store']))". I am not sure but this seems to be a bug hence this report.

The log trace is attached :
017-01-17 11:10:05.992 | +inc/python:_setup_package_with_constraints_edit:323 setup_package /opt/stack/glance -e
2017-01-17 11:10:06.003 | +inc/python:setup_package:339 local project_dir=/opt/stack/glance
2017-01-17 11:10:06.014 | +inc/python:setup_package:340 local flags=-e
2017-01-17 11:10:06.025 | +inc/python:setup_package:341 local extras=
2017-01-17 11:10:06.037 | +inc/python:setup_package:345 [[ -n -e ]]
2017-01-17 11:10:06.048 | +inc/python:setup_package:345 [[ -z '' ]]
2017-01-17 11:10:06.059 | +inc/python:setup_package:345 [[ ! -e =~ ^-.* ]]
2017-01-17 11:10:06.070 | +inc/python:setup_package:350 [[ ! -z '' ]]
2017-01-17 11:10:06.084 | +inc/python:setup_package:354 pip_install -e /opt/stack/glance
2017-01-17 11:10:07.404 | +inc/python:pip_install:155 sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /usr/local/bin/pip2.7 install -c /opt/stack/requirements/upper-constraints.txt -e /opt/stack/glance
2017-01-17 11:10:09.553 | Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
2017-01-17 11:10:09.557 | Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
2017-01-17 11:10:09.840 | Ignoring ovs: markers 'python_version == "3.4"' don't match your environment
2017-01-17 11:10:09.841 | Ignoring ovs: markers 'python_version == "3.5"' don't match your environment
2017-01-17 11:10:10.041 | Obtaining file:///opt/stack/glance
2017-01-17 11:10:13.255 | Exception:
2017-01-17 11:10:13.255 | Traceback (most recent call last):
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
2017-01-17 11:10:13.255 | status = self.run(options, args)
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run
2017-01-17 11:10:13.255 | wb.build(autobuilding=True)
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
2017-01-17 11:10:13.255 | self.requirement_set.prepare_files(self.finder)
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
2017-01-17 11:10:13.255 | ignore_dependencies=self.ignore_dependencies))
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 521, in _prepare_file
2017-01-17 11:10:13.255 | req_to_install.check_if_exists()
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1036, in check_if_exists
2017-01-17 11:10:13.255 | self.req.name
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 558, in get_distribution
2017-01-17 11:10:13.255 | dist = get_provider(dist)
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 432, in get_provider
2017-01-17 11:10:13.255 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 968, in require
2017-01-17 11:10:13.255 | needed = self.resolve(parse_requirements(requirements))
2017-01-17 11:10:13.255 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 859, in resolve
2017-01-17 11:10:13.255 | raise VersionConflict(dist, req).with_context(dependent_req)
2017-01-17 11:10:13.256 | ContextualVersionConflict: (python-keystoneclient 3.5.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('python-keystoneclient>=3.8.0'), set(['glance-store']))
2017-01-17 11:10:13.472 | +inc/python:pip_install:1 exit_trap
2017-01-17 11:10:13.483 | +./stack.sh:exit_trap:487 local r=2
2017-01-17 11:10:13.496 | ++./stack.sh:exit_trap:488 jobs -p
2017-01-17 11:10:13.508 | +./stack.sh:exit_trap:488 jobs=
2017-01-17 11:10:13.519 | +./stack.sh:exit_trap:491 [[ -n '' ]]
2017-01-17 11:10:13.531 | +./stack.sh:exit_trap:497 kill_spinner
2017-01-17 11:10:13.542 | +./stack.sh:kill_spinner:383 '[' '!' -z '' ']'
2017-01-17 11:10:13.552 | +./stack.sh:exit_trap:499 [[ 2 -ne 0 ]]
2017-01-17 11:10:13.562 | +./stack.sh:exit_trap:500 echo 'Error on exit'
2017-01-17 11:10:13.562 | Error on exit
2017-01-17 11:10:13.571 | +./stack.sh:exit_trap:501 generate-subunit 1484651088 325 fail
2017-01-17 11:10:14.397 | +./stack.sh:exit_trap:502 [[ -z /opt/stack/logs ]]
2017-01-17 11:10:14.407 | +./stack.sh:exit_trap:505 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2017-01-17 11:10:14.863 | +./stack.sh:exit_trap:511 exit 2
stack@newton02:/opt/stack/devstack$

Changed in devstack:
status: New → Confirmed
Revision history for this message
Alessandro Delfino (alessandro.delfino) wrote :

I found the same error when running devstack from newton branch.

I changed the file upper-constraints.txt in /opt/stack/requirements with the one from the master: https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt

This bypass the error, but I think is only a workaround.

Revision history for this message
Adolfo Duarte (adolfo-duarte) wrote :

I have found this problem as well on ubuntu 16.04

Revision history for this message
Faseela K (faseelak) wrote :

I am getting the same error, while stacking ocata. However python-neutronclient requirements.txt is showing keystoneauth1 as 2.18

2017-06-04 00:20:36.191 | Obtaining file:///opt/stack/neutron
2017-06-04 00:20:38.679 | Exception:
2017-06-04 00:20:38.680 | Traceback (most recent call last):
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
2017-06-04 00:20:38.680 | status = self.run(options, args)
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run
2017-06-04 00:20:38.680 | wb.build(autobuilding=True)
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
2017-06-04 00:20:38.680 | self.requirement_set.prepare_files(self.finder)
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
2017-06-04 00:20:38.680 | ignore_dependencies=self.ignore_dependencies))
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 521, in _prepare_file
2017-06-04 00:20:38.680 | req_to_install.check_if_exists()
2017-06-04 00:20:38.680 | File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1036, in check_if_exists
2017-06-04 00:20:38.681 | self.req.name
2017-06-04 00:20:38.681 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 558, in get_distribution
2017-06-04 00:20:38.681 | dist = get_provider(dist)
2017-06-04 00:20:38.681 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 432, in get_provider
2017-06-04 00:20:38.681 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
2017-06-04 00:20:38.681 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 968, in require
2017-06-04 00:20:38.681 | needed = self.resolve(parse_requirements(requirements))
2017-06-04 00:20:38.681 | File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 859, in resolve
2017-06-04 00:20:38.681 | raise VersionConflict(dist, req).with_context(dependent_req)
2017-06-04 00:20:38.681 | ContextualVersionConflict: (keystoneauth1 2.18.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('keystoneauth1>=2.20.0'), set(['python-neutronclient']))
2017-06-04 00:20:38.803 | +^[[3242minc/python:pip_install:1 ^[(B^[[m exit_trap
2017-06-04 00:20:38.807 | +^[[3242m./stack.sh:exit_trap:491 ^[(B^[[m local r=2

Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version newton in description. If this is incorrect, please update the description to include 'https://api.launchpad.net/1.0/devstack version: ...'

Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version newton in description. If this is incorrect, please update the description to include 'devstack version: ...'

Sean Dague (sdague)
tags: added: openstack-version.newton
Revision history for this message
Caisi LIU (caisil) wrote :

@Sean Dague I encounter the same issue on newton.
I'd like to know, where should the "devstack version: ..."? devstack/.git/description?
What is the full description like?
devstack version: openstack-version.newton

Is this right?

Thanks.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Given the age of the bug report, it is unclear whether this is still a valid issue. Please update with fresh logs if this issue still persists.

Changed in devstack:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
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.