]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
add-osd: fix fact gathering in add-osd
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Apr 2020 12:57:47 +0000 (14:57 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 7 Apr 2020 15:19:53 +0000 (11:19 -0400)
commit724620ed3dc76bc8dbddb50538ff64b82b3025a7
treef4cef9ccd17aa6f057f75f073872421c2756527c
parent8ccf91c1f0f693f2e1b3d7bc0ea1e4e7e8787311
add-osd: fix fact gathering in add-osd

This commit makes this playbook gathering facts from all other nodes but
clients.
When collocating OSDs on other nodes it can fail like following:

```
fatal: [vm252-11]: FAILED! => {
    "msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'"
}
```

In that case, a fact from a RGW node is called when rendering the
`ceph.conf.j2` but it fails because facts are gathered only from mon and
osd nodes.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1806765
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/add-osd.yml