CI: remove m2.tiny creation outside of init-runonce

it is already in init-runonce in the previous release

Change-Id: I7edc1216d3e74e995ed2051e9fd3d93196014836
This commit is contained in:
Bartosz Bezak 2024-06-14 10:28:34 +02:00
parent f0688f7922
commit 2fc5ccc4fc

View File

@ -179,12 +179,6 @@ function create_instance {
function resize_instance {
local name=$1
# TODO(priteau): Remove once previous_release includes m2.tiny in
# init-runonce
if ! openstack flavor list -f value | grep m2.tiny; then
openstack flavor create --id 6 --ram 512 --disk 1 --vcpus 2 m2.tiny
fi
openstack server resize --flavor m2.tiny --wait ${name}
# If the status is not VERIFY_RESIZE, print info and exit 1
if [[ $(openstack server show ${name} -f value -c status) != "VERIFY_RESIZE" ]]; then