]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sepia-fog-images: Don't unpause if PAUSEQUEUE=false 2029/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 28 Jun 2022 00:26:29 +0000 (20:26 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 28 Jun 2022 00:26:29 +0000 (20:26 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
sepia-fog-images/build/failure

index 1abff731beb7bc77ca091f6b601d0aafdeee25af..0ec76f0e1dbb8296d6ccd85489dc8a2199b5de91 100755 (executable)
@@ -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