Skip to content

Commit

Permalink
ceph-handler: allow 405 as a success restart for rgw
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 9f9b32e)
  • Loading branch information
clwluvw authored and mergify[bot] committed Apr 3, 2024
1 parent fecc615 commit 684ae1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-handler/templates/restart_rgw_daemon.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 684ae1f

Please sign in to comment.