OpenStack DevStack Fail: installs keystoneauth1 2.12.2, then requires 2.16.0 or better

This is on stable/newton , on a Ubuntu 16.04 server.

Error message:

  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 859, in resolve raise VersionConflict(dist, req).with_context(dependent_req) ContextualVersionConflict: (keystoneauth1 2.12.2 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('keystoneauth1>=2.16.0'), set(['glance-store'])) +inc/python:pip_install:1 exit_trap 

Before running ./stack.sh , from /opt/devstack as the stack user:

 stack@ubuntu-server-openstack :/opt/devstack$ pip list | ack keystoneauth1 DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. keystoneauth1 (2.16.0) stack@ubuntu-server-openstack :/opt/devstack$ 

And after:

 stack@ubuntu-server-openstack :/opt/devstack$ pip list | ack keystoneauth1 DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. keystoneauth1 (2.12.2) stack@ubuntu-server-openstack :/opt/devstack$ 

I also made sure that you delete the cache-pip rm -rf ~/.pip/cache , but for this user, it seems not.

How to resolve version conflict?

+5
source share
1 answer

I solved this using the Vagrant default script to configure the new vm under VirtualBox, on which devstack is installed just fine ( stable/newton ). Then I deleted vm with the problem. I did not find the root cause of the wrong configuration with python package versions.

+1
source

Source: https://habr.com/ru/post/1262136/


All Articles