devstack stack.sh не работает из-за требований пакета pip - PullRequest
0 голосов
/ 03 июля 2018

Я пытаюсь установить OpenStack на Ubuntu-server16.04, используя devstack

Я клонировал стабильную ветвь королев , и у меня есть простой 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 install --upgrade oslo.concurrency Я получил более новую версию (3.27), но когда я ./clean.sh; ./unstack.sh; ./stack.sh я получаю ту же ошибку, я считаю, что он удаляет версию 3.27 и устанавливает старую версию обратно

есть идеи как это решить? спасибо.

ОБНОВЛЕНИЕ: добавление local.conf

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