AWX Podman deployment

Hello,
I am running into some issues trying to deploy AWX 17.1.0 on podman 2.2.1 on CentOS S8-Stream.

I am getting the following errors while deploying:

TASK [local_docker : Render SECRET_KEY file] **********************************************************************************************************************************************************************
changed: [localhost]

TASK [local_docker : Remove AWX containers before migrating postgres so that the old postgres container does not get used] ****************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on podman01's Python /usr/bin/python3. Please read module documentation and install 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, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: No module named 'docker'"}
...ignoring

TASK [local_docker : Run migrations in task container] ************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "docker-compose run --rm --service-ports task awx-manage migrate --no-input", "delta": "0:00:00.006280", "end": "2021-03-22 14:01:30.545752", "msg": "non-zero return code", "rc": 127, "start": "2021-03-22 14:01:30.539472", "stderr": "/bin/sh: docker-compose: command not found", "stderr_lines": ["/bin/sh: docker-compose: command not found"], "stdout": "", "stdout_lines": []}

PLAY RECAP ********************************************************************************************************************************************************************************************************
localhost : ok=15 changed=7 unreachable=0 failed=1 skipped=73 rescued=0 ignored=2

[podman01 installer]$

Do I still need docker-py?

Hello,
AWX in Docker was installed using docker-compose, not pure docker. Docker-compose builds upon the docker itself and is a tool used for multi-container application deployment.
If you are trying to use podman, I presume you would need to install podman-compose, and play around with AWX installation playbooks/scripts in order to replace docker-compose references with podman-compose. Alternatively you might be able to symlink docker-compose to podman-compose and see it that’ll work (depends on compatibility between those two tools)

That being said, with version 18.0, docker-compose installation of AWX is starting to get deprecated, and only kuberenetes operator install will be supported. So tinkering with podman might be more trouble than value.
IMO, deprecating compose based install is a nightmare for small production environments that run AWX ond docker and are underresourced to provision a kubernetes cluster.

Dana ponedjeljak, 22. ožujka 2021. u 20:49:12 UTC+1 korisnik andre...@gmail.com napisao je:

IMO, deprecating compose based install is a nightmare for small production environments that run AWX ond docker and are underresourced to provision a kubernetes cluster.

hear, hear!