Closed Fryguy closed 2 years ago
@Fryguy what about all of the other packages that we "expose" from the system site-packages like the pyvmomi/azure-cli/etc... ones? They would also be unavailable to ansible-playbook running 3.8 right?
That's a great question - You might be right, but we'll need to test with something more than a hello_world playbook.
Testing with https://github.com/agrare/manageiq-providers-playbooks I'm seeing issues with pyvmomi
Ansible::Runner.run({}, {"vcenter_hostname" => HOSTNAME, "vcenter_username" => USERNAME, "vce
nter_password" => PASSWORD}, "/var/www/miq/vmdb/data/git_repos/manageiq-providers-playbooks/vsphere.yml", verbosity: 5)
Failure:
Failed to import the required Python library (PyVmomi) on najdorf's Python /usr/libexec/platform-python. 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
I think we're gonna have to move everything over to python 3.8
Backported to najdorf
in commit 183d00a5c6c557beb42de7be33158c4496801c41.
commit 183d00a5c6c557beb42de7be33158c4496801c41
Author: Adam Grare <adam@grare.com>
Date: Wed Aug 10 08:43:08 2022 -0400
Merge pull request #517 from Fryguy/fix_ansible_runner
Move manageiq venv to python 3.8
(cherry picked from commit 66730121d604308e4b5f89f6d08d10807b303c18)
Backported to morphy
in commit a3077f72d72ffc1257705aaa872b9ce3d9c08353.
commit a3077f72d72ffc1257705aaa872b9ce3d9c08353
Author: Adam Grare <adam@grare.com>
Date: Wed Aug 10 08:43:08 2022 -0400
Merge pull request #517 from Fryguy/fix_ansible_runner
Move manageiq venv to python 3.8
(cherry picked from commit 66730121d604308e4b5f89f6d08d10807b303c18)
Newer builds install python 3.8 and ansible itself uses python 3.8. As such, we need the dependencies installed into there, matching the required version.
Part of https://github.com/ManageIQ/manageiq/issues/22009
@agrare Please review.