Merge "CI: remove m2.tiny creation outside of init-runonce"
This commit is contained in:
commit
9a45b3db51
@ -179,12 +179,6 @@ function create_instance {
|
|||||||
function resize_instance {
|
function resize_instance {
|
||||||
local name=$1
|
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}
|
openstack server resize --flavor m2.tiny --wait ${name}
|
||||||
# If the status is not VERIFY_RESIZE, print info and exit 1
|
# If the status is not VERIFY_RESIZE, print info and exit 1
|
||||||
if [[ $(openstack server show ${name} -f value -c status) != "VERIFY_RESIZE" ]]; then
|
if [[ $(openstack server show ${name} -f value -c status) != "VERIFY_RESIZE" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user