summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/heat_template/HOT_create_instance.sh
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2015-12-22 09:23:44 +0000
committerMatthewLi <matthew.lijun@huawei.com>2015-12-22 09:23:44 +0000
commit971eae7ded51ed3926b0e923e920c1926c71e5ab (patch)
treeb9bfba5d759b7930da0bae068f2f630f45d7c93d /utils/infra_setup/heat_template/HOT_create_instance.sh
parent1dce10dfe5d2fd8dbbc465ef6c99ed162123a1df (diff)
amend heat template instance creation script
JIRA: BOTTLENECK-35 Change-Id: I4b68f083e7ae8ad2c9b9a96760aac0e1dfd2ac90 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat_template/HOT_create_instance.sh')
-rwxr-xr-xutils/infra_setup/heat_template/HOT_create_instance.sh8
1 files changed, 7 insertions, 1 deletions
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
}