-
Task
-
Resolution: Done
-
Low
-
El Alto Release
-
None
-
Policy Apex PDP Latest (2.3.0)
Local environment (not in open labs)
Trying to install and test Apex PDP in standalone mode
Followed the documentation here
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/" />