OpenStack DevStack失败:安装keystoneauth1 2.12.2,然后需要2.16.0或更高版本

chr*_*alz 5 openstack devstack

这是在stable/newtonUbuntu 16.04服务器上.

错误信息是:

 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
Run Code Online (Sandbox Code Playgroud)

在运行之前./stack.sh,从/opt/devstack用户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$
Run Code Online (Sandbox Code Playgroud)

之后:

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$ 
Run Code Online (Sandbox Code Playgroud)

我还确保删除了pip缓存rm -rf ~/.pip/cache,但这个用户似乎没有.

如何解决版本冲突?

chr*_*alz 1

我通过使用默认的 Vagrant 脚本在 VirtualBox 下设置一个新的虚拟机解决了这个问题,在该虚拟机上 devstack 安装得很好 ( stable/newton)。然后我删除了有问题的虚拟机。我没有找到 python 包版本配置错误的根本原因。