ceph / ceph-ansible

Ansible playbooks to deploy Ceph, the distributed filesystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stable-7.0. ERROR! couldn't resolve module/action 'openstack.config_template.config_template'.

alvarocurt opened this issue · comments

What happened: I'm trying to deploy a ceph cluster (quincy version) following the steps on https://docs.ceph.com/projects/ceph-ansible/en/latest/index.html and I already did all the configuration and installed the requirements.

However, when entering "ansible-playbook site.yml" this was my output
image

I didn't touch that file so I doubt is a syntax nor an indexing error.
I saw there was a previous post about this error but it got solved by making sure the requirements are up to date, but I already did that from the requirement files. Still, I post my current ansible version.
image
image
image

This is running on an Ubuntu 20.04.5 LTS. I'm sorry if this doubt is too basic or obvious. I'm relatively new with ansible.

Hello,

It looks like you are missing the openstack.config_template collection. Do you have a folder /home/XXX/.ansible/collections/ansible_collections/openstack/config_template on your system?

It should be installed by running ansible-galaxy install -r requirements.yml

Can you share the content of the requirements.yml?

Thx

You are right, I'm working as root and I can't find any collections folder in /root/.ansible
image
I already ran ansible-galaxy install -r with the requirements.yml file from Stable-7.0
image
But I can see that I have 2 openstack folders:
image

Am I missing something? How should I change where are the modules looked up?
Thanks

@alvarocurt Hi,

Can you download, execute this script? https://raw.githubusercontent.com/bcoca/std/devel/list_collections.py and share the output?

It will list the collections installed on your setup. ansible 2.9 does not have ansible-galaxy collection list command implemented.

Thx

I get no output from the ecript. Still, exploring what the script did, the result of C.COLLECTIONS_PATHS is:
['/root/.ansible/collections', '/usr/share/ansible/collections']
But my host doesn't have any collections directory in those paths.
By using "find", I encountered these paths with some ansible collections directory
image
Looks like there's some type of conflict between the pip managed ansible, and the one installed by apt-get.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

@alvarocurt did you manage to fix your issue?

@alvarocurt did you manage to fix your issue?

Not really, I gave up and deployed the cluster with cephadm, but came up with the idea of running containerized ansible to avoid the dependencies errors. I might try that in the future.