diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-07-25 11:04:54 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-07-25 11:04:54 +0800 |
commit | 07a64a6e2b0feea3543f7c6fc7fecb064cb600a3 (patch) | |
tree | 607234b1f8994be9ea1cecfda9f39522dcd4382f /rulemgt-standalone/src/main/assembly | |
parent | f7b8d47da7c0d9eb8bb9fe5d213cf8277d74a0cf (diff) |
Fixed the bug that UI cannot be registered to MSB
Change-Id: I0645b0e6badeca838012d3fb8a8192924c18d283
Issue-ID: HOLMES-146
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/run.sh | 7 |
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" |