-
Bug
-
Resolution: Done
-
Medium
-
Dublin Release
-
None
-
None
When the commands to delete policies are run, it shows the following output;
Data Issue: Policy does not exist on the PDP - xml
However, on doing a list to verify the policies present, it is clear that the policy I tried to delete actually exist on the PDP
I am currently running on the OOF tenant in the WindRiver lab. The commands I run are below;
DELETE POLICY INSIDE PDP
curl -k -v -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ClientAuth: cHl0aG9uOnRlc3Q=' \
-H 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' \
-H 'Environment: TEST' \
-X DELETE \
-d '{"policyName": "OSDF_CASABLANCA.Config_MS_Distance_vFWHPA_1.1.xml","policyComponent":"PDP","policyType":"MicroService","pdpGroup":"default"}' https://pdp:8081/pdp/api/deletePolicy
Error: PE300 - Data Issue: Policy does not exist on the PDP - xml
Command to view all the policies (this confirms that the policies exist)
curl -k -v -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'ClientAuth: cHl0aG9uOnRlc3Q=' -H 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' -H 'Environment: TEST' -X POST -d '{"policyName": "OSDF_CASABLANCA.*", "configAttributes": {"policyScope": "us"}}' 'https://pdp:8081/pdp/api/getConfig' | python -m json.tool