migtools / hook-runner

0 stars 4 forks source link

Investigate updating to ansible-runner 2.10 or 2.11 #20

Open jmontleon opened 2 years ago

jmontleon commented 2 years ago

The ansible runner 2.10 and 2.11 images using python 3.8, which is not the platform python for EL8. https://github.com/ansible/ansible-runner/issues/595

ansible-runner uses pip to install, while we have made an effort to build dependencies like python-kubernetes and python-openshift as RPMs, albeit originally for the sake of other projects where we required packages.

Unfortunately these packages build against the platform python and won't work with the version of python ansible-runner is using.

Three options I can think of

  1. Build modules for python 3.8
  2. Wait for an EL9 base image
  3. Use pip to install our dependencies

I'm not fond of the idea of building a python 3.8 module package. It's likely to require lots of work on dependencies that aren't packaged for 3.8, even beyond what I/we are already maintaining for the platform python.

Even if we get an EL9 package that fixes the situation we're likely to end up back here eventually.

In reality using pip is probably not likely to cause too many problems, despite my preference for properly packaged dependencies.

jmontleon commented 2 years ago

we might also need the ansible kubernetes community collection on these versions.

jmontleon commented 2 years ago

the python 3.8 issue is a problem with 2.9 as well so I've moved the container to install kubernetes/openshift using pip already