From: Seena Fallah Date: Fri, 29 Mar 2024 18:57:36 +0000 (+0100) Subject: ceph-handler: allow 405 as a success restart for rgw X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f9b32e9e6610e62aabeda4c09339ac3e84e7c4d;p=ceph-ansible.git ceph-handler: allow 405 as a success restart for rgw If rgw is configured to only operate admin api - this is the status code it will return for GET on no path. Signed-off-by: Seena Fallah --- diff --git a/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 b/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 index 77ecfdfc1..0c7a8ff0d 100644 --- a/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 +++ b/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 @@ -62,7 +62,7 @@ check_rest() { local succ=0 while [ $RETRIES -ne 0 ]; do check_for_curl_or_wget ${i} - if [ $rgw_test_result -eq 200 ] || [ $rgw_test_result -eq 404 ]; then + if [ $rgw_test_result -eq 200 ] || [ $rgw_test_result -eq 404 ] || [ $rgw_test_result -eq 405 ]; then succ=$((succ+1)) break fi