From: Adam King Date: Wed, 19 Feb 2025 20:08:35 +0000 (-0500) Subject: qa/cephadm: add timeouts and debug commands to rgw-ingress test X-Git-Tag: v20.0.0~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0ec2d2841d63077e45fe48ea89f87366527e98b;p=ceph.git qa/cephadm: add timeouts and debug commands to rgw-ingress test This won't make the test pass in and of itself, but it should stop the test from running until it hits the max job timeout and should help see where it's failing Signed-off-by: Adam King --- diff --git a/qa/suites/orch/cephadm/smoke-roleless/2-services/rgw-ingress.yaml b/qa/suites/orch/cephadm/smoke-roleless/2-services/rgw-ingress.yaml index 710edab73757..13a344a6cd2b 100644 --- a/qa/suites/orch/cephadm/smoke-roleless/2-services/rgw-ingress.yaml +++ b/qa/suites/orch/cephadm/smoke-roleless/2-services/rgw-ingress.yaml @@ -41,20 +41,20 @@ tasks: echo "Check with each rgw stopped in turn..." for rgw in `ceph orch ps | grep ^rgw.foo. | awk '{print $1}'`; do ceph orch daemon stop $rgw - while ! ceph orch ps | grep $rgw | grep stopped; do sleep 1 ; done - while ! curl http://{{VIP0}}:9000/ ; do sleep 1 ; done + timeout 300 bash -c "while ! ceph orch ps | grep $rgw | grep stopped; do echo 'Waiting for $rgw to stop'; ceph orch ps --daemon-type rgw; ceph health detail; sleep 5 ; done" + timeout 300 bash -c "while ! curl http://{{VIP0}}:9000/ ; do echo 'Waiting for http://{{VIP0}}:9000/ to be available'; sleep 1 ; done" ceph orch daemon start $rgw - while ! ceph orch ps | grep $rgw | grep running; do sleep 1 ; done + timeout 300 bash -c "while ! ceph orch ps | grep $rgw | grep running; do echo 'Waiting for $rgw to start'; ceph orch ps --daemon-type rgw; ceph health detail; sleep 5 ; done" done # stop each haproxy in turn echo "Check with each haproxy down in turn..." for haproxy in `ceph orch ps | grep ^haproxy.rgw.foo. | awk '{print $1}'`; do ceph orch daemon stop $haproxy - while ! ceph orch ps | grep $haproxy | grep stopped; do sleep 1 ; done - while ! curl http://{{VIP0}}:9000/ ; do sleep 1 ; done + timeout 300 bash -c "while ! ceph orch ps | grep $haproxy | grep stopped; do echo 'Waiting for $haproxy to stop'; ceph orch ps --daemon-type haproxy; ceph health detail; sleep 5 ; done" + timeout 300 bash -c "while ! curl http://{{VIP0}}:9000/ ; do echo 'Waiting for http://{{VIP0}}:9000/ to be available'; sleep 1 ; done" ceph orch daemon start $haproxy - while ! ceph orch ps | grep $haproxy | grep running; do sleep 1 ; done + timeout 300 bash -c "while ! ceph orch ps | grep $haproxy | grep running; do echo 'Waiting for $haproxy to start'; ceph orch ps --daemon-type haproxy; ceph health detail; sleep 5 ; done" done - while ! curl http://{{VIP0}}:9000/ ; do sleep 1 ; done + timeout 300 bash -c "while ! curl http://{{VIP0}}:9000/ ; do echo 'Waiting for http://{{VIP0}}:9000/ to be available'; sleep 1 ; done"