mirror of https://github.com/ceph/ceph-ansible.git
46d4d97da9
the `stat --printf=%n` returns something like following: ``` ok: [osd0] => changed=false cmd: |- stat --printf=%n /var/run/ceph/ceph-osd*.asok delta: '0:00:00.009388' end: '2020-10-06 06:18:28.109500' failed_when_result: false rc: 0 start: '2020-10-06 06:18:28.100112' stderr: '' stderr_lines: <omitted> stdout: /var/run/ceph/ceph-osd.2.asok/var/run/ceph/ceph-osd.5.asok stdout_lines: <omitted> ``` it makes the next task "check if the ceph osd socket is in-use" grep like this: ``` ok: [osd0] => changed=false cmd: - grep - -q - /var/run/ceph/ceph-osd.2.asok/var/run/ceph/ceph-osd.5.asok - /proc/net/unix ``` which will obviously fail because this path never exists. It makes the OSD handler broken. Let's use `find` module instead. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> |
||
---|---|---|
.. | ||
check_running_cluster.yml | ||
check_running_containers.yml | ||
check_socket_non_container.yml | ||
handler_crash.yml | ||
handler_mdss.yml | ||
handler_mgrs.yml | ||
handler_mons.yml | ||
handler_nfss.yml | ||
handler_osds.yml | ||
handler_rbd_target_api_gw.yml | ||
handler_rbdmirrors.yml | ||
handler_rgws.yml | ||
handler_tcmu_runner.yml | ||
main.yml |