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

This commit is contained in:
Zuul 2024-06-21 16:24:21 +00:00 committed by Gerrit Code Review
commit 9a45b3db51

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