2017-01-01 83 views
5

這是在Ubuntu 16.04服務器上的stable/newton上。OpenStack DevStack失敗:安裝keystoneauth1 2.12.2,然後要求2.16.0或更好

錯誤消息:

[email protected]:/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) 
[email protected]:/opt/devstack$ 

而經過:

[email protected]:/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) 
[email protected]:/opt/devstack$ 

我也確信刪除

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 

運行./stack.sh,從/opt/devstack爲用戶stack之前點緩存rm -rf ~/.pip/cache,但那裏d似乎不是這個用戶的一個。

如何解決版本衝突?

回答

1

我解決了這個問題,通過使用默認的Vagrant腳本在VirtualBox下建立一個新的虛擬機,在這個虛擬機上安裝好devstack(stable/newton)。然後我把這個問題刪除了。我沒有發現python軟件包版本配置錯誤的根本原因。