From: a.sreekumar Date: Tue, 6 Oct 2020 17:13:47 +0000 (+0100) Subject: Fixing policy-models-simulator helm issues X-Git-Tag: 2.2.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F113579%2F3;p=policy%2Fdocker.git 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 --- 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 }