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

Policy Apex Rest-Editor host hard coded , Docker permission issues

    Details

    • Type: Task
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: El Alto Release
    • Fix Version/s: Frankfurt Release
    • Labels:
    • Environment:

      Policy Apex PDP Latest (2.3.0) 

      Local environment (not in open labs) 

      Trying to install and test Apex PDP in standalone mode

      Description

      Followed the documentation here 

      https://docs.onap.org/en/dublin/submodules/policy/apex-pdp.git/docs/APEX-User-Manual.html#running-apex-in-docker

      Found couple of issues with the docker run of apex-pdp 

      1) The configuration files in /opt/app/policy/apex-pdp/config (for logs etc) are not editable 

      2) For rest-editor host is hardcoded as localhost and by default listening on 127.0.0.1 , not able to access from outside docker container through port mapping (-p 18989:18989) . Found the port and host are hardcoded here - https://gerrit.onap.org/r/gitweb?p=policy/apex-pdp.git;a=blob;f=client/client-editor/src/main/java/org/onap/policy/apex/client/editor/rest/ApexEditorParameters.java;hb=c66ebba1fd4fb6365d17e3ed125bfde32913cd00

      (Should it be marked as 0.0.0.0 instead of localhost ?) 

      3) Build documentation - it is mentioned that 'mvn clean install -DskipTests' is sufficient , but this may not create the tar ball apex-pdp-package-full.tar.gz required for image build. Clarification required on whether -Pdocker profile need to be specified in maven build 

      4) In documentation - https://docs.onap.org/en/dublin/submodules/policy/apex-pdp.git/docs/APEX-User-Manual.html#environment-settings-apex-home-and-apex-user,

      Following property is not found 

      <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />

      This should be changed as 

      <property name="logDir" value="/var/log/onap/policy/apex-pdp/" />

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              liamfallon Liam Fallon
              Reporter:
              mknair75 Manoj Nair
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: