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
This commit is contained in:
Matt Riedemann
2014-11-19 08:58:45 -08:00
parent c940790518
commit aed2c8b87c

View File

@@ -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))