From 9f9b32e9e6610e62aabeda4c09339ac3e84e7c4d Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Fri, 29 Mar 2024 19:57:36 +0100 Subject: [PATCH] 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 --- roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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