From b67c6b64b8e2c08f40051adf5a839241e78dca7d Mon Sep 17 00:00:00 2001 From: "chenshuai@huawei.com" Date: Tue, 16 Feb 2016 18:29:55 +0800 Subject: Improvement: reset compute nodes for opencontrail JIRA: COMPASS-317 Change-Id: I27b6bb3aa8707f02a51951eed83646a78dafc841 Signed-off-by: chenshuai@huawei.com --- deploy/launch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'deploy/launch.sh') diff --git a/deploy/launch.sh b/deploy/launch.sh index 8ee70e47..f9d915bf 100755 --- a/deploy/launch.sh +++ b/deploy/launch.sh @@ -78,6 +78,14 @@ if [[ "$DEPLOY_HOST" == "true" || $REDEPLOY_HOST == "true" ]]; then if ! deploy_host;then exit 1 fi + echo $HOST_ROLES + echo $TYPE + echo $DHA + if [[ `echo $HOST_ROLES | grep opencontrail` ]]; then + sleep 60 + python ${COMPASS_DIR}/deploy/reset_compute.py $TYPE $DHA + sleep 600 + fi fi figlet -ctf slant Installation Complete! -- cgit 1.2.3-korg