Add refresh.sh exec on compass-core 17/24717/1
authorQiLiang <liangqi1@huawei.com>
Wed, 23 Nov 2016 02:43:38 +0000 (10:43 +0800)
committerQiLiang <liangqi1@huawei.com>
Wed, 23 Nov 2016 02:43:38 +0000 (10:43 +0800)
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: I1a6b5ca84d4dd00a3f326b30b68e0ecac022d5ef
Signed-off-by: QiLiang <liangqi1@huawei.com>
deploy/compass_vm.sh
deploy/launch.sh

index f1c9289..61e2705 100755 (executable)
@@ -74,6 +74,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"
index 4e6e1a3..9031cb6 100755 (executable)
@@ -71,6 +71,8 @@ if [[ "$EXPANSION" == "false" ]]; then
             log_error "launch_compass failed"
             exit 1
         fi
+    else
+        refresh_compass_core
     fi
 else
     machines=`get_host_macs`