Issue-ID: POLICY-2515
Change-Id: I0a5845ea83af9a7b9bdaaf8016efcf11814243c3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
The main job of policy distribution component is to receive
incoming notifications, download artifacts, decode policies
from downloaded artifacts & forward the decoded policies to
The main job of policy distribution component is to receive
incoming notifications, download artifacts, decode policies
from downloaded artifacts & forward the decoded policies to
- all configured policy engines.
+ all configured policy forwarders.
are downloaded using SDC client library.The downloaded CSAR is
then given to the configured policy decoder for decoding and
generating policies. The generated policies are then forwarded
are downloaded using SDC client library.The downloaded CSAR is
then given to the configured policy decoder for decoding and
generating policies. The generated policies are then forwarded
- to all configured policy engines. Related distribution status
+ to all configured policy forwarders. Related distribution status
is sent to SDC at each step (download/deploy/done) during the
entire flow.
is sent to SDC at each step (download/deploy/done) during the
entire flow.
.. container:: ulist
- Downloaded distribution: JAVA runtime environment
.. container:: ulist
- Downloaded distribution: JAVA runtime environment
- (JRE, Java 8 or later, Distribution is tested with the
+ (JRE, Java 11, Distribution is tested with the
OpenJDK)
- Building from source: JAVA development kit (JDK,
OpenJDK)
- Building from source: JAVA development kit (JDK,
- Java 8 or later, Distribution is tested with the OpenJDK)
+ Java 11, Distribution is tested with the OpenJDK)
- Sufficient rights to install Distribution on the system
- Sufficient rights to install Distribution on the system
.. container:: paragraph
The distribution already comes with sdc reception handler,
.. container:: paragraph
The distribution already comes with sdc reception handler,
- file reception handler, xacml policy decoder, file in csar policy decoder,
- xacml policy forwarder, apex policy forwarder.
+ file reception handler, hpa optimization policy decoder, file in csar policy decoder,
+ policy lifecycle api forwarder.
General Configuration Format
----------------------------
General Configuration Format
----------------------------
- The following example loads HPA use case related plug-ins.
+ The following example loads HPA use case & general tosca policy related plug-ins.
- Generated policies are forwarded to XACML policy engine.
+ Generated policies are forwarded to policy lifecycle api's for creation & deployment.
.. container:: listingblock
.. container:: listingblock
"receptionHandlerConfigurationName":"sdcConfiguration",
"pluginHandlerParameters":{
"policyDecoders":{
"receptionHandlerConfigurationName":"sdcConfiguration",
"pluginHandlerParameters":{
"policyDecoders":{
- "CsarDecoder":{
- "decoderType":"CsarDecoder",
- "decoderClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderCsarPdpx",
+ "HpaDecoder":{
+ "decoderType":"HpaDecoder",
+ "decoderClassName":"org.onap.policy.distribution.reception.decoding.hpa.PolicyDecoderCsarHpa",
"decoderConfigurationName": "csarToOptimizationPolicyConfiguration"
"decoderConfigurationName": "csarToOptimizationPolicyConfiguration"
+ },
+ "ToscaPolicyDecoder":{
+ "decoderType":"ToscaPolicyDecoder",
+ "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy",
+ "decoderConfigurationName": "toscaPolicyDecoderConfiguration"
}
},
"policyForwarders":{
}
},
"policyForwarders":{
- "PAPEngineForwarder":{
- "forwarderType":"PAPEngine",
- "forwarderClassName":"org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpPolicyForwarder",
- "forwarderConfigurationName": "xacmlPdpConfiguration"
+ "LifeCycleApiForwarder":{
+ "forwarderType":"LifeCycleAPI",
+ "forwarderClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder",
+ "forwarderConfigurationName": "lifecycleApiConfiguration"
"keystorePassword": "null",
"activeserverTlsAuth": false,
"isFilterinEmptyResources": true,
"keystorePassword": "null",
"activeserverTlsAuth": false,
"isFilterinEmptyResources": true,
- "isUseHttpsWithDmaap": false
+ "isUseHttpsWithDmaap": true
}
}
},
"policyDecoderConfigurationParameters":{
"csarToOptimizationPolicyConfiguration":{
}
}
},
"policyDecoderConfigurationParameters":{
"csarToOptimizationPolicyConfiguration":{
- "parameterClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderCsarPdpxConfigurationParameterGroup",
+ "parameterClassName":"org.onap.policy.distribution.reception.decoding.hpa.PolicyDecoderCsarHpaParameters",
"parameters":{
"policyNamePrefix": "oofCasablanca",
"onapName": "OOF",
"parameters":{
"policyNamePrefix": "oofCasablanca",
"onapName": "OOF",
"riskType": "Test",
"riskLevel": "2"
}
"riskType": "Test",
"riskLevel": "2"
}
+ },
+ "toscaPolicyDecoderConfiguration":{
+ "parameterClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicyParameterGroup",
+ "parameters":{
+ "policyFileName": "tosca_policy",
+ "policyTypeFileName": "tosca_policy_type"
+ }
}
},
"policyForwarderConfigurationParameters":{
}
},
"policyForwarderConfigurationParameters":{
- "xacmlPdpConfiguration":{
- "parameterClassName":"org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpPolicyForwarderParameterGroup",
- "parameters":{
- "useHttps": false,
- "hostname": "pdp",
- "port": 8081,
- "userName": "testpdp",
- "password": "alpha123",
- "clientAuth": "cHl0aG9uOnRlc3Q=",
- "isManaged": true,
- "pdpGroup": "pdpGroup"
+ "lifecycleApiConfiguration": {
+ "parameterClassName": "org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters",
+ "parameters": {
+ "apiParameters": {
+ "hostName": "policy-api",
+ "port": 6969,
+ "userName": "healthcheck",
+ "password": "zb!XztG34"
+ },
+ "papParameters": {
+ "hostName": "policy-pap",
+ "port": 6969,
+ "userName": "healthcheck",
+ "password": "zb!XztG34"
+ },
+ "isHttps": true,
+ "deployPolicies": true