From 63d14b62c885e9d2a4f30691648932b3bdd5cb0d Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 27 Jun 2022 20:26:29 -0400 Subject: [PATCH] sepia-fog-images: Don't unpause if PAUSEQUEUE=false Signed-off-by: David Galloway --- sepia-fog-images/build/failure | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/sepia-fog-images/build/failure b/sepia-fog-images/build/failure index 1abff731..0ec76f0e 100755 --- a/sepia-fog-images/build/failure +++ b/sepia-fog-images/build/failure @@ -47,12 +47,19 @@ done set +e -# Just unlock machines. FOG will reimage them on the next job they run. -for host in $allhosts; do - teuthology-lock --unlock $host -done +# Unpause the queue if we paused it earlier +if [ "$pausedqueue" = true ]; then + for type in $MACHINETYPES; do + teuthology-queue --pause 0 --machine_type $type + done +fi -# Unpause the queue -for type in $MACHINETYPES; do - teuthology-queue --pause 0 --machine_type $type -done +if [ "$use_teuthologylock" = true ]; then + # Unlock all machines after all capture images are finished + for host in $allhosts; do + teuthology-lock --unlock $host + done +else + deactivate + rm -rf $WORKSPACE/venv +fi -- 2.39.5