question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ceph-ansible + Fresh deployment problem : config_template is missing interpreter line

See original GitHub issue

Hi, I am trying to deploy a new cluster with ceph-ansible with stable-4.0 Everything is working great until I reach the task : TASK [ceph-config : generate ceph configuration file: ceph.conf] It returns this error : fatal: [mon_host01]: FAILED! => {"msg": "module (config_template) is missing interpreter line"}

I’m running ansible v 2.8.1 in a virtualenv with only ansible and the requirements. I am executing my playing from the ceph-ansible directory, where ./library can be found.

(ceph_ansible2) root@myworkstation:/workdir/ansible/ansible_ceph/ceph-ansible# ls -d */ actions_plugins/ callback_plugins/ contrib/ docs/ fetch/ filter_plugins/ group_vars/ host_vars/ infrastructure-playbooks/ library/ plugins/ profiles/ roles/ tests/

`(ceph_ansible2) root@myworkstation:/workdir/ansible/ansible_ceph/ceph-ansible# ls -al ./library/

ceph_add_users_buckets.py / ceph_crush.py / ceph_facts ceph_key.py / ceph_volume.py / config_template igw_client.py / igw_gateway.py / igw_lun.py / igw_purge.py / _init__.py / validate

Following this documentation : https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#adding-a-plugin-locally I still don’t understand why it can’t find the module properly.

Regards,

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
bnhashmicommented, Dec 3, 2019

Dear HammerZ3it please update you /etc/anisble/ansible.cfg file accordingly i am using stack user to deply ceph-4.0 on ubuntu 18.04

action_plugins = /home/stack/ceph-ansible/plugins/actions/

4reactions
muff1nmancommented, Nov 30, 2019

I’d bet your issue is:

 [WARNING] Ansible is being run in a world writable directory (/mnt/c/Users/cuzaf/Documents/ansible/ansible_ceph/ceph-ansible), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why ansible uses "/etc/ansible/ansible.cfg" instead of "/usr ...
Issue. During ceph deployment , ansible always uses ... "msg": "module (config_template) is missing interpreter line"" would be shown.
Read more >
Comparing 1c88c444a3...cd9fdde4e9 - ceph-ansible
The error was: None has no element 0 The error appears to be in 'roles/ceph-container-common/tasks/fetch_image.yml': line 137, column 3, ...
Read more >
Configuring Ceph with Custom Config Settings (via ceph ...
This guide assumes that the undercloud is already installed and ready to deploy an overcloud and that the appropriate repositories containing ...
Read more >
ceph-ansible documentation
You must have a playbook to pass to the ansible-playbook command when deploying your cluster. There is a sample playbook at the root...
Read more >
ceph-ansible integration · 06ede41645 - openstack-ansible
Adds ceph-ansible integration to OSA using the upstream roles ceph-common, ceph-mon, and ceph-osd to support deployment of a Ceph cluster for use with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found