I'm not 100% sure, but I think it might be needed on Ansible deploy host.

I guess I would try installing via /opt/ansible-runtime/bin/pip3 install docker-image-py

In master we have implemented ability to define extra requirements to be installed on controller by creating file /etc/openstack_deploy/user-ansible-venv-requirements.txt [1]

[1] https://opendev.org/openstack/openstack-ansible/commit/5b57f10eeccca16771de76152596fba62a1a7723

On Fri, Apr 19, 2024, 18:12 <pahrialtkj@gmail.com> wrote:
I already backport some patch, and already run magnum-cluster-api installation, but I stuck in this step :
```
TASK [vexxhost.containers.containerd : Create containerd config file] **************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: Failed to import docker-image-py module, ensure it is installed on the controller
fatal: [aio1_k8s_container-77e91d86]: FAILED! => {"changed": false, "msg": "AnsibleFilterError: Failed to import docker-image-py module, ensure it is installed on the controller"}

RUNNING HANDLER [vexxhost.containers.containerd : Restart containerd] **************************************************************************************
fatal: [aio1_k8s_container-77e91d86]: FAILED! => {"changed": false, "msg": "Unable to start service containerd: Job for containerd.service failed because the control process exited with error code.\nSee \"systemctl status containerd.service\" and \"journalctl -xeu containerd.service\" for details.\n"}
```

I tried to install manually the module docker-image-py on k8s_container, but it's not solve, the error still same.