From 41e3f8fecb9807fa0162b027b76f10e8d23d56df Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Fri, 15 Feb 2019 15:39:42 +0200 Subject: [PATCH] Update OpenStack flavor and network settings in tests b/c we've migrated to Upshift we must use different instance type, specify the desired network to connect to and update how we get the ip address of the launched VM. Related: rhbz#1656105 --- tests/cli/test_build_and_deploy_openstack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cli/test_build_and_deploy_openstack.sh b/tests/cli/test_build_and_deploy_openstack.sh index 7f902e9d..aed9a187 100755 --- a/tests/cli/test_build_and_deploy_openstack.sh +++ b/tests/cli/test_build_and_deploy_openstack.sh @@ -104,11 +104,11 @@ __EOF__ rlRun -t -c "ssh-keygen -t rsa -N '' -f $SSH_KEY_DIR/id_rsa" rlRun -t -c "ansible localhost -m os_keypair -a 'name=$VM_NAME-key public_key_file=$SSH_KEY_DIR/id_rsa.pub'" - response=`ansible localhost -m os_server -a "name=$VM_NAME image=$OS_IMAGE_UUID flavor=t2.medium key_name=$VM_NAME-key auto_ip=yes"` + response=`ansible localhost -m os_server -a "name=$VM_NAME image=$OS_IMAGE_UUID network=provider_net_cci_2 flavor=ci.m1.medium.ephemeral key_name=$VM_NAME-key auto_ip=yes"` rlAssert0 "VM started successfully" $? rlLogInfo "$response" - IP_ADDRESS=`echo "$response" | grep '"OS-EXT-IPS:type": "floating"' -A1| grep '"addr":' | cut -f4 -d'"' | head -n 1` + IP_ADDRESS=`echo "$response" | grep '"OS-EXT-IPS:type": "fixed"' -A1| grep '"addr":' | cut -f4 -d'"' | head -n 1` rlLogInfo "Running instance IP_ADDRESS=$IP_ADDRESS" rlLogInfo "Waiting 60sec for instance to initialize ..."