From 1f8577397aa811c3039c86b786ff10a05a91bf25 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 18 Sep 2024 17:18:15 -0700 Subject: [PATCH] sepia-fog-images: look for deploy tasks only of the image being captured It doesn't matter if there are deploy tasks for other images, only for the one we're about to capture Signed-off-by: Dan Mick --- sepia-fog-images/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepia-fog-images/build/build b/sepia-fog-images/build/build index 904ecff2..9bd5023f 100755 --- a/sepia-fog-images/build/build +++ b/sepia-fog-images/build/build @@ -236,7 +236,7 @@ if [ "$PAUSEQUEUE" == "true" ]; then while [ $deploytasks -gt 0 ]; do echo "$(date) -- $deploytasks FOG deploy tasks still queued. Sleeping 10sec" sleep 10 - deploytasks=$(curl -f -s -k -H "fog-api-token: ${FOG_API_TOKEN}" -H "fog-user-token: ${FOG_USER_TOKEN}" http://fog.front.sepia.ceph.com/fog/task/active -d '{"typeID": "'${fogdeployid}'"}' -X GET | jq -r '.count') + deploytasks=$(curl -f -s -k -H "fog-api-token: ${FOG_API_TOKEN}" -H "fog-user-token: ${FOG_USER_TOKEN}" http://fog.front.sepia.ceph.com/fog/task/active -d '{"typeID": "'${fogdeployid}'", "imageID": "'${fogimageid}'"}' -X GET | jq -r '.count') ((++currentretries)) # Retry for 1hr funRetry $currentretries 360 -- 2.39.5