Skip to content

Instantly share code, notes, and snippets.

@Wqrld
Created April 10, 2021 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wqrld/c1ed53cb80c074391e6b18307b9fa92e to your computer and use it in GitHub Desktop.
Save Wqrld/c1ed53cb80c074391e6b18307b9fa92e to your computer and use it in GitHub Desktop.
TASK [python_venv_build : Upgrade pip/setuptools/wheel to the versions we want] **********************************************************************************************************************************
ok: [aio1_utility_container-18c031fc]
TASK [python_venv_build : Install python packages into the venv] *************************************************************************************************************************************************
FAILED - RETRYING: Install python packages into the venv (5 retries left).
FAILED - RETRYING: Install python packages into the venv (4 retries left).
FAILED - RETRYING: Install python packages into the venv (3 retries left).
FAILED - RETRYING: Install python packages into the venv (2 retries left).
FAILED - RETRYING: Install python packages into the venv (1 retries left).
fatal: [aio1_utility_container-18c031fc]: FAILED! => {"attempts": 5, "changed": false, "cmd": ["/openstack/venvs/stackviz-22.1.1/bin/pip3", "install", "-U", "--constraint", "/openstack/venvs/stackviz-22.1.1/glo
bal-constraints.txt", "--constraint", "/openstack/venvs/stackviz-22.1.1/constraints.txt", "--pre", "--log", "/var/log/python_venv_build.log", "--isolated", "https://tarballs.opendev.org/openstack/stackviz/dist/
stackviz-latest.tar.gz"], "msg": "stdout: Ignoring immutables: markers 'python_version == \"3.6\"' don't match your environment\nIgnoring importlib-metadata: markers 'python_version == \"3.6\"' don't match your
environment\nIgnoring contextvars: markers 'python_version == \"3.6\"' don't match your environment\nIgnoring dataclasses: markers 'python_version == \"3.6\"' don't match your environment\nIgnoring importlib-r
esources: markers 'python_version == \"3.6\"' don't match your environment\nIgnoring futures: markers 'python_version == \"2.7\"' don't match your environment\nCollecting https://tarballs.opendev.org/openstack/
stackviz/dist/stackviz-latest.tar.gz\n Using cached https://tarballs.opendev.org/openstack/stackviz/dist/stackviz-latest.tar.gz (764 kB)\nRequirement already satisfied, skipping upgrade: python-subunit===1.4.0
in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 168)) (1.4.0)\nRequirement already satis
fied, skipping upgrade: testtools===2.4.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line
333)) (2.4.0)\nRequirement already satisfied, skipping upgrade: testrepository===0.0.20 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper
/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 371)) (0.0.20)\nRequirement already satisfied, skipping upgrade: six===1.15.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://rel
eases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 434)) (1.15.0)\nCollecting subunit2sql>=0.8.0\n Using cached subunit2sql-1.10.0-py2.py3-none-any.whl (98 kB)\nRequirement al
ready satisfied, skipping upgrade: extras===1.0.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a
9e (line 154)) (1.0.0)\nRequirement already satisfied, skipping upgrade: pbr===5.5.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628
ba9dff2189b5392c8a9b5c232c1f261803a9e (line 44)) (5.5.0)\nRequirement already satisfied, skipping upgrade: unittest2===1.1.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://rele
ases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 194)) (1.1.0)\nRequirement already satisfied, skipping upgrade: traceback2===1.4.0 in /openstack/venvs/stackviz-22.1.1/lib/pyt
hon3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 139)) (1.4.0)\nRequirement already satisfied, skipping upgrade: fixtures===3.0.0 in
/openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 60)) (3.0.0)\nRequirement already satisfied,
skipping upgrade: python-mimeparse===1.6.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (li
ne 93)) (1.6.0)\nRequirement already satisfied, skipping upgrade: alembic===1.4.2 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9
dff2189b5392c8a9b5c232c1f261803a9e (line 520)) (1.4.2)\nRequirement already satisfied, skipping upgrade: SQLAlchemy===1.3.19 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://rele
ases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 144)) (1.3.19)\nRequirement already satisfied, skipping upgrade: stevedore===3.2.2 in /openstack/venvs/stackviz-22.1.1/lib/pyt
hon3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 408)) (3.2.2)\nCollecting oslo.db===8.4.0\n Using cached oslo.db-8.4.0-py3-none-any
.whl (172 kB)\nRequirement already satisfied, skipping upgrade: python-dateutil===2.8.1 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/
628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 556)) (2.8.1)\nRequirement already satisfied, skipping upgrade: oslo.config===8.3.3 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https:
//releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 382)) (8.3.3)\nRequirement already satisfied, skipping upgrade: argparse in /openstack/venvs/stackviz-22.1.1/lib/python3
.8/site-packages (from unittest2===1.1.0->-c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 194)) (1.4.0)\nRequirement already satisfied, skipping upgrade: linec
ache2===1.0.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 349)) (1.0.0)\nRequirement
already satisfied, skipping upgrade: Mako===1.1.3 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a
9e (line 73)) (1.1.3)\nRequirement already satisfied, skipping upgrade: python-editor===1.0.4 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/
upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 550)) (1.0.4)\nRequirement already satisfied, skipping upgrade: sqlalchemy-migrate===0.13.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (
from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 307)) (0.13.0)\nRequirement already satisfied, skipping upgrade: testresources===2.0.1 in /openstack/venvs
/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 443)) (2.0.1)\nRequirement already satisfied, skipping upgra
de: debtcollector===2.2.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 113)) (2.2.0)\n
Requirement already satisfied, skipping upgrade: testscenarios===0.5.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b539
2c8a9b5c232c1f261803a9e (line 316)) (0.5.0)\nCollecting oslo.utils===4.6.0\n Using cached oslo.utils-4.6.0-py3-none-any.whl (96 kB)\nRequirement already satisfied, skipping upgrade: oslo.i18n===5.0.1 in /opens
tack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 50)) (5.0.1)\nRequirement already satisfied, skipp
ing upgrade: PyYAML===5.3.1 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 172)) (5.3.1)
\nRequirement already satisfied, skipping upgrade: requests===2.23.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c
8a9b5c232c1f261803a9e (line 211)) (2.23.0)\nRequirement already satisfied, skipping upgrade: netaddr===0.8.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.o
rg/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 128)) (0.8.0)\nRequirement already satisfied, skipping upgrade: rfc3986===1.4.0 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-package
s (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 473)) (1.4.0)\nRequirement already satisfied, skipping upgrade: MarkupSafe===1.1.1 in /openstack/venvs/
stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 118)) (1.1.1)\nRequirement already satisfied, skipping upgrad
e: Tempita===0.5.2 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 95)) (0.5.2)\nRequirem
ent already satisfied, skipping upgrade: sqlparse===0.3.1 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1
f261803a9e (line 124)) (0.3.1)\nRequirement already satisfied, skipping upgrade: decorator===4.4.2 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constra
ints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 514)) (4.4.2)\nRequirement already satisfied, skipping upgrade: wrapt===1.12.1 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c
https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 461)) (1.12.1)\nRequirement already satisfied, skipping upgrade: iso8601===0.1.12 in /openstack/venvs/stackviz-22.
1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 347)) (0.1.12)\nRequirement already satisfied, skipping upgrade: pytz===2
020.1 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 562)) (2020.1)\nRequirement already
satisfied, skipping upgrade: packaging===20.4 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e
(line 320)) (20.4)\nRequirement already satisfied, skipping upgrade: pyparsing===2.4.7 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/6
28ba9dff2189b5392c8a9b5c232c1f261803a9e (line 397)) (2.4.7)\nCollecting netifaces===0.10.9\n Using cached netifaces-0.10.9.tar.gz (28 kB)\nRequirement already satisfied, skipping upgrade: certifi===2020.6.20 i
n /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 39)) (2020.6.20)\nRequirement already sati
sfied, skipping upgrade: idna===2.10 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 351)
) (2.10)\nRequirement already satisfied, skipping upgrade: urllib3===1.25.10 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.openstack.org/constraints/upper/628ba9dff21
89b5392c8a9b5c232c1f261803a9e (line 163)) (1.25.10)\nRequirement already satisfied, skipping upgrade: chardet===3.0.4 in /openstack/venvs/stackviz-22.1.1/lib/python3.8/site-packages (from -c https://releases.op
enstack.org/constraints/upper/628ba9dff2189b5392c8a9b5c232c1f261803a9e (line 3)) (3.0.4)\nBuilding wheels for collected packages: netifaces, stackviz\n Building wheel for netifaces (setup.py): started\n Build
ing wheel for netifaces (setup.py): finished with status 'error'\n Running setup.py clean for netifaces\n Building wheel for stackviz (setup.py): started\n Building wheel for stackviz (setup.py): finished wi
th status 'done'\n Created wheel for stackviz: filename=stackviz-0.0.1.dev320-py3-none-any.whl size=755284 sha256=fd50450b59950e968f3f9c48bf5eef5ed5d577bdcd0d07589a0bcc7df100098c\n Stored in directory: /root/
.cache/pip/wheels/47/8b/48/17b16c31a2c673aa2378b99e736e3341f39065792e1478daa9\nSuccessfully built stackviz\nFailed to build netifaces\nInstalling collected packages: netifaces, oslo.utils, oslo.db, subunit2sql,
stackviz\n Running setup.py install for netifaces: started\n Running setup.py install for netifaces: finished with status 'error'\n\n:stderr: ERROR: Failed building wheel for netifaces\nERROR: Command
errored out with exit status 1: /openstack/venvs/stackviz-22.1.1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-qz79xzow/netifaces/setup.py'\"'\"'; __file__='\"'\"'/tm
p/pip-install-qz79xzow/netifaces/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"
'\"'exec'\"'\"'))' --no-user-cfg install --record /tmp/pip-record-ei_fpjvo/install-record.txt --single-version-externally-managed --compile --install-headers /openstack/venvs/stackviz-22.1.1/include/site/python
3.8/netifaces Check the logs for full command output.\nWARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.\nYou should consider upgrading via the '/openstack/venvs/stackviz-22.1.1/b
in/python -m pip install --upgrade pip' command.\n"}
TASK [python_venv_build : Remove venv requirements/constraints files due to install failure] *********************************************************************************************************************
changed: [aio1_utility_container-18c031fc] => (item=/openstack/venvs/stackviz-22.1.1/constraints.txt)
changed: [aio1_utility_container-18c031fc] => (item=/openstack/venvs/stackviz-22.1.1/global-constraints.txt)
changed: [aio1_utility_container-18c031fc] => (item=/openstack/venvs/stackviz-22.1.1/requirements.txt)
TASK [python_venv_build : Show venv install failure message] *****************************************************************************************************************************************************
fatal: [aio1_utility_container-18c031fc]: FAILED! => {"changed": false, "msg": "The python packages have failed to install, please check the log file located at /var/log/python_venv_build.log for more informati
on.\n"}
PLAY RECAP *******************************************************************************************************************************************************************************************************
aio1 : ok=217 changed=2 unreachable=0 failed=0 skipped=109 rescued=0 ignored=0
aio1_cinder_api_container-ce5b54bd : ok=130 changed=7 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
aio1_glance_container-c9202d7e : ok=105 changed=5 unreachable=0 failed=0 skipped=29 rescued=0 ignored=0
aio1_horizon_container-02949f39 : ok=58 changed=5 unreachable=0 failed=0 skipped=17 rescued=0 ignored=0
aio1_keystone_container-7c2e341f : ok=106 changed=4 unreachable=0 failed=0 skipped=51 rescued=0 ignored=0
aio1_neutron_server_container-cdbf7320 : ok=76 changed=2 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
aio1_nova_api_container-b38c000c : ok=129 changed=5 unreachable=0 failed=0 skipped=43 rescued=0 ignored=0
aio1_placement_container-616e8745 : ok=81 changed=5 unreachable=0 failed=0 skipped=18 rescued=0 ignored=0
aio1_utility_container-18c031fc : ok=29 changed=4 unreachable=0 failed=1 skipped=16 rescued=1 ignored=0
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
EXIT NOTICE [Playbook execution failure] **************************************
===============================================================================
root@OS7 /opt/openstack-ansible/playbooks #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment