From 5aec4e3569cbc790af8a1aeae129fe0ca1c6c5dd Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Tue, 6 Oct 2020 18:13:47 +0100 Subject: Fixing policy-models-simulator helm issues This review updates the config file for the simulator in order to fix below 2 issues: 1) Too much logs due to SSL related errors causing POD to be evicted every 30minutes. 2) Invalid Parameters causing the container to crash (RestServerParameters validation in dmaapProvider making it mandatory to add host and port) Change-Id: I5cd1b44b0a142627071dccd93b6d3e40400db711 Issue-ID: POLICY-2828 Signed-off-by: a.sreekumar --- .../resources/config/simParameters.json | 49 ++++++++++++---------- 1 file changed, 26 insertions(+), 23 deletions(-) (limited to 'helm') diff --git a/helm/policy-models-simulator/resources/config/simParameters.json b/helm/policy-models-simulator/resources/config/simParameters.json index 5bb67e71..7408ade8 100644 --- a/helm/policy-models-simulator/resources/config/simParameters.json +++ b/helm/policy-models-simulator/resources/config/simParameters.json @@ -1,51 +1,48 @@ { "dmaapProvider": { "name": "DMaaP simulator", - "topicSweepSec": 300, - "restServerParameters": { - - } + "topicSweepSec": 300 }, "restServers": [ { "name": "DMaaP simulator", "providerClass": "org.onap.policy.models.sim.dmaap.rest.DmaapSimRestControllerV1", - "host": "localhost", + "host": "0.0.0.0", "port": 3905, "https": true }, { "name": "A&AI simulator", "providerClass": "org.onap.policy.simulators.AaiSimulatorJaxRs", - "host": "localhost", + "host": "0.0.0.0", "port": 6666, "https": true }, { "name": "Guard simulator", "providerClass": "org.onap.policy.simulators.GuardSimulatorJaxRs", - "host": "localhost", + "host": "0.0.0.0", "port": 6667, "https": true }, { "name": "SDNC simulator", "providerClass": "org.onap.policy.simulators.SdncSimulatorJaxRs", - "host": "localhost", + "host": "0.0.0.0", "port": 6668, "https": true }, { "name": "SO simulator", "providerClass": "org.onap.policy.simulators.SoSimulatorJaxRs", - "host": "localhost", + "host": "0.0.0.0", "port": 6669, "https": true }, { "name": "VFC simulator", "providerClass": "org.onap.policy.simulators.VfcSimulatorJaxRs", - "host": "localhost", + "host": "0.0.0.0", "port": 6670, "https": true } @@ -53,41 +50,47 @@ "topicSinks": [ { "topic": "APPC-CL", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true }, { "topic": "APPC-LCM-WRITE", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true }, { "topic": "SDNR-CL", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true } ], "topicSources": [ { "topic": "APPC-CL", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true }, { "topic": "APPC-LCM-READ", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true }, { "topic": "SDNR-CL-RSP", - "servers": ["localhost"], + "servers": ["${HOST_NAME}"], "topicCommInfrastructure": "DMAAP", - "useHttps": true + "useHttps": true, + "allowSelfSignedCerts" : true } ], "topicServers": [ @@ -118,7 +121,7 @@ "timeout": 30, "username": "ccsdkapps", "password": "ccsdkapps", - "resourceLocation": "/opt/app/policy/simulators/etc/mounted/", + "resourceLocation": "/opt/app/policy/simulators/etc/mounted/", "successRepeatCount": 0, "requestedResponseDelayMs": 0 } -- cgit 1.2.3-korg