Comment 2 for bug 1921354

Revision history for this message
Oliver (ciwi) wrote :

I tried it out but couldn't get setup-openstack.yml to run:

TASK [python_venv_build : Show venv install failure message] *****************************************************************************************************************************************
fatal: [swift-node1]: 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 information.\n"}
fatal: [infra1_swift_proxy_container-27169fa7]: 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 information.\n"}

/var/log/python_venv_build.log on swift-node1 showed this:

2021-03-25T16:40:39,726 Using pip 20.2.3 from /openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip (python 3.8)
2021-03-25T16:40:39,726 Non-user install because user site-packages disabled
2021-03-25T16:40:39,837 Created temporary directory: /tmp/pip-ephem-wheel-cache-ze3zoly2
2021-03-25T16:40:39,838 Created temporary directory: /tmp/pip-req-tracker-tavr0jtw
2021-03-25T16:40:39,838 Initialized build tracking at /tmp/pip-req-tracker-tavr0jtw
2021-03-25T16:40:39,838 Created build tracker: /tmp/pip-req-tracker-tavr0jtw
2021-03-25T16:40:39,838 Entered build tracker: /tmp/pip-req-tracker-tavr0jtw
2021-03-25T16:40:39,838 Created temporary directory: /tmp/pip-install-l6n19cb3
2021-03-25T16:40:39,946 Looking in links: http://192.168.110.211:8181/os-releases/22.1.0/ubuntu-20.04-x86_64
2021-03-25T16:40:39,949 Setting ceilometermiddleware==2.1.0 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 47)) extras to: ()
2021-03-25T16:40:39,949 Setting cryptography==3.1 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 71)) extras to: ()
2021-03-25T16:40:39,949 Setting dnspython==1.16.0 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 1)) extras to: ()
2021-03-25T16:40:39,949 Setting ecdsa==0.16.1 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 5)) extras to: ()
2021-03-25T16:40:39,950 ERROR: Could not satisfy constraints for 'swift': installation from path or url cannot be constrained to a version
2021-03-25T16:40:39,950 Exception information:
2021-03-25T16:40:39,950 Traceback (most recent call last):
2021-03-25T16:40:39,950 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
2021-03-25T16:40:39,950 status = self.run(options, args)
2021-03-25T16:40:39,950 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
2021-03-25T16:40:39,950 return func(self, options, args)
2021-03-25T16:40:39,950 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 323, in run
2021-03-25T16:40:39,950 requirement_set = resolver.resolve(
2021-03-25T16:40:39,950 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 173, in resolve
2021-03-25T16:40:39,950 requirement_set.add_requirement(req)
2021-03-25T16:40:39,950 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/req/req_set.py", line 159, in add_requirement
2021-03-25T16:40:39,950 raise InstallationError(
2021-03-25T16:40:39,950 pip._internal.exceptions.InstallationError: Could not satisfy constraints for 'swift': installation from path or url cannot be constrained to a version
2021-03-25T16:40:39,999 WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
2021-03-25T16:40:39,999 You should consider upgrading via the '/openstack/venvs/swift-22.1.0/bin/python -m pip install --upgrade pip' command.
2021-03-25T16:40:39,999 Removed build tracker: '/tmp/pip-req-tracker-tavr0jtw'

and on the container it showed this:

2021-03-25T16:40:40,742 Using pip 20.2.3 from /openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip (python 3.8)
2021-03-25T16:40:40,742 Non-user install because user site-packages disabled
2021-03-25T16:40:40,849 Created temporary directory: /tmp/pip-ephem-wheel-cache-1l1rx61b
2021-03-25T16:40:40,849 Created temporary directory: /tmp/pip-req-tracker-ait4sghf
2021-03-25T16:40:40,850 Initialized build tracking at /tmp/pip-req-tracker-ait4sghf
2021-03-25T16:40:40,850 Created build tracker: /tmp/pip-req-tracker-ait4sghf
2021-03-25T16:40:40,850 Entered build tracker: /tmp/pip-req-tracker-ait4sghf
2021-03-25T16:40:40,850 Created temporary directory: /tmp/pip-install-2e9lu887
2021-03-25T16:40:40,966 Looking in links: http://192.168.110.211:8181/os-releases/22.1.0/ubuntu-20.04-x86_64
2021-03-25T16:40:40,968 Setting ceilometermiddleware==2.1.0 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 47)) extras to: ()
2021-03-25T16:40:40,969 Setting cryptography==3.1 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 71)) extras to: ()
2021-03-25T16:40:40,969 Setting dnspython==1.16.0 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 1)) extras to: ()
2021-03-25T16:40:40,969 Setting ecdsa==0.16.1 (from -c /openstack/venvs/swift-22.1.0/constraints.txt (line 5)) extras to: ()
2021-03-25T16:40:40,969 ERROR: Could not satisfy constraints for 'swift': installation from path or url cannot be constrained to a version
2021-03-25T16:40:40,969 Exception information:
2021-03-25T16:40:40,969 Traceback (most recent call last):
2021-03-25T16:40:40,969 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
2021-03-25T16:40:40,969 status = self.run(options, args)
2021-03-25T16:40:40,969 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
2021-03-25T16:40:40,969 return func(self, options, args)
2021-03-25T16:40:40,969 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 323, in run
2021-03-25T16:40:40,969 requirement_set = resolver.resolve(
2021-03-25T16:40:40,969 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 173, in resolve
2021-03-25T16:40:40,969 requirement_set.add_requirement(req)
2021-03-25T16:40:40,969 File "/openstack/venvs/swift-22.1.0/lib/python3.8/site-packages/pip/_internal/req/req_set.py", line 159, in add_requirement
2021-03-25T16:40:40,969 raise InstallationError(
2021-03-25T16:40:40,969 pip._internal.exceptions.InstallationError: Could not satisfy constraints for 'swift': installation from path or url cannot be constrained to a version
2021-03-25T16:40:41,016 WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
2021-03-25T16:40:41,016 You should consider upgrading via the '/openstack/venvs/swift-22.1.0/bin/python -m pip install --upgrade pip' command.
2021-03-25T16:40:41,016 Removed build tracker: '/tmp/pip-req-tracker-ait4sghf'