Use openstack commands in upgrade plugin

Change-Id: I94075f261ce095c509635aab395df42878aceb1c
This commit is contained in:
Rabi Mishra 2022-07-12 16:34:01 +05:30
parent 2edb92d477
commit e446ecbb21
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ function create {
local stack_name='grenadine' local stack_name='grenadine'
resource_save heat stack_name $stack_name resource_save heat stack_name $stack_name
local loc=`dirname $BASH_SOURCE` local loc=`dirname $BASH_SOURCE`
heat stack-create -f $loc/templates/random_string.yaml $stack_name openstack stack create -t $loc/templates/random_string.yaml $stack_name
} }
function verify { function verify {
@ -121,7 +121,7 @@ function verify {
fi fi
fi fi
stack_name=$(resource_get heat stack_name) stack_name=$(resource_get heat stack_name)
heat stack-show $stack_name openstack stack show $stack_name
# TODO(sirushtim): Create more granular checks for Heat. # TODO(sirushtim): Create more granular checks for Heat.
} }
@ -133,7 +133,7 @@ function verify_noapi {
function destroy { function destroy {
_heat_set_user _heat_set_user
heat stack-delete $(resource_get heat stack_name) openstack stack delete -y $(resource_get heat stack_name)
source $TOP_DIR/openrc admin admin source $TOP_DIR/openrc admin admin
local user_id=$(resource_get heat user_id) local user_id=$(resource_get heat user_id)