Manual Deployment ================= cfy install -b tca-clamppolicy -d tca-clamppolicy -i /blueprints/k8s-tca-inputs-policy.yaml /blueprints/k8s-tca-clamppolicy.yaml Uploading blueprint /blueprints/k8s-tca-clamppolicy.yaml... k8s-tca-clamppoli... |################################################| 100.0% Blueprint uploaded. The blueprint's id is tca-clamppolicy Creating new deployment from blueprint tca-clamppolicy... Deployment created. The deployment's id is tca-clamppolicy Executing workflow install on deployment tca-clamppolicy [timeout=900 seconds] Deployment environment creation is pending... 2019-05-07 19:11:40.201 CFY Starting 'create_deployment_environment' workflow execution 2019-05-07 19:11:40.863 CFY Installing deployment plugins 2019-05-07 19:11:40.863 CFY Sending task 'cloudify_agent.operations.install_plugins' 2019-05-07 19:11:40.863 CFY Task started 'cloudify_agent.operations.install_plugins' 2019-05-07 19:11:41.491 LOG INFO: Installing plugin: k8s 2019-05-07 19:11:42.228 LOG INFO: Using existing installation of managed plugin: 6bd588d9-508d-4e69-b3c6-a97b60fe2164 [package_name: k8splugin, package_version: 1.4.12, supported_platform: linux_x86_64, distribution: centos, distribution_release: core] 2019-05-07 19:11:42.228 LOG INFO: Installing plugin: dcaepolicy 2019-05-07 19:11:42.815 LOG INFO: Using existing installation of managed plugin: 75688105-59db-4f1a-802c-6ae96c1db571 [package_name: dcaepolicyplugin, package_version: 2.3.0, supported_platform: any] 2019-05-07 19:11:42.815 CFY Task succeeded 'cloudify_agent.operations.install_plugins' 2019-05-07 19:11:42.815 CFY Skipping starting deployment policy engine core - no policies defined 2019-05-07 19:11:43.587 CFY Creating deployment work directory 2019-05-07 19:11:43.587 CFY 'create_deployment_environment' workflow execution succeeded 2019-05-07 19:11:49.085 CFY Starting 'install' workflow execution 2019-05-07 19:11:51.214 CFY [tca_policy_jwu0r9] Creating node instance 2019-05-07 19:11:51.866 CFY [tca_policy_jwu0r9.create] Sending task 'dcaepolicyplugin.policy_get' 2019-05-07 19:11:54.826 LOG [tca_policy_jwu0r9.create] INFO: getting service_url at http://consul:8500/v1/catalog/service/policy_handler 2019-05-07 19:11:55.470 LOG [tca_policy_jwu0r9.create] INFO: got 200 for service_url at http://consul:8500/v1/catalog/service/policy_handler response: [{"ID":"19deb0f8-d998-70e5-3cb0-57209e27623f","Node":"dcae-bootstrap","Address":"10.42.11.6","Datacenter":"dc1","TaggedAddresses":{"lan":"10.42.11.6","wan":"10.42.11.6"},"NodeMeta":{"consul-network-segment":""},"ServiceID":"dcae-ph0","ServiceName":"policy_handler","ServiceTags":[],"ServiceAddress":"policy-handler","ServicePort":25577,"ServiceEnableTagOverride":false,"CreateIndex":602,"ModifyIndex":602}] 2019-05-07 19:11:55.470 LOG [tca_policy_jwu0r9.create] INFO: getting latest policy from http://policy-handler:25577/policy_latest/onap.restart.tca headers={"X-ECOMP-RequestID": "d411ff17-847e-48f5-86e1-38d57eccf0a5"} 2019-05-07 19:11:55.470 LOG [tca_policy_jwu0r9.create] INFO: found policy onap.restart.tca: {"policy_body": {"policyName": "onap.restart.tca.1.xml", "name": "onap.restart.tca", "config": {"tca_policy": {"domain": "measurementsForVfScaling", "metricsPerEventName": [{"policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [{"direction": "EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ABATED", "thresholdValue": 0.0}, {"direction": "GREATER", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 0.0}], "eventName": "Measurement_vGMUX", "controlLoopSchemaType": "VNF", "policyVersion": "v0.0.1"}]}}, "type_version": "1.0.0", "version": "1.0.0", "policyVersion": "1", "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "metadata": {"policy-id": "onap.restart.tca", "policy-version": "1"}}, "policy_id": "onap.restart.tca"} 2019-05-07 19:11:55.470 LOG [tca_policy_jwu0r9.create] INFO: latest policy for policy_id(onap.restart.tca) status(200) response: {"policy_id": "onap.restart.tca", "policy_body": {"type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "type_version": "1.0.0", "name": "onap.restart.tca", "version": "1.0.0", "metadata": {"policy-id": "onap.restart.tca", "policy-version": "1"}, "policyName": "onap.restart.tca.1.xml", "policyVersion": "1", "config": {"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.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.0, "direction": "GREATER", "severity": "CRITICAL", "closedLoopEventStatus": "ONSET"}]}]}}}} 2019-05-07 19:11:55.470 LOG [tca_policy_jwu0r9.create] INFO: exit policy_get 2019-05-07 19:11:56.175 CFY [tca_policy_jwu0r9.create] Task succeeded 'dcaepolicyplugin.policy_get' 2019-05-07 19:11:56.703 CFY [tca_policy_jwu0r9] Node instance created 2019-05-07 19:11:56.703 CFY [tca_policy_jwu0r9] Configuring node instance: nothing to do 2019-05-07 19:11:56.703 CFY [tca_policy_jwu0r9] Starting node instance: nothing to do 2019-05-07 19:11:57.436 CFY [tca_policy_jwu0r9] Node instance started 2019-05-07 19:11:58.884 CFY [tca_k8s_zk08d4] Creating node instance 2019-05-07 19:11:59.581 CFY [tca_k8s_zk08d4.create] Sending task 'k8splugin.create_for_components' 2019-05-07 19:12:04.881 LOG [tca_k8s_zk08d4.create] INFO: Added config for sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca 2019-05-07 19:12:05.386 LOG [tca_k8s_zk08d4.create] INFO: Done setting up: sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca 2019-05-07 19:12:05.386 LOG [tca_k8s_zk08d4.create] INFO: response 200 for store_policies http://consul:8500/v1/txn: text={"Results":[{"KV":{"LockIndex":0,"Key":"sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca:policies/event","Flags":0,"Value":null,"CreateIndex":318777,"ModifyIndex":318777}},{"KV":{"LockIndex":0,"Key":"sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca:policies/items/onap.restart.tca","Flags":0,"Value":null,"CreateIndex":318777,"ModifyIndex":318777}}],"Errors":null} txn=[{"KV": {"Verb": "delete-tree", "Key": "sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca:policies/"}}, {"KV": {"Verb": "set", "Value": "eyJhY3Rpb24iOiAiZ2F0aGVyZWQiLCAidGltZXN0YW1wIjogIjIwMTktMDUtMDdUMTk6MTI6MDQuODIxWiIsICJ1cGRhdGVfaWQiOiAiNDBlZWZlZGQtZDYxYi00MGU0LTgyODEtMzc4ZTY2N2MyOWNjIiwgInBvbGljaWVzX2NvdW50IjogMX0=", "Key": "sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca:policies/event"}}, {"KV": {"Verb": "set", "Value": "eyJwb2xpY3lOYW1lIjogIm9uYXAucmVzdGFydC50Y2EuMS54bWwiLCAibmFtZSI6ICJvbmFwLnJlc3RhcnQudGNhIiwgImNvbmZpZyI6IHsidGNhX3BvbGljeSI6IHsiZG9tYWluIjogIm1lYXN1cmVtZW50c0ZvclZmU2NhbGluZyIsICJtZXRyaWNzUGVyRXZlbnROYW1lIjogW3sicG9saWN5TmFtZSI6ICJEQ0FFLkNvbmZpZ190Y2EtaGktbG8iLCAicG9saWN5U2NvcGUiOiAiRENBRSIsICJ0aHJlc2hvbGRzIjogW3siZGlyZWN0aW9uIjogIkVRVUFMIiwgInNldmVyaXR5IjogIk1BSk9SIiwgImNsb3NlZExvb3BDb250cm9sTmFtZSI6ICJDb250cm9sTG9vcC12Q1BFLTQ4ZjBjMmMzLWExNzItNDE5Mi05YWUzLTA1MjI3NDE4MWI2ZSIsICJmaWVsZFBhdGgiOiAiJC5ldmVudC5tZWFzdXJlbWVudHNGb3JWZlNjYWxpbmdGaWVsZHMuYWRkaXRpb25hbE1lYXN1cmVtZW50c1sqXS5hcnJheU9mRmllbGRzWzBdLnZhbHVlIiwgInZlcnNpb24iOiAiMS4wLjIiLCAiY2xvc2VkTG9vcEV2ZW50U3RhdHVzIjogIkFCQVRFRCIsICJ0aHJlc2hvbGRWYWx1ZSI6IDAuMH0sIHsiZGlyZWN0aW9uIjogIkdSRUFURVIiLCAic2V2ZXJpdHkiOiAiQ1JJVElDQUwiLCAiY2xvc2VkTG9vcENvbnRyb2xOYW1lIjogIkNvbnRyb2xMb29wLXZDUEUtNDhmMGMyYzMtYTE3Mi00MTkyLTlhZTMtMDUyMjc0MTgxYjZlIiwgImZpZWxkUGF0aCI6ICIkLmV2ZW50Lm1lYXN1cmVtZW50c0ZvclZmU2NhbGluZ0ZpZWxkcy5hZGRpdGlvbmFsTWVhc3VyZW1lbnRzWypdLmFycmF5T2ZGaWVsZHNbMF0udmFsdWUiLCAidmVyc2lvbiI6ICIxLjAuMiIsICJjbG9zZWRMb29wRXZlbnRTdGF0dXMiOiAiT05TRVQiLCAidGhyZXNob2xkVmFsdWUiOiAwLjB9XSwgImV2ZW50TmFtZSI6ICJNZWFzdXJlbWVudF92R01VWCIsICJjb250cm9sTG9vcFNjaGVtYVR5cGUiOiAiVk5GIiwgInBvbGljeVZlcnNpb24iOiAidjAuMC4xIn1dfX0sICJ0eXBlX3ZlcnNpb24iOiAiMS4wLjAiLCAidmVyc2lvbiI6ICIxLjAuMCIsICJwb2xpY3lWZXJzaW9uIjogIjEiLCAidHlwZSI6ICJvbmFwLnBvbGljaWVzLm1vbml0b3JpbmcuY2RhcC50Y2EuaGkubG8uYXBwIiwgIm1ldGFkYXRhIjogeyJwb2xpY3ktaWQiOiAib25hcC5yZXN0YXJ0LnRjYSIsICJwb2xpY3ktdmVyc2lvbiI6ICIxIn19", "Key": "sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca:policies/items/onap.restart.tca"}}] 2019-05-07 19:12:06.071 CFY [tca_k8s_zk08d4.create] Task succeeded 'k8splugin.create_for_components' 2019-05-07 19:12:06.071 CFY [tca_k8s_zk08d4] Node instance created 2019-05-07 19:12:06.902 CFY [tca_k8s_zk08d4] Configuring node instance: nothing to do 2019-05-07 19:12:07.522 CFY [tca_k8s_zk08d4] Starting node instance 2019-05-07 19:12:08.217 CFY [tca_k8s_zk08d4.start] Sending task 'k8splugin.create_and_start_container_for_components' 2019-05-07 19:12:10.521 LOG [tca_k8s_zk08d4.start] INFO: Passing k8sconfig: {'tls': {u'cert_path': u'/opt/tls/shared', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:1.0-STAGING-latest'}, 'filebeat': {u'config_map': u'dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'consul_dns_name': u'consul-server.onap', 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap', 'consul_host': 'consul-server:8500', 'default_k8s_location': u'central'} 2019-05-07 19:12:09.845 LOG [tca_k8s_zk08d4.start] INFO: Starting k8s deployment for sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca, image: 10.12.5.2:5000/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.1, env: {'CONSUL_HOST': u'consul-server.onap', u'DMAAPSUBTOPIC': u'unauthenticated.VES_MEASUREMENT_OUTPUT', u'AAIHOST': u'aai.onap.svc.cluster.local', 'CONFIG_BINDING_SERVICE': u'config_binding_service', u'CBS_HOST': u'config-binding-service', u'DMAAPPORT': u'3904', 'SERVICE_TAGS': 'tca-clamppolicy', u'CBS_PORT': u'10000', u'DMAAPHOST': u'message-router.onap', u'CONSUL_PORT': u'8500', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_CL_OUTPUT', u'AAIPORT': u'8443'}, kwargs: {'readiness': {}, 'labels': {'cfydeployment': u'tca-clamppolicy', 'cfynodeinstance': u'tca_k8s_zk08d4', 'cfynode': u'tca_k8s'}, 'tls_info': {}, 'envs': {u'CONSUL_HOST': u'consul-server.onap', u'DMAAPSUBTOPIC': u'unauthenticated.VES_MEASUREMENT_OUTPUT', u'AAIHOST': u'aai.onap.svc.cluster.local', u'CONSUL_PORT': u'8500', u'CONFIG_BINDING_SERVICE': u'config_binding_service', u'CBS_HOST': u'config-binding-service', u'DMAAPPORT': u'3904', 'SERVICE_TAGS': 'tca-clamppolicy', u'CBS_PORT': u'10000', u'DMAAPHOST': u'message-router.onap', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_CL_OUTPUT', u'AAIPORT': u'8443'}, 'liveness': {}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/TCAnalytics/logs'}, 'ports': [u'11011:32012'], 'k8s_location': u'central'} 2019-05-07 19:12:10.521 LOG [tca_k8s_zk08d4.start] INFO: k8s deployment initiated successfully for sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca: {'services': ['sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca', 'xsb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca'} 2019-05-07 19:12:10.521 LOG [tca_k8s_zk08d4.start] INFO: Waiting up to 1800 secs for sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca to become ready 2019-05-07 19:12:19.408 LOG [tca_k8s_zk08d4.start] INFO: k8s deployment is ready for: sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca 2019-05-07 19:12:19.933 LOG [tca_k8s_zk08d4.start] INFO: Done starting: sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca 2019-05-07 19:12:20.448 CFY [tca_k8s_zk08d4.start] Task succeeded 'k8splugin.create_and_start_container_for_components' 2019-05-07 19:12:20.448 CFY [tca_k8s_zk08d4] Node instance started 2019-05-07 19:12:21.231 CFY 'install' workflow execution succeeded Finished executing workflow install on deployment tca-clamppolicy * Run 'cfy events list -e 4c8abc6a-8d1f-49ac-ad0d-2aa3a4cbfa0d' to retrieve the execution's events/logs PolicyHandler Logs ================== 20190507_191154.740 INFO CP Server Thread-10 policy_handler.web_server.policy_latest: GET /policy_latest/onap.restart.tca policy_id=onap.restart.tca headers={"Remote-Addr": "10.42.14.8", "Host": "policy-handler:25577", "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "Accept": "*/*", "User-Agent": "python-requests/2.21.0", "X-Ecomp-Requestid": "d411ff17-847e-48f5-86e1-38d57eccf0a5"} 20190507_191154.740 INFO CP Server Thread-10 policy_handler.pdp_api.policy_rest._pdp_get_decision: post to policy_engine at https://policy-xacml-pdp:6969/policy/pdpx/v1/decision msg={"ONAPName": "DCAE", "ONAPComponent": "policy_handler", "ONAPInstance": "fb6c4ab5-5722-4547-a43d-c2a83082b8b6", "action": "configure", "resource": {"policy-id": ["onap.restart.tca"]}} headers={"Accept": "application/json", "Content-Type": "application/json", "ClientAuth": "*", "Authorization": "*", "Environment": "TEST", "X-ECOMP-RequestID": "d411ff17-847e-48f5-86e1-38d57eccf0a5"}, custom_kwargs({"verify": "/opt/app/policy_handler/etc/tls/certs/cacert.pem"}) timeout_in_secs(60) 20190507_191154.771 DEBUG CP Server Thread-10 urllib3.connectionpool._get_conn: Resetting dropped connection: policy-xacml-pdp 20190507_191154.928 DEBUG CP Server Thread-10 urllib3.connectionpool._make_request: https://policy-xacml-pdp:6969 "POST /policy/pdpx/v1/decision HTTP/1.1" 200 1066 20190507_191154.929 INFO CP Server Thread-10 policy_handler.pdp_api.policy_rest._pdp_get_decision: response 200 from post to policy_engine at https://policy-xacml-pdp:6969/policy/pdpx/v1/decision msg={"ONAPName": "DCAE", "ONAPComponent": "policy_handler", "ONAPInstance": "fb6c4ab5-5722-4547-a43d-c2a83082b8b6", "action": "configure", "resource": {"policy-id": ["onap.restart.tca"]}} headers={"Accept": "application/json", "Content-Type": "application/json", "ClientAuth": "*", "Authorization": "*", "Environment": "TEST", "X-ECOMP-RequestID": "d411ff17-847e-48f5-86e1-38d57eccf0a5"}, custom_kwargs({"verify": "/opt/app/policy_handler/etc/tls/certs/cacert.pem"}) timeout_in_secs(60): text={"policies":{"onap.restart.tca":{"type":"onap.policies.monitoring.cdap.tca.hi.lo.app","type_version":"1.0.0","properties":{"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.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.0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}},"name":"onap.restart.tca","version":"1.0.0","metadata":{"policy-id":"onap.restart.tca","policy-version":"1"}}}} headers={"User-Agent": "python-requests/2.21.0", "Accept-Encoding": "gzip, deflate", "Accept": "application/json", "Connection": "keep-alive", "Content-Type": "application/json", "ClientAuth": "*", "Authorization": "*", "Environment": "TEST", "X-ECOMP-RequestID": "d411ff17-847e-48f5-86e1-38d57eccf0a5", "Content-Length": "183"} 20190507_191154.933 INFO CP Server Thread-10 policy_handler.pdp_api.policy_rest.get_latest_policy: looking for policy_id(onap.restart.tca) in policy_bodies: {"onap.restart.tca": {"type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "type_version": "1.0.0", "properties": {"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.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.0, "direction": "GREATER", "severity": "CRITICAL", "closedLoopEventStatus": "ONSET"}]}]}}, "name": "onap.restart.tca", "version": "1.0.0", "metadata": {"policy-id": "onap.restart.tca", "policy-version": "1"}}} 20190507_191154.938 INFO CP Server Thread-10 policy_handler.web_server.policy_latest: res GET /policy_latest/onap.restart.tca policy_id=onap.restart.tca latest_policy={"policy_id": "onap.restart.tca", "policy_body": {"type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "type_version": "1.0.0", "name": "onap.restart.tca", "version": "1.0.0", "metadata": {"policy-id": "onap.restart.tca", "policy-version": "1"}, "policyName": "onap.restart.tca.1.xml", "policyVersion": "1", "config": {"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.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.0, "direction": "GREATER", "severity": "CRITICAL", "closedLoopEventStatus": "ONSET"}]}]}}}} 20190507_191154.941 INFO CP Server Thread-10 cherrypy.access.140267335602696.access: 10.42.14.8 - - [07/May/2019:19:11:54] "GET /policy_latest/onap.restart.tca HTTP/1.1" 200 1196 "" "python-requests/2.21.0" Consul KV store update ====================== sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca%3Apolicies/items/onap.restart.tca {"policyName": "onap.restart.tca.1.xml", "name": "onap.restart.tca", "config": {"tca_policy": {"domain": "measurementsForVfScaling", "metricsPerEventName": [{"policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [{"direction": "EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ABATED", "thresholdValue": 0.0}, {"direction": "GREATER", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 0.0}], "eventName": "Measurement_vGMUX", "controlLoopSchemaType": "VNF", "policyVersion": "v0.0.1"}]}}, "type_version": "1.0.0", "version": "1.0.0", "policyVersion": "1", "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "metadata": {"policy-id": "onap.restart.tca", "policy-version": "1"}} TCA CDAP container log ====================== Starting TCADMaaPMRPublisherWorker, TCADMaaPMRSubscriberWorker, and TCAVESCollectorFlow ... TCADMaaPMRPublisherWorker status: {"status":"RUNNING"} TCADMaaPMRSubscriberWorker status: {"status":"RUNNING"} TCAVESCollectorFlow status: {"status":"RUNNING"} TCA-CDAP standalone mode initialization completed, with 3 / 3 up TCA environment: I am sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca, consul at consul-server.onap:8500, CBS service name config_binding_service ======================================================> Tue May 7 19:14:13 UTC 2019 TCADMaaPMRPublisherWorker status: {"status":"RUNNING"} TCADMaaPMRSubscriberWorker status: {"status":"RUNNING"} TCAVESCollectorFlow status: {"status":"RUNNING"} Retrieving host and port for config_binding_service from consul-server.onap:8500 CBS discovered to be at config-binding-service:10000 tca_poll_policy: Retrieving all-in-one config at config-binding-service:10000/service_component_all/sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca tca_poll_policy: CONFIG is [{ "tcaVESAlertsTableTTLSeconds": "1728000", "thresholdCalculatorFlowletInstances": "2", "tcaAlertsAbatementTableTTLSeconds": "1728000", "tcaAlertsAbatementTableName": "TCAAlertsAbatementTable", "appName": "dcae-tca", "appDescription": "DCAE Analytics Threshold Crossing Alert Application", "tcaSubscriberOutputStreamName": "TCASubscriberOutputStream", "tcaVESMessageStatusTableTTLSeconds": "86400", "tcaVESAlertsTableName": "TCAVESAlertsTable", "tcaVESMessageStatusTableName": "TCAVESMessageStatusTable" }], PREF is [{ "aaiEnrichmentIgnoreSSLCertificateErrors": "true", "publisherMaxRecoveryQueueSize": "100000", "subscriberConsumerId": "c12", "aaiVNFEnrichmentAPIPath": "/aai/v11/network/generic-vnfs/generic-vnf", "aaiEnrichmentUserPassword": "demo123456!", "publisherHostName": "message-router.onap", "aaiEnrichmentPortNumber": "8443", "publisherPollingInterval": "20000", "subscriberProtocol": "http", "aaiEnrichmentHost": "aai.onap.svc.cluster.local", "enableRedisCaching": false, "subscriberContentType": "application/json", "subscriberHostName": "message-router.onap", "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", "publisherContentType": "application/json", "subscriberTopicName": "unauthenticated.VES_MEASUREMENT_OUTPUT", "aaiVMEnrichmentAPIPath": "/aai/v11/search/nodes-query", "publisherMaxBatchSize": "1", "publisherProtocol": "http", "publisherHostPort": "3904", "subscriberMessageLimit": "-1", "tca_policy": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"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\"}]}]}", "enableAAIEnrichment": true, "publisherTopicName": "unauthenticated.DCAE_CL_OUTPUT", "subscriberPollingInterval": "30000", "aaiEnrichmentProtocol": "https", "enableAlertCEFFormat": "false", "subscriberConsumerGroup": "OpenDCAE-clamp", "subscriberHostPort": "3904", "aaiEnrichmentUserName": "dcae@dcae.onap.org", "subscriberTimeoutMS": "-1" }], POLICY is [{ "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [ { "direction": "EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ABATED", "thresholdValue": 0 }, { "direction": "GREATER", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 0 } ], "eventName": "Measurement_vGMUX", "controlLoopSchemaType": "VNF", "policyVersion": "v0.0.1" } ] }] 5c5 < "tcaAlertsAbatementTableTTLSeconds": 1728000, --- > "tcaAlertsAbatementTableTTLSeconds": "1728000", 8c8 < "tcaVESAlertsTableTTLSeconds": 1728000, --- > "tcaVESAlertsTableTTLSeconds": "1728000", 10,11c10,11 < "tcaVESMessageStatusTableTTLSeconds": 86400, < "thresholdCalculatorFlowletInstances": 2 --- > "tcaVESMessageStatusTableTTLSeconds": "86400", > "thresholdCalculatorFlowletInstances": "2" TCA config changed 6,7c6,7 < "aaiEnrichmentUserName": "DCAE", < "aaiEnrichmentUserPassword": "DCAE", --- > "aaiEnrichmentUserName": "dcae@dcae.onap.org", > "aaiEnrichmentUserPassword": "demo123456!", 10c10 < "enableAAIEnrichment": "true", --- > "enableAAIEnrichment": true, 12,13c12 < "enableRedisCaching": "false", < "redisHosts": "NONE", --- > "enableRedisCaching": false, 22,23c21,23 < "subscriberConsumerGroup": "OpenDCAEc12", < "subscriberConsumerId": "c12", --- > "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", > "subscriberConsumerGroup": "OpenDCAE-clamp", > "subscriberConsumerId": "c12-analytics-tca", 32c32 < "tca_policy": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"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\"}]}]}" --- > "tca_policy": "{ \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [ { \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyScope\": \"DCAE\", \"thresholds\": [ { \"direction\": \"EQUAL\", \"severity\": \"MAJOR\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"version\": \"1.0.2\", \"closedLoopEventStatus\": \"ABATED\", \"thresholdValue\": 0 }, { \"direction\": \"GREATER\", \"severity\": \"CRITICAL\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"version\": \"1.0.2\", \"closedLoopEventStatus\": \"ONSET\", \"thresholdValue\": 0 } ], \"eventName\": \"Measurement_vGMUX\", \"controlLoopSchemaType\": \"VNF\", \"policyVersion\": \"v0.0.1\" } ]}" TCA preference updated Newly received configuration/preference differ from the running instance's. reload confg Verifying DMaaP topic: unauthenticated.VES_MEASUREMENT_OUTPUT@message-router.onap:3904 (will block until topic ready) ==> Check topic [unauthenticated.VES_MEASUREMENT_OUTPUT] availbility on message-router.onap:3904 ==> MR topic listing received, check topic availbility ==> Topic [unauthenticated.VES_MEASUREMENT_OUTPUT] ready Stopping TCADMaaPMRPublisherWorker, TCADMaaPMRSubscriberWorker, and TCAVESCollectorFlow ... done Deleting application dcae-tca http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca Deleting artifact http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/artifacts/dcae-analytics-cdap-tca/versions/2.2.1 ... Loading artifact /opt/tca/dcae-analytics-cdap-tca.2.2.1.jar to http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/artifacts/dcae-analytics-cdap-tca... Artifact added successfully Loading configuration /opt/tca/tca_app_config.json to http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca Deploy Complete Loading preferences /opt/tca/tca_app_preferences.json to http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/preferences Starting TCADMaaPMRPublisherWorker, TCADMaaPMRSubscriberWorker, and TCAVESCollectorFlow ... TCADMaaPMRPublisherWorker status: {"status":"RUNNING"} TCADMaaPMRSubscriberWorker status: {"status":"RUNNING"} TCAVESCollectorFlow status: {"status":"RUNNING"} ======================================================> Tue May 7 19:15:19 UTC 2019 TCADMaaPMRPublisherWorker status: {"status":"RUNNING"} TCADMaaPMRSubscriberWorker status: {"status":"RUNNING"} TCAVESCollectorFlow status: {"status":"RUNNING"} tca_poll_policy: Retrieving all-in-one config at config-binding-service:10000/service_component_all/sb5ae367cff2e4567b9f1540190a6fae1-dcaegen2-analytics-tca tca_poll_policy: CONFIG is [{ "tcaVESAlertsTableTTLSeconds": "1728000", "thresholdCalculatorFlowletInstances": "2", "tcaAlertsAbatementTableTTLSeconds": "1728000", "tcaAlertsAbatementTableName": "TCAAlertsAbatementTable", "appName": "dcae-tca", "appDescription": "DCAE Analytics Threshold Crossing Alert Application", "tcaSubscriberOutputStreamName": "TCASubscriberOutputStream", "tcaVESMessageStatusTableTTLSeconds": "86400", "tcaVESAlertsTableName": "TCAVESAlertsTable", "tcaVESMessageStatusTableName": "TCAVESMessageStatusTable" }], PREF is [{ "aaiEnrichmentIgnoreSSLCertificateErrors": "true", "publisherMaxRecoveryQueueSize": "100000", "subscriberConsumerId": "c12", "aaiVNFEnrichmentAPIPath": "/aai/v11/network/generic-vnfs/generic-vnf", "aaiEnrichmentUserPassword": "demo123456!", "publisherHostName": "message-router.onap", "aaiEnrichmentPortNumber": "8443", "publisherPollingInterval": "20000", "subscriberProtocol": "http", "aaiEnrichmentHost": "aai.onap.svc.cluster.local", "enableRedisCaching": false, "subscriberContentType": "application/json", "subscriberHostName": "message-router.onap", "redisHosts": "dcae-redis.onap.svc.cluster.local:6379", "publisherContentType": "application/json", "subscriberTopicName": "unauthenticated.VES_MEASUREMENT_OUTPUT", "aaiVMEnrichmentAPIPath": "/aai/v11/search/nodes-query", "publisherMaxBatchSize": "1", "publisherProtocol": "http", "publisherHostPort": "3904", "subscriberMessageLimit": "-1", "tca_policy": "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"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\"}]}]}", "enableAAIEnrichment": true, "publisherTopicName": "unauthenticated.DCAE_CL_OUTPUT", "subscriberPollingInterval": "30000", "aaiEnrichmentProtocol": "https", "enableAlertCEFFormat": "false", "subscriberConsumerGroup": "OpenDCAE-clamp", "subscriberHostPort": "3904", "aaiEnrichmentUserName": "dcae@dcae.onap.org", "subscriberTimeoutMS": "-1" }], POLICY is [{ "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [ { "direction": "EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ABATED", "thresholdValue": 0 }, { "direction": "GREATER", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 0 } ], "eventName": "Measurement_vGMUX", "controlLoopSchemaType": "VNF", "policyVersion": "v0.0.1" } ] }] Newly received configuration/preference identical from the running instance's TCA Configuration in CDAP ========================= { "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [ { "direction": "EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ABATED", "thresholdValue": 0 }, { "direction": "GREATER", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 0 } ], "eventName": "Measurement_vGMUX", "controlLoopSchemaType": "VNF", "policyVersion": "v0.0.1" } ]}