.Ansible fails to install clusters that use custom group names in the Ansible inventory file
When the default values of the `mon_group_name` and `osd_group_name` parameters are changed in the `all.yml` file, Ansible fails to install a Ceph cluster. To avoid this issue, do not use custom group names in the Ansible inventory file by changing `mon_group_name` and `osd_group_name`.
DescriptionMadhavi Kasturi
2017-11-03 10:37:21 UTC
Created attachment 1347239[details]
ceph-ansible playbook log with -vvvv
Description of problem:
Cluster deployment fails, on changing the mon_group_name and osd_group_name in the all.yml
Version-Release number of selected component (if applicable):
[admin@dell-r730-014 ceph-ansible]$ rpm -qa | grep ansible
ansible-2.4.0.0-5.el7.noarch
ceph-ansible-3.0.8-1.el7cp.noarch
How reproducible:
2/2
Steps to Reproduce:
1. Changed the mon_group_name and osd_group_name in all.yml
2. issued ansible-playbook site.yml to deploy the cluster
3. The cluster creation fails with below error
TASK [ceph-mgr : copy mgr key] ************************************************************************************************************************************************************************************
fatal: [dell-r730-014]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-014.keyring'"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'
fatal: [dell-r730-026]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-030.keyring'
fatal: [dell-r730-030]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-030.keyring'"}
RUNNING HANDLER [ceph-defaults : copy mon restart script] ********************************************************************************************************************************************************
Actual results:
The cluster deployment fails
Expected results:
The cluster deployment should succeed
Additional info:
snippet of ansible output with -vvvv
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 457, in run
source = self._find_needle('files', source)
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 983, in _find_needle
return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
File "/usr/lib/python2.7/site-packages/ansible/parsing/dataloader.py", line 386, in path_dwim_relative_stack
raise AnsibleFileNotFound(file_name=source, paths=[to_text(p) for p in search])
AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'
fatal: [dell-r730-026]: FAILED! => {
"changed": false,
"failed": true,
"msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'"
}
Created attachment 1347239 [details] ceph-ansible playbook log with -vvvv Description of problem: Cluster deployment fails, on changing the mon_group_name and osd_group_name in the all.yml Version-Release number of selected component (if applicable): [admin@dell-r730-014 ceph-ansible]$ rpm -qa | grep ansible ansible-2.4.0.0-5.el7.noarch ceph-ansible-3.0.8-1.el7cp.noarch How reproducible: 2/2 Steps to Reproduce: 1. Changed the mon_group_name and osd_group_name in all.yml 2. issued ansible-playbook site.yml to deploy the cluster 3. The cluster creation fails with below error TASK [ceph-mgr : copy mgr key] ************************************************************************************************************************************************************************************ fatal: [dell-r730-014]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-014.keyring'"} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring' fatal: [dell-r730-026]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'"} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-030.keyring' fatal: [dell-r730-030]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-030.keyring'"} RUNNING HANDLER [ceph-defaults : copy mon restart script] ******************************************************************************************************************************************************** Actual results: The cluster deployment fails Expected results: The cluster deployment should succeed Additional info: snippet of ansible output with -vvvv The full traceback is: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 457, in run source = self._find_needle('files', source) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 983, in _find_needle return self._loader.path_dwim_relative_stack(path_stack, dirname, needle) File "/usr/lib/python2.7/site-packages/ansible/parsing/dataloader.py", line 386, in path_dwim_relative_stack raise AnsibleFileNotFound(file_name=source, paths=[to_text(p) for p in search]) AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring' fatal: [dell-r730-026]: FAILED! => { "changed": false, "failed": true, "msg": "Could not find or access '~/ceph-ansible-keys/bf4867e8-3682-4443-a2ea-b75c5898887b/etc/ceph/ceph.mgr.dell-r730-026.keyring'" }