From: QiLiang Date: Mon, 28 Nov 2016 14:56:44 +0000 (+0800) Subject: Add refresh.sh exec on compass-core X-Git-Tag: colorado.3.0~2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=fcd0eefae931bb7bed0380574c1c7acaa31ffa28;p=compass4nfv.git Add refresh.sh exec on compass-core Add refresh.sh exec on compass-core, so user don't need to manually execute the refresh.sh script when they what redeploy the openstack without redeploy the compass-core vm. Change-Id: I63803ee1db1caafdb71f8ead44f04c62c0ad0f98 Signed-off-by: QiLiang --- diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh index 63c1998b..a83f2b0f 100755 --- a/deploy/compass_vm.sh +++ b/deploy/compass_vm.sh @@ -71,6 +71,11 @@ function inject_compass_conf() { _inject_dashboard_conf } +function refresh_compass_core () { + cmd="/opt/compass/bin/refresh.sh" + exec_cmd_on_compass $cmd +} + function wait_ok() { set +x log_info "wait_compass_ok enter" diff --git a/deploy/launch.sh b/deploy/launch.sh index 348d11e2..80e78538 100755 --- a/deploy/launch.sh +++ b/deploy/launch.sh @@ -62,6 +62,8 @@ if [[ "$DEPLOY_COMPASS" == "true" ]]; then log_error "launch_compass failed" exit 1 fi +else + refresh_compass_core fi if [[ -z "$REDEPLOY_HOST" || "$REDEPLOY_HOST" == "false" ]]; then