2017-01-01 16 views
5

Đây là trên stable/newton, trên máy chủ Ubuntu 16.04.Lỗi OpenStack DevStack: cài đặt keystoneauth1 2.12.2, sau đó yêu cầu 2.16.0 hoặc tốt hơn

Thông báo lỗi là:

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 

Trước khi chạy ./stack.sh, từ /opt/devstack là người dùng stack:

[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$ 

Và sau:

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

tôi cũng đã thực hiện chắc chắn để xóa các pip cache rm -rf ~/.pip/cache, nhưng có d có vẻ như không phải là một cho người dùng này.

Làm cách nào để giải quyết xung đột phiên bản?

Trả lời

1

Tôi đã giải quyết vấn đề này bằng cách sử dụng tập lệnh Vagrant mặc định để thiết lập vm mới trong VirtualBox, trên đó devstack được cài đặt tốt (stable/newton). Sau đó tôi đã xóa vm với vấn đề. Tôi không tìm thấy nguyên nhân gốc của cấu hình sai với các phiên bản gói python.

Các vấn đề liên quan