ceph-ansible/roles/ceph-handler/tasks
Guillaume Abrioux 46d4d97da9 handler: refact check_socket_non_container
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>
2020-10-08 17:37:50 -04:00
..
check_running_cluster.yml ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
check_running_containers.yml ceph-handler: add missing condition on ceph-crash 2020-07-21 23:26:11 +02:00
check_socket_non_container.yml handler: refact check_socket_non_container 2020-10-08 17:37:50 -04:00
handler_crash.yml ceph-crash: introduce new role ceph-crash 2020-07-21 20:22:12 +02:00
handler_mdss.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_mgrs.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_mons.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_nfss.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_osds.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_rbd_target_api_gw.yml ceph-handler: remove iscsigws restart scripts 2020-07-23 17:02:12 +02:00
handler_rbdmirrors.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_rgws.yml Use a tempfile directory to store restart scripts 2020-04-06 22:55:51 +02:00
handler_tcmu_runner.yml ceph-handler: remove iscsigws restart scripts 2020-07-23 17:02:12 +02:00
main.yml handler: refact check_socket_non_container 2020-10-08 17:37:50 -04:00