How to fix broken devstack on keystoneauth1 self-break?

asked 2017-01-02 11:01:16 -0500

christopherbalz gravatar image

stable/newton on headless Ubuntu Server 16.04 LTS devstack fails due to the fact that it (apparently) installs keystoneauth1==2.12.2 and then breaks (stops the stacking) because it fails to find keystoneauth1==2.16.0 or better.

Even if I install keystoneauth1==2.16.0 prior to stacking, I get this failure.

The error message is:

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 user stack:

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 have also made sure to delete the pip cache rm -rf ~/.pip/cache, but there does not seem to be one for this user.

How can the version conflict be resolved?

(Note: Question also posted here: http://stackoverflow.com/questions/41412887/openstack-devstack-fail-installs-keystoneauth1-2-12-2-then-demands-2-16-0-or-b (http://stackoverflow.com/questions/41...) ).

edit retag flag offensive close merge delete

Comments

What branch are you working upon?

guptavaibhav gravatar imageguptavaibhav ( 2017-07-31 09:21:19 -0500 )edit