]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-handler: allow 405 as a success restart for rgw
authorSeena Fallah <seenafallah@gmail.com>
Fri, 29 Mar 2024 18:57:36 +0000 (19:57 +0100)
committerSeena Fallah <seenafallah@gmail.com>
Thu, 4 Apr 2024 10:21:35 +0000 (12:21 +0200)
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 <seenafallah@gmail.com>
(cherry picked from commit 9f9b32e9e6610e62aabeda4c09339ac3e84e7c4d)

roles/ceph-handler/templates/restart_rgw_daemon.sh.j2

index 77ecfdfc1e39119ed16383afd17108d5f5deb16a..0c7a8ff0d797672204334ff6a20c12cf5428838e 100644 (file)
@@ -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