Skip to content

Commit

Permalink
Add retry when there ssh connection timeout during image building (#3156
Browse files Browse the repository at this point in the history
)

* Update build_image.sh

* Update build_image.sh
  • Loading branch information
d8660091 authored May 7, 2024
1 parent 5bd46a7 commit ea658a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/kubernetes-sigs/image-builder/build/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea658a6

Please sign in to comment.