+ ==> v1beta1/Deployment
+ NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
+ dev-dmaap-bus-controller 1 1 1 1 2d
+ dev-message-router-kafka 1 1 1 1 2d
+ dev-message-router-zookeeper 1 1 1 1 2d
+ dev-message-router 1 1 1 1 2d
+ dev-kube2msb 1 1 1 1 2d
+ dev-msb-consul 1 1 1 1 2d
+ dev-msb-discovery 1 1 1 1 2d
+ dev-msb-eag 1 1 1 1 2d
+ dev-msb-iag 1 1 1 1 2d
+ dev-brmsgw 1 1 1 1 2d
+ dev-nexus 1 1 1 1 2d
+ dev-policydb 1 1 1 1 2d
+ dev-pap 1 1 1 1 2d
+ dev-robot 1 1 1 1 2d
+
+ ==> v1beta1/StatefulSet
+ NAME DESIRED CURRENT AGE
+ dev-dbc-pg 2 2 2d
+ dev-drools 1 1 2d
+ dev-pdp 2 2 2d
+
+ ==> v1/PersistentVolumeClaim
+ NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
+ dev-message-router-kafka Bound dev-message-router-kafka 2Gi RWX 2d
+ dev-message-router-zookeeper Bound dev-message-router-zookeeper 2Gi RWX 2d
+ dev-nexus Bound dev-nexus 2Gi RWX 2d
+ dev-policydb Bound dev-policydb 2Gi RWX 2d
+
+ ==> v1/ConfigMap
+ NAME DATA AGE
+ dev-dmaap-bus-controller-config 1 2d
+ dev-message-router-cadi-prop-configmap 1 2d
+ dev-message-router-msgrtrapi-prop-configmap 1 2d
+ dev-msb-discovery 1 2d
+ dev-msb-eag 1 2d
+ dev-msb-iag 1 2d
+ dev-brmsgw-pe-configmap 2 2d
+ dev-drools-configmap 6 2d
+ dev-drools-log-configmap 1 2d
+ dev-drools-settings-configmap 1 2d
+ dev-policydb-configmap 1 2d
+ dev-pdp-log-configmap 1 2d
+ dev-pdp-pe-configmap 3 2d
+ dev-pe-scripts-configmap 1 2d
+ dev-filebeat-configmap 1 2d
+ dev-pe-configmap 1 2d
+ dev-pap-pe-configmap 7 2d
+ dev-pap-sdk-log-configmap 1 2d
+ dev-pap-log-configmap 1 2d
+ dev-robot-resources-configmap 3 2d
+ dev-robot-lighttpd-authorization-configmap 1 2d
+ dev-robot-eteshare-configmap 4 2d
+
+ ==> v1/PersistentVolume
+ NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
+ dev-dbc-pg-data0 1Gi RWO Retain Bound onap/dev-dbc-pg-data-dev-dbc-pg-0 dev-dbc-pg-data 2d
+ dev-dbc-pg-data1 1Gi RWO Retain Bound onap/dev-dbc-pg-data-dev-dbc-pg-1 dev-dbc-pg-data 2d
+ dev-message-router-kafka 2Gi RWX Retain Bound onap/dev-message-router-kafka 2d
+ dev-message-router-zookeeper 2Gi RWX Retain Bound onap/dev-message-router-zookeeper 2d
+ dev-nexus 2Gi RWX Retain Bound onap/dev-nexus 2d
+ dev-policydb 2Gi RWX Retain Bound onap/dev-policydb 2d
+
+ ==> v1beta1/ClusterRoleBinding
+ NAME AGE
+ onap-binding 2d
+
+ ==> v1/Pod(related)
+ NAME READY STATUS RESTARTS AGE
+ dev-dmaap-bus-controller-5bd859c7dc-blzdc 1/1 Running 0 2d
+ dev-message-router-kafka-748cdf7b9c-srv7l 1/1 Running 0 2d
+ dev-message-router-zookeeper-5b5969f6f-8rk9w 1/1 Running 0 2d
+ dev-message-router-b5bdc599c-5h56k 1/1 Running 0 2d
+ dev-kube2msb-579fc77c54-m84qx 1/1 Running 0 2d
+ dev-msb-consul-7bc4fcc8-94gsc 1/1 Running 0 2d
+ dev-msb-discovery-768547bcb-2hr7j 2/2 Running 0 2d
+ dev-msb-eag-5d95686c67-9lkzs 2/2 Running 0 2d
+ dev-msb-iag-675b649848-pv2gh 2/2 Running 0 2d
+ dev-brmsgw-5675f5877b-wv68s 1/1 Running 0 2d
+ dev-nexus-7d96568f5f-m8c4l 1/1 Running 0 2d
+ dev-policydb-587d55bdff-9gdjv 1/1 Running 0 2d
+ dev-pap-678b44cd87-wxbww 2/2 Running 0 2d
+ dev-robot-589c76bb6b-hrrdn 1/1 Running 0 2d
+ dev-dbc-pg-0 1/1 Running 0 2d
+ dev-dbc-pg-1 1/1 Running 0 2d
+ dev-drools-0 1/1 Running 1 2d
+ dev-pdp-0 2/2 Running 1 2d
+ dev-pdp-1 0/2 Init:0/1 0 0s
+
+ ==> v1/Secret
+ NAME TYPE DATA AGE
+ dev-dbc-pg Opaque 3 2d
+ dev-message-router-secret Opaque 1 2d
+ dev-drools-secret Opaque 2 2d
+ dev-policydb-secret Opaque 2 2d
+ onap-docker-registry-key kubernetes.io/dockercfg 1 2d
+
+
+Check Policy Engine UI how the PDP-Xs are coming up and request policies to the PAP.
+
+Eventually the new PDP-X will be connected and serving policies:
+
+ .. image:: srmPdpxScalingPdpMgmt1.png
+
+The new PDP-X should be now ready to serve policies:
+
+.. code-block:: bash
+ :caption: Check that the new PDP-X 3 and 4 can serve policies
+
+ ubuntu@k8sx:~/oom/kubernetes$ curl --silent -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{"policyName": ".*vCPE.*"}' http://10.42.183.0:8081/pdp/api/getConfig | python -m json.tool
+ [
+ {
+ "config": ..
+ "matchingConditions": {
+ "ConfigName": "BRMS_PARAM_RULE",
+ "ONAPName": "DROOLS"
+ },
+ "policyConfigMessage": "Config Retrieved! ",
+ "policyConfigStatus": "CONFIG_RETRIEVED",
+ "policyName": "com.Config_BRMS_Param_BRMSParamvCPE.1.xml",
+ "policyType": "BRMS_PARAM",
+ "policyVersion": "1",
+ "property": null,
+ "responseAttributes": {
+ "controller": "amsterdam"
+ },
+ "type": "OTHER"
+ },
+ {
+ "config": "{\"service\":\"tca_policy\",\"location\":\"SampleServiceLocation\",\"uuid\":\"test\",\"policyName\":\"MicroServicevCPE\",\"description\":\"MicroService vCPE Policy\",\"configName\":\"SampleConfigName\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"1.1.0\",\"priority\":\"1\",\"policyScope\":\"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"riskType\":\"SampleRiskType\",\"riskLevel\":\"1\",\"guard\":\"False\",\"content\":{\"tca_policy\":{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}}}",
+ "matchingConditions": {
+ "ConfigName": "SampleConfigName",
+ "Location": "SampleServiceLocation",
+ "ONAPName": "DCAE",
+ "service": "tca_policy",
+ "uuid": "test"
+ },
+ "policyConfigMessage": "Config Retrieved! ",
+ "policyConfigStatus": "CONFIG_RETRIEVED",
+ "policyName": "com.Config_MS_MicroServicevCPE.1.xml",
+ "policyType": "MicroService",
+ "policyVersion": "1",
+ "property": null,
+ "responseAttributes": {},
+ "type": "JSON"
+ }
+ ]
+
+
+ ubuntu@k8sx:~/oom/kubernetes$ curl --silent -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{"policyName": ".*vCPE.*"}' http://10.42.137.241:8081/pdp/api/getConfig | python -m json.tool
+ [
+ {
+ "config": "{\"service\":\"tca_policy\",\"location\":\"SampleServiceLocation\",\"uuid\":\"test\",\"policyName\":\"MicroServicevCPE\",\"description\":\"MicroService vCPE Policy\",\"configName\":\"SampleConfigName\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"1.1.0\",\"priority\":\"1\",\"policyScope\":\"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"riskType\":\"SampleRiskType\",\"riskLevel\":\"1\",\"guard\":\"False\",\"content\":{\"tca_policy\":{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}}}",
+ "matchingConditions": {
+ "ConfigName": "SampleConfigName",
+ "Location": "SampleServiceLocation",
+ "ONAPName": "DCAE",
+ "service": "tca_policy",
+ "uuid": "test"
+ },
+ "policyConfigMessage": "Config Retrieved! ",
+ "policyConfigStatus": "CONFIG_RETRIEVED",
+ "policyName": "com.Config_MS_MicroServicevCPE.1.xml",
+ "policyType": "MicroService",
+ "policyVersion": "1",
+ "property": null,
+ "responseAttributes": {},
+ "type": "JSON"
+ },
+ {
+ "config": ...
+ "ConfigName": "BRMS_PARAM_RULE",
+ "ONAPName": "DROOLS"
+ },
+ "policyConfigMessage": "Config Retrieved! ",
+ "policyConfigStatus": "CONFIG_RETRIEVED",
+ "policyName": "com.Config_BRMS_Param_BRMSParamvCPE.1.xml",
+ "policyType": "BRMS_PARAM",
+ "policyVersion": "1",
+ "property": null,
+ "responseAttributes": {
+ "controller": "amsterdam"
+ },
+ "type": "OTHER"
+ }
+ ]