Python 由于pip包要求,devstack stack.sh失败

Python 由于pip包要求,devstack stack.sh失败,python,pip,virtualenv,openstack,requirements.txt,Python,Pip,Virtualenv,Openstack,Requirements.txt,我正在尝试使用devstack 我克隆了queens的稳定分支,我有一个简单的local.conf文件 当我尝试运行stack.sh时,它会在执行某些工作时不断打印以下警告 忽略EditorConfig:标记“python_version==”3.4“与您的环境不匹配 Ignoring EditorConfig: markers 'python_version == "3.5"' don't match your environment Ignoring argh: markers 'pytho

我正在尝试使用
devstack

我克隆了queens的稳定分支,我有一个简单的
local.conf
文件

当我尝试运行
stack.sh
时,它会在执行某些工作时不断打印以下警告

忽略EditorConfig:标记“python_version==”3.4“与您的环境不匹配

Ignoring EditorConfig: markers 'python_version == "3.5"' don't match your environment
Ignoring argh: markers 'python_version == "3.4"' don't match your environment
Ignoring argh: markers 'python_version == "3.5"' don't match your environment
Ignoring blinker: markers 'python_version == "3.4"' don't match your environment
Ignoring blinker: markers 'python_version == "3.5"' don't match your environment
Ignoring brotlipy: markers 'python_version == "3.4"' don't match your environment
Ignoring brotlipy: markers 'python_version == "3.5"' don't match your environment
Ignoring cssutils: markers 'python_version == "3.4"' don't match your environment
Ignoring cssutils: markers 'python_version == "3.5"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring h2: markers 'python_version == "3.4"' don't match your environment
在安装的早期,它告诉我将有一个旧的软件包

glance-store 0.24.0 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
openstacksdk 0.14.0 has requirement keystoneauth1>=3.7.0, but you'll have keystoneauth1 3.4.0 which is incompatible.
oslo-vmware 2.30.0 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
在某个时刻,它会停止,并出现以下错误

Obtaining file:///opt/stack/glance
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 521, in _prepare_file
    req_to_install.check_if_exists()
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1036, in check_if_exists
    self.req.name
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 558, in get_distribution
    dist = get_provider(dist)
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 432, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  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: (oslo.concurrency 3.25.1 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oslo.concurrency>=3.26.0'), set(['glance-store']))
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
我试图
pip安装--升级oslo.concurrency
我得到了一个更新的版本(3.27),但是当我
/clean.sh/unstack.sh/sh
我收到了同样的错误,我认为它删除了3.27版本,并重新安装了旧版本

有什么办法解决这个问题吗? 多谢各位

更新:添加local.conf
我会尝试运行
/stack.sh
直到失败,然后更新包,然后再次运行
/stack.sh
,而不运行
clean.sh
unstack.sh
。最近出现了一个类似的错误,这对我来说很有效(升级了两个软件包后)。谢谢你的评论,我试过了,但仍然是一样的:(你能用你的
local.conf
更新这个问题吗?@vabada updated我用你的
local.conf
试过了,它对我有用。你用新的虚拟机试过了吗?另外,你用的是哪个devstack版本?master?
[[local|localrc]]

RECLONE=yes
# Enable heat services
enable_service h-eng h-api h-api-cfn h-api-cw

# Enable heat plugin
enable_plugin heat https://github.com/openstack/heat
enable_plugin heat-dashboard https://github.com/openstack/heat-dashboard

# ceilometer and aodh for alaming
# CEILOMETER_BACKEND=mysql
enable_plugin ceilometer https://github.com/openstack/ceilometer
enable_plugin aodh https://github.com/openstack/aodh
enable_plugin zaqar https://github.com/openstack/zaqar
enable_plugin mistral https://github.com/openstack/mistral

# Ubuntu Image
IMAGE_URLS+=",http://cloud-images.ubuntu.com/minimal/daily/xenial/current/xenial-minimal-cloudimg-amd64-disk1.img"
IMAGE_URLS+=",http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img"


HOST_IP=10.11.200.110
SERVICE_HOST=10.11.200.110
MYSQL_HOST=10.11.200.110
RABBIT_HOST=10.11.200.110
GLANCE_HOSTPORT=10.11.200.110:9292
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin

IP_VERSION=4


# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex