Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: Force urllib3 to version <2.0 #118

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

chantra
Copy link
Collaborator

@chantra chantra commented Jan 18, 2024

Amazon Linux 2 has python'ssl module built using openssl 1.0.X.

urllib3>=2.0 requires an ssl module built against openssl 1.1.1+

This change forces urllib3<2.0 so ansible can successfully run the GHCR login step, or would otherwise fail with:

TASK [runner : Docker GHCR login] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips  26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168
fatal: [i-06ae916dc1d358725]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (requests) on ip-10-0-0-68.us-west-1.compute.internal's Python /usr/bin/python3.7. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

Amazon Linux 2 has python'ssl module built using openssl 1.0.X.

urllib3>=2.0 requires an ssl module built against openssl 1.1.1+

This change forces urllib3<2.0 so ansible can successfully run the GHCR
login step, or would otherwise fail with:
```
TASK [runner : Docker GHCR login] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips  26 Jan 2017'. See: urllib3/urllib3#2168
fatal: [i-06ae916dc1d358725]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (requests) on ip-10-0-0-68.us-west-1.compute.internal's Python /usr/bin/python3.7. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
```

Signed-off-by: Manu Bretelle <[email protected]>
@chantra chantra merged commit a120a81 into libbpf:main Jan 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant