fix module_utils import for galaxy collection#359
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
3 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
|
I was trying to install the collection as recommended here, but I can't find it on ansible-galaxy. Then I ended with this: collections:
- source: https://github.com/ceph/cephadm-ansible.git
type: git
version: v5.0.2But playbook tasks using ceph.cephadm collection are failing: TASK [Bootstrap Ceph cluster] ***********************************************************************************************************************************************
[ERROR]: Task failed: Module failed: No module named 'module_utils'
Task failed: Module failed.
Origin: /.../playbook.yaml:6:7
4 name: Configure a Ceph cluster
5 tasks:
6 - name: Bootstrap Ceph cluster
^ column 7
<<< caused by >>>
No module named 'module_utils'
fatal: [...]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: No module named 'module_utils'"}
fatal: [...]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: No module named 'module_utils'"}
fatal: [...]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: No module named 'module_utils'"}Then, I gave a try to suggestion made here. It doesn't fail anymore. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
I would love feedback on this, if it's not something you're interested in implementing that's cool but it'd be great to know so I can plan |
|
Hi, As I wasn't able to install the collection as describe in the readme, I've switched to another collection named ceph.automation (which isn't idempotent :/). Yet, I'm quite lost with the amount of collections/modules maintained below Regards, |
|
@Aletor93 To summarize, there are three projects related to Ansible:
Unfortunately, due to lack of time, I was never able to complete that final step, and all three projects continued to evolve independently. I will try to find some free time to work on that. |
It's my understanding of https://docs.ansible.com/projects/ansible/latest/dev_guide/developing_module_utilities.html#naming-and-finding-module-utilities that this is how these should be imported, I can also make it so that it uses a
try ... catchtoo in case there are older versions that like it how it is now