Fixing policy-models-simulator helm issues 79/113579/3
authora.sreekumar <ajith.sreekumar@bell.ca>
Tue, 6 Oct 2020 17:13:47 +0000 (18:13 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Wed, 7 Oct 2020 09:23:12 +0000 (10:23 +0100)
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 <ajith.sreekumar@bell.ca>
helm/policy-models-simulator/resources/config/simParameters.json

index 5bb67e7..7408ade 100644 (file)
@@ -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
         }
     "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": [
         "timeout": 30,
         "username": "ccsdkapps",
         "password": "ccsdkapps",
-             "resourceLocation": "/opt/app/policy/simulators/etc/mounted/",
+        "resourceLocation": "/opt/app/policy/simulators/etc/mounted/",
         "successRepeatCount": 0,
         "requestedResponseDelayMs": 0
     }