ceph-ansible/roles/ceph-handler/templates
Dimitri Savineau 94cdef2757 ceph-handler: Fix rgw socket in restart script
If the SOCKET variable isn't defined in the script then the test
command won't fail because the return code is 0

$ test -S
$ echo $?
0

There multiple issues in that script:
  - The default SOCKET value isn't defined.
  - Update the wget parameters because the command is doing a loop.
We now use the same option than curl.
  - The check_rest function doesn't test the radosgw at all due to
a wrong test command (test against a string) and always returns 0.
This needs to use the DOCKER_EXEC variable in order to execute the
command.

$ test 'wget http://192.168.100.11:8080'
$ echo $?
0

Resolves: #3926

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit c90f605b51)
2019-07-08 10:38:35 -04:00
..
restart_mds_daemon.sh.j2 handler: show unit logs on error 2018-11-27 12:44:15 +00:00
restart_mgr_daemon.sh.j2 handler: show unit logs on error 2018-11-27 12:44:15 +00:00
restart_mon_daemon.sh.j2 handler: show unit logs on error 2018-11-27 12:44:15 +00:00
restart_nfs_daemon.sh.j2 handler: show unit logs on error 2018-11-27 12:44:15 +00:00
restart_osd_daemon.sh.j2 ceph-handler: Fix OSD restart script 2019-06-21 14:49:55 -04:00
restart_rbd_mirror_daemon.sh.j2 handler: show unit logs on error 2018-11-27 12:44:15 +00:00
restart_rbd_target_api.sh.j2 add ceph-handler role 2018-09-28 15:15:49 +00:00
restart_rbd_target_gw.sh.j2 add ceph-handler role 2018-09-28 15:15:49 +00:00
restart_rgw_daemon.sh.j2 ceph-handler: Fix rgw socket in restart script 2019-07-08 10:38:35 -04:00
restart_tcmu_runner.sh.j2 add ceph-handler role 2018-09-28 15:15:49 +00:00