fatal error in: python_venv_build : Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want

Bug #1824790 reported by Daniele Pizzolli
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

Hello,

in a VM with Ubuntu 16.04.6 LTS:

Running the following:
'''
apt-get update
DEBCONF_FRONTEND=noninteractive apt-get dist-upgrade -y
apt install -y git
git clone https://git.openstack.org/openstack/openstack-ansible \
    /opt/openstack-ansible
cd /opt/openstack-ansible
git checkout stable/stein
STABLE_TAG="$(git describe --abbrev=0 --tags)"
git checkout "${STABLE_TAG}"
git reset --hard "${STABLE_TAG}"
./scripts/bootstrap-ansible.sh
./scripts/bootstrap-aio.sh
cd /opt/openstack-ansible/playbooks
openstack-ansible setup-hosts.yml
openstack-ansible setup-infrastructure.yml
openstack-ansible setup-openstack.yml
'''

will fail:

'''
[...]
TASK [python_venv_build : Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want] ***
FAILED - RETRYING: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want (5 retries left).
FAILED - RETRYING: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want (4 retries left).
FAILED - RETRYING: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want (3 retries left).
FAILED - RETRYING: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want (2 retries left).
FAILED - RETRYING: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want (1 retries left).
fatal: [aio1_utility_container-1aec2013 -> 172.29.238.188]: FAILED! => {"attempts": 5, "changed": false, "cmd": ["/openstack/venvs/wheel-builder/bin/pip2", "install", "-U", "--constraint", "/var/www/repo/os-releases/19.0.0.0rc1/utility-19.0.0.0rc1-source-constraints.txt", "--find-links", "/var/www/repo/os-releases/19.0.0.0rc1/ubuntu-16.04-x86_64/", "--log", "/var/log/python_venv_build.log", "pip", "setuptools", "wheel"], "msg": "stdout: Collecting pip\n\n:stderr: Ignoring mypy-extensions: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring mypy-extensions: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring mypy-extensions: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring tornado: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring tornado: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring tornado: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring asyncio: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring asyncio: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring asyncio: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring dnspython3: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring dnspython3: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring dnspython3: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring mypy: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring mypy: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring mypy: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring jeepney: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring jeepney: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring jeepney: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring SecretStorage: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring SecretStorage: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring SecretStorage: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring more-itertools: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring more-itertools: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring more-itertools: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring Django: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring Django: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring Django: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring typed-ast: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring typed-ast: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring typed-ast: markers u\"python_version=='3.6'\" don't match your environment\nIgnoring dnspython: markers u\"python_version=='3.4'\" don't match your environment\nIgnoring dnspython: markers u\"python_version=='3.5'\" don't match your environment\nIgnoring dnspython: markers u\"python_version=='3.6'\" don't match your environment\nException:\nTraceback (most recent call last):\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/basecommand.py\", line 209, in main\n status = self.run(options, args)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/commands/install.py\", line 328, in run\n wb.build(autobuilding=True)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/wheel.py\", line 748, in build\n self.requirement_set.prepare_files(self.finder)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/req/req_set.py\", line 360, in prepare_files\n ignore_dependencies=self.ignore_dependencies))\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/req/req_set.py\", line 577, in _prepare_file\n session=self.session, hashes=hashes)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/download.py\", line 810, in unpack_url\n hashes=hashes\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/download.py\", line 649, in unpack_http_url\n hashes)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/download.py\", line 842, in _download_http_url\n stream=True,\n File \"/openstack/venvs/wheel-builder/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 480, in get\n return self.request('GET', url, **kwargs)\n File \"/openstack/venvs/wheel-builder/lib/python2.7/site-packages/pip/download.py\", line 378, in request\n return super(PipSession, self).request(method, url, *args, **kwargs)\n File \"/openstack/venvs/wheel-builder/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 468, in request\n resp = self.send(prep, **send_kwargs)\n File \"/openstack/venvs/wheel-builder/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 576, in send\n r = adapter.send(request, **kwargs)\n File \"/openstack/venvs/wheel-builder/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py\", line 46, in send\n resp = super(CacheControlAdapter, self).send(request, **kw)\n File \"/openstack/venvs/wheel-builder/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py\", line 376, in send\n timeout=timeout\n File \"/openstack/venvs/wheel-builder/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py\", line 610, in urlopen\n _stacktrace=sys.exc_info()[2])\n File \"/openstack/venvs/wheel-builder/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py\", line 228, in increment\n total -= 1\nTypeError: unsupported operand type(s) for -=: 'Retry' and 'int'\nYou are using pip version 8.1.1, however version 19.0.3 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
aio1 : ok=42 changed=19 unreachable=0 failed=0
aio1_repo_container-e307aa75 : ok=38 changed=21 unreachable=0 failed=0
aio1_utility_container-1aec2013 : ok=37 changed=20 unreachable=0 failed=1
[...]
'''

Tags: pip
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.