From 971eae7ded51ed3926b0e923e920c1926c71e5ab Mon Sep 17 00:00:00 2001 From: MatthewLi Date: Tue, 22 Dec 2015 09:23:44 +0000 Subject: amend heat template instance creation script JIRA: BOTTLENECK-35 Change-Id: I4b68f083e7ae8ad2c9b9a96760aac0e1dfd2ac90 Signed-off-by: MatthewLi --- utils/infra_setup/heat_template/HOT_create_instance.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'utils/infra_setup') diff --git a/utils/infra_setup/heat_template/HOT_create_instance.sh b/utils/infra_setup/heat_template/HOT_create_instance.sh index 49fa5e81..aa4e2e32 100755 --- a/utils/infra_setup/heat_template/HOT_create_instance.sh +++ b/utils/infra_setup/heat_template/HOT_create_instance.sh @@ -20,12 +20,18 @@ bottlenecks_create_instance() echo "create bottlenecks instance using heat template" echo "upload keypair" - nova keypair-add --pub_key $KEY_PATH/bottleneck_key.pub $KEY_NAME + nova keypair-add --pub_key $KEY_PATH/bottlenecks_key.pub $KEY_NAME #need FIX, only upload the public key? should be keypair echo "use heat template to create stack" cd $HOT_PATH heat stack-create bottlenecks -f ${TEMPLATE_NAME} -P "image=$IMAGE_NAME;key=$KEY_NAME;public_network=$PUBLIC_NET_NAME" + sleep 60 + heat stack-list + heat stack-show bottlenecks + nova list + heat stack-delete bottlenecks + #need FIX, use stack to create 9 VMs } -- cgit 1.2.3-korg