Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-727

logging changes prevent brmsgw, paplp, and pdplp to come up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Beijing Release
    • Beijing Release
    • None
    • windriver

      BRMSGW :

      running it manually:

      policy@brmsgw:/opt/app/policy/etc/init.d$ ./brmsgw start
      ./brmsgw: line 51: /var/log/onap/policy/brmsgw/brmsgw.log: No such file or directory
      policy@brmsgw:/opt/app/policy/etc/init.d$ ps -ef | grep java

      shows missing directory -

      creating the directory and running again, seems to do the trick:

      policy@brmsgw:/opt/app/policy/etc/init.d$ ps -ef | grep java
      policy 1029 0 34 14:32 ? 00:00:02 /usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar -Xms1024M -Xmx1024M -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9989 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djavax.net.ssl.keyStore=/opt/app/policy/etc/ssl/policy-keystore -Djavax.net.ssl.keyStorePassword=Pol1cy_0nap -Djavax.net.ssl.trustStore=/opt/app/policy/etc/ssl/policy-keystore -Djavax.net.ssl.trustStorePassword=Pol1cy_0nap /opt/app/policy/servers/brmsgw/BRMSGateway.jar
      policy@brmsgw:/opt/app/policy/etc/init.d${color}

       

      PAPLP :

      There a couple problems :

      1. The following directory needs to be created:
         mkdir -p /var/log/onap/policy/paplp
      2. The etc/init.d/paplp has a bug - it uses POLICY_LOG and must be changes to POLICY_LOGS

       

      PDPLP:

      The exact same changes I made and is working ..

       

      See after changes all OK:

      root@onap-policy:~# curl --silent --user 'healthcheck:zb!XztG34' GET http://localhost:6969/healthcheck | python -m json.tool
      {
      "details": [
      {
      "code": 200,
      "healthy": true,
      "message": "alive",
      "name": "PDP-D",
      "url": "self"
      },
      {
      "code": 200,
      "healthy": true,
      "message": "",
      "name": "PAP",
      "url": "http://pap:9091/pap/test"
      },
      {
      "code": 200,
      "healthy": true,
      "message": "",
      "name": "PDP",
      "url": "http://pdp:8081/pdp/test"
      }
      ],
      "healthy": true
      }

            jc2555 jc2555
            jhh jhh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: