From b7d89c507050b4bf60f087bc1034bd85d6cb8f88 Mon Sep 17 00:00:00 2001 From: Mark Burnett Date: Tue, 12 Dec 2017 16:29:56 -0600 Subject: [PATCH] Test: Increase curl timeout for fetching join-*.sh The default seems to be 60s, which often fails in the CICD environment. 30s is a typical time seen testing locally. Change-Id: I074c7985152fb76e5e4c7289e065ec5d1f00b5dc --- tools/g2/stages/join-nodes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/g2/stages/join-nodes.sh b/tools/g2/stages/join-nodes.sh index 31ded22b..80c4cf88 100755 --- a/tools/g2/stages/join-nodes.sh +++ b/tools/g2/stages/join-nodes.sh @@ -63,7 +63,7 @@ mkdir -p "${SCRIPT_DIR}" for NAME in "${NODES[@]}"; do log Building join script for node "${NAME}" - ssh_cmd "${VIA}" curl --retry 16 --retry-delay 15 "$(render_curl_url "${NAME}" "${LABELS[@]}")" > "${SCRIPT_DIR}/join-${NAME}.sh" + ssh_cmd "${VIA}" curl --max-time 300 --retry 16 --retry-delay 15 "$(render_curl_url "${NAME}" "${LABELS[@]}")" > "${SCRIPT_DIR}/join-${NAME}.sh" chmod 755 "${SCRIPT_DIR}/join-${NAME}.sh" log Joining node "${NAME}"