ceph-ansible/roles/ceph-handler/tasks
Guillaume Abrioux 709deb90cc 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>
(cherry picked from commit 46d4d97da9)
2020-10-14 10:31:05 +02:00
..
check_running_cluster.yml ansible: use 'bool' filter on boolean conditionals 2019-06-07 16:05:51 +02:00
check_running_containers.yml ceph-handler: add missing condition on ceph-crash 2020-09-10 20:35:04 -04:00
check_socket_non_container.yml handler: refact check_socket_non_container 2020-10-14 10:31:05 +02:00
handler_crash.yml ceph-crash: introduce new role ceph-crash 2020-09-10 20:35:04 -04:00
handler_mdss.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_mgrs.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_mons.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_nfss.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_osds.yml handler: read container_exec_cmd value from first mon 2020-01-23 18:34:14 +01:00
handler_rbd_target_api_gw.yml ceph-handler: remove iscsigws restart scripts 2020-07-27 09:33:00 -04:00
handler_rbdmirrors.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_rgws.yml handler: fix bug 2020-01-08 19:46:11 -05:00
handler_tcmu_runner.yml ceph-handler: remove iscsigws restart scripts 2020-07-27 09:33:00 -04:00
main.yml handler: refact check_socket_non_container 2020-10-14 10:31:05 +02:00