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

[SPIKE] Use python 3 across all distributions #1593

Closed
1 of 5 tasks
atsikham opened this issue Aug 28, 2020 · 3 comments
Closed
1 of 5 tasks

[SPIKE] Use python 3 across all distributions #1593

atsikham opened this issue Aug 28, 2020 · 3 comments
Assignees

Comments

@atsikham
Copy link
Contributor

atsikham commented Aug 28, 2020

Is your feature request related to a problem? Please describe.
Currently we use an outdated python2 version that is not supported. Moreover, python versions across supported OS distributions are different. As a result some ansible modules cannot be used as it's not possible to install necessary dist packages. Probably it will cause other issues in future.
Example: python-cryptography required for openssl_* ansible modules cannot be installed on ubuntu 18.04:

The following packages have unmet dependencies:
 python-cryptography : Depends: python-asn1crypto but it is not installable
                       Depends: python-cffi-backend-api-min (<= 9729) but it is not installable
                       Depends: python-cffi-backend-api-max (>= 9729) but it is not installable
                       Depends: python-enum34 but it is not installable
                       Depends: python-idna (>= 2.1) but it is not installable
                       Depends: python-ipaddress but it is not installable
E: Unable to correct problems, you have held broken packages.

Describe the solution you'd like
Python3 is used on all target hosts for Ansible.

Describe alternatives you've considered
No

Additional context
Need to verify python dependencies and test that after switching all/main tasks work correctly.


DoD checklist

  • Reader is able to understand the results of spike
  • The results of the spike are presented in a table (to show simply what are compared or researched parameters) / not applicable
  • Each value / cell in the results table is described more deeply below
  • Demo of the spike (automated as much as possible)
  • Design doc updated
@atsikham
Copy link
Contributor Author

The question is what kind of tests should be performed after python version upgrade.

@seriva
Copy link
Collaborator

seriva commented Apr 14, 2022

I think we can review and close this after we are done with RedHat upgrade.

@to-bar
Copy link
Contributor

to-bar commented Apr 14, 2022

Python 3.6 is present on RHEL 8 out of the box (as /usr/libexec/platform-python). We also install python3 package (Python 3.6.8).
This task can be closed after #1332 is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants