From d3e11e8ed61f6ccdc206ae56ed8ae15f5b2978cc Mon Sep 17 00:00:00 2001 From: Alex Welsh Date: Thu, 16 Apr 2026 16:41:19 +0100 Subject: [PATCH] Ensure AIOs are only cleaned up after 6 hours AIO upgrade jobs on SMS regularly exceed 3 hours, so can be culled before they are finished. This commit ensures they are only removed after 6 hours. --- .github/workflows/stackhpc-ci-cleanup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stackhpc-ci-cleanup.yml b/.github/workflows/stackhpc-ci-cleanup.yml index cbc20b93d..f3bcb11b7 100644 --- a/.github/workflows/stackhpc-ci-cleanup.yml +++ b/.github/workflows/stackhpc-ci-cleanup.yml @@ -40,10 +40,10 @@ jobs: run: | pip install python-openstackclient -c https://raw.githubusercontent.com/stackhpc/requirements/refs/heads/stackhpc/${{ steps.openstack_release.outputs.openstack_release }}/upper-constraints.txt - - name: Clean up aio instances over 3 hours old + - name: Clean up aio instances over 6 hours old run: | result=0 - changes_before=$(date -Imin -d -3hours) + changes_before=$(date -Imin -d -6hours) for status in ACTIVE BUILD ERROR SHUTOFF; do for instance in $(openstack server list --tags skc-ci-aio --os-compute-api-version 2.66 --format value --column ID --changes-before $changes_before --status $status); do echo "Cleaning up $status instance $instance"