Closed
Conversation
ansible 2.13.13 throws the following error with python 3.12.3: """ ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': 'CustomHTTPSConnection' object has no attribute 'cert_file'. 'CustomHTTPSConnection' object has no attribute 'cert_file' """ So, this commit enables python 3.8 by default in docker container. Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
Closed
kamoltat
reviewed
May 9, 2024
| ENV DEBIAN_FRONTEND=noninteractive | ||
| RUN apt-get update | ||
| RUN apt-get install -y software-properties-common | ||
| RUN add-apt-repository ppa:deadsnakes/ppa -y |
Member
There was a problem hiding this comment.
the deadsnakes PPA is where old versions of Python for newer Ubuntu versions are maintained
Member
|
This could definitely work - but 3.8 goes EOL in October. I just installed python 3.9 on teuthology.front; I filed #1939 as a draft so that we can test that possibility as well. |
Member
Author
|
Oh I see, why are we only moving up one version to python 3.9? Maybe then we can install python 3.11 or 3.12 because python 3.9 would go EOL in October next year: https://devguide.python.org/versions/#supported-versions |
Member
|
Pasting a Tracker here: https://tracker.ceph.com/issues/65868 for reference |
Member
|
I opened #1940 to migrate us to 3.10 as the minimal python version; let me know what you think of the approach! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ansible 2.13.13 throws the following error with python 3.12.3:
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': 'CustomHTTPSConnection' object has no attribute 'cert_file'. 'CustomHTTPSConnection' object has no attribute 'cert_file'We tried updating the ansible version (#1937) but ansible 2.14.x or later requires python >= 3.9. If we upgrade the ansible version from 2.13.13, then teuthology's support for python3.8 would end which could cause unpredictable problems.
So, this commit enables python 3.8 by default in docker container, instead of latest python3 version (3.12.3).