Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Catch additional retry on docker image pull
Browse files Browse the repository at this point in the history
- Partially addresses #341
  • Loading branch information
alfpark committed Mar 6, 2020
1 parent 2291051 commit 2cfc07d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/shipyard_nodeprep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,9 @@ docker_pull_image_fallback() {
uhs=$(grep -i 'received unexpected HTTP status' <<<"$pull_out")
local tht
tht=$(grep -i 'TLS handshake timeout' <<<"$pull_out")
if [[ -n "$tmr" ]] || [[ -n "$crbp" ]] || [[ -n "$epic" ]] || [[ -n "$erb" ]] || [[ -n "$uhs" ]] || [[ -n "$tht" ]]; then
local rcc
rcc=$(grep -i 'request canceled while waiting for connection' <<<"$pull_out")
if [[ -n "$tmr" ]] || [[ -n "$crbp" ]] || [[ -n "$epic" ]] || [[ -n "$erb" ]] || [[ -n "$uhs" ]] || [[ -n "$tht" ]] || [[ -n "$rcc" ]]; then
log WARNING "will retry: $pull_out"
else
log ERROR "$pull_out"
Expand Down Expand Up @@ -1011,7 +1013,9 @@ docker_pull_image() {
uhs=$(grep -i 'received unexpected HTTP status' <<<"$pull_out")
local tht
tht=$(grep -i 'TLS handshake timeout' <<<"$pull_out")
if [[ -n "$tmr" ]] || [[ -n "$crbp" ]] || [[ -n "$epic" ]] || [[ -n "$erb" ]] || [[ -n "$uhs" ]] || [[ -n "$tht" ]]; then
local rcc
rcc=$(grep -i 'request canceled while waiting for connection' <<<"$pull_out")
if [[ -n "$tmr" ]] || [[ -n "$crbp" ]] || [[ -n "$epic" ]] || [[ -n "$erb" ]] || [[ -n "$uhs" ]] || [[ -n "$tht" ]] || [[ -n "$rcc" ]]; then
log WARNING "will retry: $pull_out"
else
log ERROR "$pull_out"
Expand Down

0 comments on commit 2cfc07d

Please sign in to comment.