summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2018-07-25 03:22:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-25 03:22:00 +0000
commitd98c5742d63cc9a1751ca8af5f642d695deaaca7 (patch)
tree972a6dcef3d123b8886cbc60c8014dbe4801494e
parent9f7b9daa0ab9851f4427b34d1e5bfa5162587da7 (diff)
parent07a64a6e2b0feea3543f7c6fc7fecb064cb600a3 (diff)
Merge "Fixed the bug that UI cannot be registered to MSB"
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index e05c753..f800eb4 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -82,10 +82,13 @@ sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf
#Register the fronten to MSB
-body='{"serviceName": "holmes", "version": "v1", "url": "/iui/holmes","protocol": "UI", "enable_ssl":"true", "visualRange":"0|1", "nodes": [ {"ip": "host_ip","port": "9104"}]}'
-curl -X POST -H "Content-Type: application/json" -d ${body/host_ip/"${HOSTNAME%:*}"} http://${MSB_ADDR}:10081/api/microservices/v1/services
+body='{"serviceName":"holmes","version":"v1","url":"/iui/holmes","nodes":[{"ip":"host_ip","port":"9104","lb_server_params":"","checkType":"","checkUrl":"","checkInterval":"","checkTimeOut":"","ttl":"","ha_role":""}],"protocol":"UI","visualRange":"0|1","lb_policy":"","publish_port":"","namespace":"","network_plane_type":"","host":"","path":"","labels":[],"metadata":[]}'
+msg_body=${body/host_ip/"${HOSTNAME%:*}"}
+curl -X POST -H "Content-Type: application/json" -d ${msg_body} http://${MSB_ADDR}/api/msdiscover/v1/services?is_manual=true
+echo Registered UI to MSB.
nginx -c /usr/local/openresty/nginx/conf/nginx.conf
+echo nginx started.
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"