This page describes the changes that will be made to REST API's exposed by PAP (Policy Administration Component) in Honolulu release of ONAP.
POLICY-2526 : Policy deployment API will be enhanced to reflect actual policy deployment status in PDPs
Policy deployment API in PAP is implemented to return 200 response code if the initial checks in PAP are successful and a relevant PDP_UPDATE message is added to the dmaap topic for PDP's to consume. This way in case of error while performing the deployment in PDP engine, the client might still have the perception that the policy deployment went fine.
Hence, the deployment API needs to be enhanced to reflect actual policy deployment status in PDP engine.
Proposed Solution
Change the following API's to return "202 Accepted" instead of "200 Success":
- Deployment Update - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deployments%20Update
- Deploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deploy%20Policy
- Undeploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Undeploy%20Policy
Add the following API's to return the actual deployment or undeployment status:
- Swagger file for the new API's - deployed-policy-status-pap.json
POLICY-2896 : Improve consolidated health check to include dependencies
Improve the consolidated health check API in PAP to also include the health check of dependencies - PolicyDB, DMaaP.
So that by running the consolidated heath check a user can determine if Policy Framework components and the related runtime dependencies are working fine.
Proposed Solution
Change the following API to include the health check for PolicyDB & DMaaP in the returned response:
- Consolidated health check - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Consolidated%20Healthcheck
Swagger file showing the change - consolidated-healthcheck-pap.json