From 1c568079fd4e19220b32dee953fa10c43806294e Mon Sep 17 00:00:00 2001 From: tang peng Date: Thu, 24 Sep 2020 15:19:06 +0800 Subject: Fixed an Issue on API Calling via MSB Issue-ID: HOLMES-365 Signed-off-by: tang peng Change-Id: I169d030261bdf63ffe5c395aeaa02ebb61230cc0 --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine-d/src/main/java/org') diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java index 49627fa..7f49621 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java @@ -71,17 +71,21 @@ public class EngineDActiveApp extends IOCApplication { msinfo.setServiceName("holmes-engine-mgmt"); msinfo.setVersion("v1"); msinfo.setUrl("/api/holmes-engine-mgmt/v1"); + msinfo.setPath("/api/holmes-engine-mgmt/v1"); msinfo.setProtocol("REST"); msinfo.setVisualRange("0|1"); + msinfo.setLb_policy("round-robin"); msinfo.setEnable_ssl(HttpsUtils.isHttpsEnabled()); Set nodes = new HashSet<>(); Node node = new Node(); node.setIp(serviceAddrInfo[0]); node.setPort("9102"); + /* Following codes will cause an unregistration from MSB (due to MSB malfunction), comment them for now node.setCheckType("HTTP"); node.setCheckUrl(String.format(msbAddrTemplate, serviceAddrInfo[0], "9102")); node.setCheckTimeOut("60s"); node.setCheckInterval("60s"); + */ nodes.add(node); msinfo.setNodes(nodes); return msinfo; -- cgit 1.2.3-korg