From aed2c8b87cafd43a53775622f19312b6dcb47fe5 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 19 Nov 2014 08:58:45 -0800 Subject: [PATCH] Give a more specific error message when giving up in git_remote_update git_remote_update is intermittently failing in the gate but we don't have a good error message in the devstack logs for this specific case due to the retry loop (we don't get 100% failure on a query for the error messages in there today). This change adds a specific error message when we fail the retry attempts and exit so we can fingerprint on this with an elastic recheck query. Related-Bug: #1365046 Change-Id: Ibb3269a534d5b28b2d7d8a531e30a77ba6011f2d --- functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.sh b/functions.sh index 93478c07..d63b38e7 100644 --- a/functions.sh +++ b/functions.sh @@ -175,6 +175,7 @@ function git_remote_update { COUNT=$(($COUNT + 1)) echo "git remote update failed." if [ $COUNT -eq $MAX_ATTEMPTS ]; then + echo "Max attempts reached for git remote update; giving up." exit 1 fi SLEEP_TIME=$((30 + $RANDOM % 60))