From ff01722b0fac91b9dd0a1c590bd4edcfa370d3de Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Wed, 22 Feb 2023 13:31:58 -0700 Subject: [PATCH] test: increase timeout waiting for ceph commands The test scripts were only waiting for a timeout of three seconds for ceph commands, which was causing intermittent failures in the CI. Now the timeout is increased to ten seconds. Signed-off-by: Travis Nielsen --- tests/scripts/collect-logs.sh | 2 +- tests/scripts/validate_cluster.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/collect-logs.sh b/tests/scripts/collect-logs.sh index d8dc3e7d4..eb4d62036 100755 --- a/tests/scripts/collect-logs.sh +++ b/tests/scripts/collect-logs.sh @@ -10,7 +10,7 @@ set -x LOG_DIR="${LOG_DIR%/}" # remove trailing slash if necessary mkdir -p "${LOG_DIR}" -CEPH_CMD="kubectl -n ${CLUSTER_NAMESPACE} exec deploy/rook-ceph-tools -- ceph --connect-timeout 3" +CEPH_CMD="kubectl -n ${CLUSTER_NAMESPACE} exec deploy/rook-ceph-tools -- ceph --connect-timeout 10" $CEPH_CMD -s >"${LOG_DIR}"/ceph-status.txt $CEPH_CMD osd dump >"${LOG_DIR}"/ceph-osd-dump.txt diff --git a/tests/scripts/validate_cluster.sh b/tests/scripts/validate_cluster.sh index 8bcb3d8cc..02b275ac0 100755 --- a/tests/scripts/validate_cluster.sh +++ b/tests/scripts/validate_cluster.sh @@ -25,7 +25,7 @@ OSD_COUNT=$2 ############# # FUNCTIONS # ############# -EXEC_COMMAND="kubectl -n rook-ceph exec $(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[*].metadata.name}') -- ceph --connect-timeout 3" +EXEC_COMMAND="kubectl -n rook-ceph exec $(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[*].metadata.name}') -- ceph --connect-timeout 10" function wait_for_daemon () { timeout=90