mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-22 17:52:12 +01:00
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 <mtortuyaux@microsoft.com>
This commit is contained in:
parent
c87674bd2e
commit
30b8a11dc3
@ -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}" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user