From d7f8e23345ff2d93eb6dba596abac8de218dfb92 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Thu, 27 Feb 2025 09:58:25 +0100 Subject: [PATCH] testing/openstack: clean everything before testing It happens that we have some leftovers instances running in an "error" state (the error comes from the OpenStack scheduled deletion). This leads to instance creation error during the test because quota limits are hit. Let's clean-up everything before running the new tests. This won't impact tests from other channels as OpenStack is limited to one CI job at a time. Signed-off-by: Mathieu Tortuyaux --- ci-automation/vendor-testing/openstack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci-automation/vendor-testing/openstack.sh b/ci-automation/vendor-testing/openstack.sh index 4efa6d4907..b3ff101679 100755 --- a/ci-automation/vendor-testing/openstack.sh +++ b/ci-automation/vendor-testing/openstack.sh @@ -29,6 +29,9 @@ secret_to_file config_file "${OPENSTACK_CREDS}" openstack_keyfile='' secret_to_file openstack_keyfile "${OPENSTACK_KEYFILE}" +# Make sure that everything is cleaned up before starting. +ore --config-file "${config_file}" openstack gc --duration 1s + # Upload the image on OpenStack dev instance. IMAGE_ID=$(ore openstack create-image \ --name=flatcar-"${CIA_VERNUM}" \