-
Bug
-
Resolution: Cannot Reproduce
-
High
-
Frankfurt Release
-
None
-
SB-00 with RC2 images
After optimization policy is created and when it is being pushed 400 bad request is returned.
Uploading Affinity Policy HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Thu, 11 Jun 2020 12:37:59 GMT X-MinorVersion: 0 X-PatchVersion: 0 X-LatestVersion: 1.0.0 X-ONAP-RequestID: e1763e61-9eef-4911-b952-1be1edd9812b Content-Type: application/json Content-Length: 652 Server: Jetty(9.4.24.v20191120) {"tosca_definitions_version":"tosca_simple_yaml_1_1_0","topology_template":{"policies":[{"OSDF_FRANKFURT.Affinity_vFW_TD":{"type":"onap.policies.optimization.resource.AffinityPolicy","type_version":"1.0.0","properties":{"scope":["OSDF_FRANKFURT","TD"],"resources":["vFW-SINK","vPGN"],"geography":["US","INTERNATIONAL"],"identity":"affinity_vFW_TD","applicableResources":"any","affinityProperties":{"qualifier":"same","category":"region"}},"name":"OSDF_FRANKFURT.Affinity_vFW_TD","version":"1.0.0","metadata":{"policy-id":"OSDF_FRANKFURT.Affinity_vFW_TD","policy-version":"1.0.0"}}}]},"name":"ToscaServiceTemplateSimple","version":"1.0.0","metadata":{}} Pushing Affinity Policy HTTP/1.1 400 Bad Request Date: Thu, 11 Jun 2020 12:38:03 GMT X-MinorVersion: 0 X-PatchVersion: 0 X-LatestVersion: 1.0.0 X-ONAP-RequestID: 76a956cf-89c0-4eaf-9857-ccc0c77990ec Content-Type: application/json Content-Length: 71 Server: Jetty(9.4.24.v20191120) {"errorDetails":"group defaultGroup subgroup xacml has no active PDPs"}
For policy upload following script is used https://github.com/onap/demo/blob/master/tutorials/vFWDT/policies/rules/uploadPolicies.sh
following this instruction https://onap-doc.readthedocs.io/projects/onap-integration/en/latest/docs_vFWDT.html#configuration-of-policies-for-optimization-framework