From ea658a64b9aff53ee3dbb5628305d927aac5aea1 Mon Sep 17 00:00:00 2001 From: Xu Deng Date: Tue, 7 May 2024 18:44:05 -0400 Subject: [PATCH] Add retry when there ssh connection timeout during image building (#3156) * Update build_image.sh * Update build_image.sh --- projects/kubernetes-sigs/image-builder/build/build_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/kubernetes-sigs/image-builder/build/build_image.sh b/projects/kubernetes-sigs/image-builder/build/build_image.sh index 23b2741452..c0dee3b8b5 100755 --- a/projects/kubernetes-sigs/image-builder/build/build_image.sh +++ b/projects/kubernetes-sigs/image-builder/build/build_image.sh @@ -52,7 +52,8 @@ function retry_image_builder() { local delay=30 local failed="" declare -A retryable_messages=( - ["Timeout waiting for IP."]="Failed waiting for IP" + ["Timeout waiting for IP."]="Failed waiting for IP" + ["Timeout waiting for SSH"]="Wrong VM IP might be fetched" ["Cancelling provisioner after a timeout"]="Provisioner timed out") until [ $n -eq $max ]; do