aboutsummaryrefslogtreecommitdiffstats
path: root/docs/platform
diff options
context:
space:
mode:
authorSaryu Shah <ss3917@att.com>2017-11-06 23:18:08 +0000
committerSaryu Shah <ss3917@att.com>2017-11-06 23:21:30 +0000
commit83f3ae3ee88b0e5b552da20950319eb7248d3021 (patch)
tree656e0283ed65baeea41079570bc4839cfd0b9f1c /docs/platform
parentd14620db60082e070ffa0d807d938836a47b26c1 (diff)
Updated policy documentation
Added PDP PAP deployment page, updated release notes, guardpolicy ------------------------------------------------------------------ Issue-Id: POLICY-335 Change-Id: Id818eafed6ad1da589b8a3c455a251f9be67218a Signed-off-by: Saryu Shah <ss3917@att.com>
Diffstat (limited to 'docs/platform')
-rwxr-xr-xdocs/platform/PolicyGUI_GuardPolicy.pngbin331839 -> 330573 bytes
-rw-r--r--docs/platform/deployPDPPAP.rst113
-rw-r--r--docs/platform/guardpolicy.rst4
-rw-r--r--docs/platform/index.rst1
4 files changed, 117 insertions, 1 deletions
diff --git a/docs/platform/PolicyGUI_GuardPolicy.png b/docs/platform/PolicyGUI_GuardPolicy.png
index 13b3e0fe9..f2065e406 100755
--- a/docs/platform/PolicyGUI_GuardPolicy.png
+++ b/docs/platform/PolicyGUI_GuardPolicy.png
Binary files differ
diff --git a/docs/platform/deployPDPPAP.rst b/docs/platform/deployPDPPAP.rst
new file mode 100644
index 000000000..2c9b77575
--- /dev/null
+++ b/docs/platform/deployPDPPAP.rst
@@ -0,0 +1,113 @@
+
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
+********************************************
+Testing, Deploying and Debugging the PDP/PAP
+********************************************
+
+.. contents::
+ :depth: 3
+
+PAP (Policy Administration Point)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Accessing and Starting PAP
+--------------------------
+
+- To access the PAP docker use
+
+.. code-block:: bash
+
+ docker exec -it -u 0 pap su - policy
+
+- All Policy related software are installed under the policy account, the policy root directory is under *${POLICY_HOME}* environment variable and it may be changed on a per installation basis. It is typically set up under the */opt/app/policy* directory but can be changed during installation. All Policy software runs with non-root privileges as *policy* is a regular user account.
+
+- Once within the PAP Container the running status can be checked using the following policy status command.
+
+.. code-block:: bash
+
+ policy [--debug] status|start|stop
+
+- To get the current status of Policy use *policy.sh status*
+
+.. code-block:: bash
+
+ policy@pap:~$ policy.sh status
+ pap: UP: running with pid 2114
+ console: UP: running with pid 2135
+ paplp: UP: running with pid 2155
+ 3 cron jobs installed.
+
+- To Stop the components use *policy.sh stop*
+
+.. code-block:: bash
+
+ policy@pap:~$ policy.sh stop
+ paplp: STOPPING ..
+ console: STOPPING ..
+ pap: STOPPING ..
+
+- To Start use *policy.sh start*
+
+.. code-block:: bash
+
+ policy@pap:~$ policy.sh start
+ pap: STARTING ..
+ console: STARTING ..
+ paplp: STARTING ..
+
+Healthcheck
+-----------
+
+- To perform Health check on policy components you can follow the generic procedure documented as below.
+
+.. code-block:: bash
+
+ # Assuming the healthcheck service credentials have not been changed
+ # post-installation within the drools container
+
+ source /opt/policy/config/drools/feature-healthcheck.conf
+
+ curl --silent --user "${HEALTHCHECK_USER}:${HEALTHCHECK_PASSWORD}"
+ -X GET http://localhost:6969/healthcheck | python -m json.tool
+
+- Additional information can be found in the documentation for Testing, Deploying, and debugging on a PDP-D Healthcheck.
+
+Logs
+----
+
+- Logs for PAP are located at *$POLICY_HOME/servers/pap/logs/* location. The main application logs can be found at *$POLICY_HOME/servers/pap/logs/Policy/ONAP-PAP-REST* location.
+- Policy PAP uses EELF logging framework for logging and if needed to be modified can be modified at *$POLICY_HOME/servers/pap/webapps/pap/WEB-INF/classes/logback.xml*. This change needs a restart of the PAP component in order to be in effect.
+- The Logs are divided into separate files and debug logs can be found in *debug.log* and error logs in *error.log* file which are two different files under application logs directory.
+
+PDP (Policy Decision Point)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Accessing and Starting PDP
+--------------------------
+
+- To access the PDP docker :
+
+.. code-block:: bash
+
+ docker exec -it -u 0 pdp su - policy
+
+- To start and stop the PDP components the same procedure can be followed as documented for PAP.
+
+.. code-block:: bash
+
+ policy [--debug] status|start|stop
+
+Healthcheck / Testing
+---------------------
+
+- The Policy PDP health check can be checked using the generic procedure documented above for PAP which applies to all policy components.
+- Apart from the above check PDP also provides the swagger UI from which PDP REST APIs which can be tested and used, this also lets us know the PDP Status. In order to access PDP's swagger UI visit http://{PDP_URL}:8081/pdp/swagger-ui.html
+- In order to test the Policy components, the swagger UI provided by PDP can be used to test PDP and PAP.
+
+
+End of Document
+
+.. SSNote: Wiki page ref. https://wiki.onap.org/pages/viewpage.action?pageId=16003633
+
diff --git a/docs/platform/guardpolicy.rst b/docs/platform/guardpolicy.rst
index 679723cbc..9dabb3040 100644
--- a/docs/platform/guardpolicy.rst
+++ b/docs/platform/guardpolicy.rst
@@ -129,6 +129,8 @@ A response containing a “PERMIT” or “DENY” in uppercase is returned as f
}
-
End of Document
+.. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Creating+and+Using+Guard+Policies
+
+
diff --git a/docs/platform/index.rst b/docs/platform/index.rst
index 61725c6fd..19866e24d 100644
--- a/docs/platform/index.rst
+++ b/docs/platform/index.rst
@@ -11,3 +11,4 @@ Policy Engine
installation.rst
policygui.rst
guardpolicy.rst
+ deployPDPPAP.rst