]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
roles: ceph-defaults: Delegate cluster information task to monitor node
authorMarkos Chandras <mchandras@suse.de>
Tue, 14 Aug 2018 06:52:04 +0000 (09:52 +0300)
committerSébastien Han <seb@redhat.com>
Mon, 20 Aug 2018 09:37:45 +0000 (11:37 +0200)
commit37e50114dedf6a7aec0f1b2e1b9d2dd997a11d8e
tree6917344073be26308902b403bfa0fdb7072b9741
parentf6519e4003404e10ae1f5e86298cffd4405591da
roles: ceph-defaults: Delegate cluster information task to monitor node

Since commit f422efb1d6b56ce56a7d39a21736a471e4ed357 ("config: ensure
rgw section has the correct name") we observe the following failures in
new Ceph deployment with OpenStack-Ansible

fatal: [aio1_ceph-rgw_container-fc588f0a]: FAILED! => {"changed": false,
"cmd": "ceph --cluster ceph -s -f json", "msg": "[Errno 2] No such file
or directory"

This is because the task executes 'ceph' but at this point no package
installation has happened. Packages are normally installed in the
'ceph-common' role which runs after the 'ceph-defaults' one.

Since we are looking to obtain cluster information, the task should be
delegated to a monitor node similar to other tasks in that role

Signed-off-by: Markos Chandras <mchandras@suse.de>
roles/ceph-defaults/tasks/facts.yml