You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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-2526Policy 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":

  1. Deployment Update - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deployments%20Update
  2. Deploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deploy%20Policy
  3. Undeploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Undeploy%20Policy

Change the following API's to return the actual deployment or undeployment status:

  1. Policy Deployment Status - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Policy%20Deployment%20Status

Swagger file showing the change - deployed-policy-status-pap.json

POLICY-2896Improve 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:

  1. 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




  • No labels