Hey,

This role is available in our collection on current master [1].

In previous versions (like antelope) this was a shared playbook [2].

Eventually, capi driver support was made and tested only with 2024.1, it can work with 2023.1 but with bunch of adjustments only.

Hope this helps.

[1] https://opendev.org/openstack/openstack-ansible-plugins/src/branch/master/roles/lxc_container_setup/tasks/main.yml
[2] https://opendev.org/openstack/openstack-ansible/src/branch/stable/2023.1/playbooks/common-tasks/os-lxc-container-setup.yml


On Fri, Apr 19, 2024, 16:22 <pahrialtkj@gmail.com> wrote:
I tried magnum-cluster-api on openstack ansible with Antelope version, I have finished creating the k8s control plane containers and then Run the magnum-cluster-api deployment, but at the time of running it an error was found, where the role openstack.osa.lxc_container_setup is not available, anyone knows how to solve it?

root@aio1:/opt/openstack-ansible# openstack-ansible osa_ops.mcapi_vexxhost.k8s_install
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml -e @/etc/openstack_deploy/user_variables_octavia.yml "
[WARNING]: Unable to parse /etc/openstack_deploy/inventory.ini as an inventory source
[WARNING]: running playbook inside collection osa_ops.mcapi_vexxhost
ERROR! the role 'openstack.osa.lxc_container_setup' was not found in osa_ops.mcapi_vexxhost:ansible.legacy:/etc/ansible/ansible_collections/osa_ops/mcapi_vexxhost/playbooks/roles:/etc/ansible/roles:/etc/ansible/roles/ceph-ansible/roles:/etc/ansible/ansible_collections/osa_ops/mcapi_vexxhost/playbooks

The error appears to be in '/etc/ansible/ansible_collections/osa_ops/mcapi_vexxhost/playbooks/k8s_install.yml': line 36, column 15, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - import_role:
        name: openstack.osa.lxc_container_setup
              ^ here
                                                                                                                                                                                                                 EXIT NOTICE [Playbook execution failure] **************************************
===============================================================================