DCAE-Policy TEST bash-4.2$ cfy install -b tca-clamp -d tca-clamp /blueprints/k8s-tca-clampnode.yaml Uploading blueprint /blueprints/k8s-tca-clampnode.yaml... k8s-tca-clampnode... |################################################| 100.0% Blueprint uploaded. The blueprint's id is tca-clamp Creating new deployment from blueprint tca-clamp... Deployment created. The deployment's id is tca-clamp Executing workflow install on deployment tca-clamp [timeout=900 seconds] Deployment environment creation is pending... 2020-04-01 22:58:57.882 CFY Starting 'create_deployment_environment' workflow execution 2020-04-01 22:58:58.479 CFY Installing deployment plugins 2020-04-01 22:58:58.479 CFY Sending task 'cloudify_agent.operations.install_plugins' 2020-04-01 22:58:58.479 CFY Task started 'cloudify_agent.operations.install_plugins' 2020-04-01 22:58:59.197 LOG INFO: Installing plugin: k8s 2020-04-01 22:58:59.197 LOG INFO: Using existing installation of managed plugin: 5aa7b6d7-3907-4d6c-bc23-bbda7a97a8f5 [package_name: k8splugin, package_version: 1.7.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core] 2020-04-01 22:58:59.197 LOG INFO: Installing plugin: dcaepolicy 2020-04-01 22:58:59.908 CFY Task succeeded 'cloudify_agent.operations.install_plugins' 2020-04-01 22:58:59.908 LOG INFO: Using existing installation of managed plugin: c50ad2b5-1461-4425-a9b5-4d6a22ebd58c [package_name: dcaepolicyplugin, package_version: 2.4.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core] 2020-04-01 22:58:59.908 CFY Skipping starting deployment policy engine core - no policies defined 2020-04-01 22:58:59.908 CFY Creating deployment work directory 2020-04-01 22:58:59.908 CFY 'create_deployment_environment' workflow execution succeeded 2020-04-01 22:59:01.876 CFY Starting 'install' workflow execution 2020-04-01 22:59:02.491 CFY [tca_policy_vj4eph] Creating node instance 2020-04-01 22:59:03.207 CFY [tca_policy_vj4eph.create] Sending task 'dcaepolicyplugin.policy_get' 2020-04-01 22:59:03.710 LOG [tca_policy_vj4eph.create] INFO: getting service_url at http://consul:8500/v1/catalog/service/policy_handler 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: got 200 for service_url at http://consul:8500/v1/catalog/service/policy_handler response: [] 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: getting kv at http://consul:8500/v1/kv/dcaepolicyplugin 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: got 404 for kv at http://consul:8500/v1/kv/dcaepolicyplugin response: 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: getting latest policy from http://policy-handler/policy_latest/onap.vfirewall.tca headers={"X-ECOMP-RequestID": "f97e623d-3ea2-41ff-b9ac-32c87fb012ed"} 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: found policy onap.vfirewall.tca: {"policy_body": {"policyName": "onap.vfirewall.tca.1-0-0.xml", "name": "onap.vfirewall.tca", "config": {"tca_policy": {"domain": "measurementsForVfScaling", "metricsPerEventName": [{"policyName": "DCAE.Config_tca-hi-lo", "policyScope": "DCAE", "thresholds": [{"direction": "LESS_OR_EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 100.0}, {"direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 1000.0}], "eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VM", "policyVersion": "v0.0.1"}]}}, "type_version": "1.0.0", "version": "1.0.0", "policyVersion": "1.0.0", "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "metadata": {"policy-id": "onap.vfirewall.tca", "policy-version": "1.0.0"}}, "policy_id": "onap.vfirewall.tca"} 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: latest policy for policy_id(onap.vfirewall.tca) status(200) response: {"policy_id": "onap.vfirewall.tca", "policy_body": {"type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "type_version": "1.0.0", "name": "onap.vfirewall.tca", "version": "1.0.0", "metadata": {"policy-id": "onap.vfirewall.tca", "policy-version": "1.0.0"}, "policyName": "onap.vfirewall.tca.1-0-0.xml", "policyVersion": "1.0.0", "config": {"tca_policy": {"domain": "measurementsForVfScaling", "metricsPerEventName": [{"eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VM", "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": 100.0, "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": 1000.0, "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopEventStatus": "ONSET"}]}]}}}} 2020-04-01 22:59:04.211 LOG [tca_policy_vj4eph.create] INFO: exit policy_get 2020-04-01 22:59:04.874 CFY [tca_policy_vj4eph.create] Task succeeded 'dcaepolicyplugin.policy_get' 2020-04-01 22:59:04.874 CFY [tca_policy_vj4eph] Node instance created 2020-04-01 22:59:04.874 CFY [tca_policy_vj4eph] Configuring node instance: nothing to do 2020-04-01 22:59:04.874 CFY [tca_policy_vj4eph] Starting node instance: nothing to do 2020-04-01 22:59:05.518 CFY [tca_policy_vj4eph] Node instance started 2020-04-01 22:59:05.518 CFY [tca_k8s_hzta19] Creating node instance 2020-04-01 22:59:05.518 CFY [tca_k8s_hzta19.create] Sending task 'k8splugin.create_for_components' 2020-04-01 22:59:07.835 LOG [tca_k8s_hzta19.create] INFO: Added config for s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca 2020-04-01 22:59:08.517 LOG [tca_k8s_hzta19.create] INFO: Done setting up: s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca 2020-04-01 22:59:08.517 LOG [tca_k8s_hzta19.create] INFO: response 200 for store_policies http://consul:8500/v1/txn: text={"Results":[{"KV":{"LockIndex":0,"Key":"s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca:policies/event","Flags":0,"Value":null,"CreateIndex":19283,"ModifyIndex":19283}},{"KV":{"LockIndex":0,"Key":"s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca:policies/items/onap.vfirewall.tca","Flags":0,"Value":null,"CreateIndex":19283,"ModifyIndex":19283}}],"Errors":null} txn=[{"KV": {"Verb": "delete-tree", "Key": "s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca:policies/"}}, {"KV": {"Verb": "set", "Value": "eyJhY3Rpb24iOiAiZ2F0aGVyZWQiLCAidGltZXN0YW1wIjogIjIwMjAtMDQtMDFUMjI6NTk6MDcuNzY1WiIsICJ1cGRhdGVfaWQiOiAiMjc0OGMzYmMtNGRjMC00NzllLTgyZTktYjQ3YWUwZmRmOGEyIiwgInBvbGljaWVzX2NvdW50IjogMX0=", "Key": "s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca:policies/event"}}, {"KV": {"Verb": "set", "Value": "eyJwb2xpY3lOYW1lIjogIm9uYXAudmZpcmV3YWxsLnRjYS4xLTAtMC54bWwiLCAibmFtZSI6ICJvbmFwLnZmaXJld2FsbC50Y2EiLCAiY29uZmlnIjogeyJ0Y2FfcG9saWN5IjogeyJkb21haW4iOiAibWVhc3VyZW1lbnRzRm9yVmZTY2FsaW5nIiwgIm1ldHJpY3NQZXJFdmVudE5hbWUiOiBbeyJwb2xpY3lOYW1lIjogIkRDQUUuQ29uZmlnX3RjYS1oaS1sbyIsICJwb2xpY3lTY29wZSI6ICJEQ0FFIiwgInRocmVzaG9sZHMiOiBbeyJkaXJlY3Rpb24iOiAiTEVTU19PUl9FUVVBTCIsICJzZXZlcml0eSI6ICJNQUpPUiIsICJjbG9zZWRMb29wQ29udHJvbE5hbWUiOiAiQ29udHJvbExvb3AtdkZpcmV3YWxsLWQwYTFkZmM2LTk0ZjUtNGZkNC1hNWI1LTQ2MzBiNDM4ODUwYSIsICJmaWVsZFBhdGgiOiAiJC5ldmVudC5tZWFzdXJlbWVudHNGb3JWZlNjYWxpbmdGaWVsZHMudk5pY1BlcmZvcm1hbmNlQXJyYXlbKl0ucmVjZWl2ZWRUb3RhbFBhY2tldHNEZWx0YSIsICJ2ZXJzaW9uIjogIjEuMC4yIiwgImNsb3NlZExvb3BFdmVudFN0YXR1cyI6ICJPTlNFVCIsICJ0aHJlc2hvbGRWYWx1ZSI6IDEwMC4wfSwgeyJkaXJlY3Rpb24iOiAiR1JFQVRFUl9PUl9FUVVBTCIsICJzZXZlcml0eSI6ICJDUklUSUNBTCIsICJjbG9zZWRMb29wQ29udHJvbE5hbWUiOiAiQ29udHJvbExvb3AtdkZpcmV3YWxsLWQwYTFkZmM2LTk0ZjUtNGZkNC1hNWI1LTQ2MzBiNDM4ODUwYSIsICJmaWVsZFBhdGgiOiAiJC5ldmVudC5tZWFzdXJlbWVudHNGb3JWZlNjYWxpbmdGaWVsZHMudk5pY1BlcmZvcm1hbmNlQXJyYXlbKl0ucmVjZWl2ZWRUb3RhbFBhY2tldHNEZWx0YSIsICJ2ZXJzaW9uIjogIjEuMC4yIiwgImNsb3NlZExvb3BFdmVudFN0YXR1cyI6ICJPTlNFVCIsICJ0aHJlc2hvbGRWYWx1ZSI6IDEwMDAuMH1dLCAiZXZlbnROYW1lIjogInZGaXJld2FsbEJyb2FkY2FzdFBhY2tldHMiLCAiY29udHJvbExvb3BTY2hlbWFUeXBlIjogIlZNIiwgInBvbGljeVZlcnNpb24iOiAidjAuMC4xIn1dfX0sICJ0eXBlX3ZlcnNpb24iOiAiMS4wLjAiLCAidmVyc2lvbiI6ICIxLjAuMCIsICJwb2xpY3lWZXJzaW9uIjogIjEuMC4wIiwgInR5cGUiOiAib25hcC5wb2xpY2llcy5tb25pdG9yaW5nLmNkYXAudGNhLmhpLmxvLmFwcCIsICJtZXRhZGF0YSI6IHsicG9saWN5LWlkIjogIm9uYXAudmZpcmV3YWxsLnRjYSIsICJwb2xpY3ktdmVyc2lvbiI6ICIxLjAuMCJ9fQ==", "Key": "s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca:policies/items/onap.vfirewall.tca"}}] 2020-04-01 22:59:08.517 CFY [tca_k8s_hzta19.create] Task succeeded 'k8splugin.create_for_components' 2020-04-01 22:59:08.517 CFY [tca_k8s_hzta19] Node instance created 2020-04-01 22:59:09.111 CFY [tca_k8s_hzta19] Configuring node instance: nothing to do 2020-04-01 22:59:09.111 CFY [tca_k8s_hzta19] Starting node instance 2020-04-01 22:59:09.111 CFY [tca_k8s_hzta19.start] Sending task 'k8splugin.create_and_start_container_for_components' 2020-04-01 22:59:10.527 LOG [tca_k8s_hzta19.start] INFO: Starting k8s deployment for s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.2.2, env: {u'AAIHOST': u'aai.onap.svc.cluster.local', u'CBS_HOST': u'config-binding-service', 'DCAE_CA_CERTPATH': u'/opt/dcae/cacert/cacert.pem', u'SERVICE_TAGS': u'', u'CBS_PORT': u'10000', u'CONSUL_PORT': u'8500', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_CL_OUTPUT', 'CONSUL_HOST': u'consul-server.onap', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca', u'DMAAPSUBTOPIC': u'unauthenticated.VES_MEASUREMENT_OUTPUT', 'CONFIG_BINDING_SERVICE': u'config_binding_service', u'AAIPORT': u'8443', u'DMAAPPORT': u'3904', u'DMAAPHOST': u'message-router.onap.svc.cluster.local'}, kwargs: {'readiness': {}, 'labels': {'cfydeployment': u'tca-clamp', 'cfynodeinstance': u'tca_k8s_hzta19', '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', u'SERVICE_TAGS': u'', u'CBS_PORT': u'10000', u'DMAAPHOST': u'message-router.onap.svc.cluster.local', 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'} 2020-04-01 22:59:11.029 LOG [tca_k8s_hzta19.start] INFO: Passing k8sconfig: {'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'dev-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'filebeat': {u'config_map': u'dev-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', 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'default_k8s_location': u'central'} 2020-04-01 22:59:10.527 LOG [tca_k8s_hzta19.start] INFO: Starting k8s deployment for s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.2.2, env: {u'AAIHOST': u'aai.onap.svc.cluster.local', u'CBS_HOST': u'config-binding-service', 'DCAE_CA_CERTPATH': u'/opt/dcae/cacert/cacert.pem', u'SERVICE_TAGS': u'', u'CBS_PORT': u'10000', u'CONSUL_PORT': u'8500', u'DMAAPPUBTOPIC': u'unauthenticated.DCAE_CL_OUTPUT', 'CONSUL_HOST': u'consul-server.onap', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca', u'DMAAPSUBTOPIC': u'unauthenticated.VES_MEASUREMENT_OUTPUT', 'CONFIG_BINDING_SERVICE': u'config_binding_service', u'AAIPORT': u'8443', u'DMAAPPORT': u'3904', u'DMAAPHOST': u'message-router.onap.svc.cluster.local'}, kwargs: {'readiness': {}, 'labels': {'cfydeployment': u'tca-clamp', 'cfynodeinstance': u'tca_k8s_hzta19', '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', u'SERVICE_TAGS': u'', u'CBS_PORT': u'10000', u'DMAAPHOST': u'message-router.onap.svc.cluster.local', 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'} 2020-04-01 22:59:11.029 LOG [tca_k8s_hzta19.start] INFO: k8s deployment initiated successfully for s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca: {'services': ['s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca', 'xs389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca'} 2020-04-01 22:59:11.029 LOG [tca_k8s_hzta19.start] INFO: Waiting up to 1800 secs for s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca to become ready 2020-04-01 22:59:13.697 LOG [tca_k8s_hzta19.start] INFO: k8s deployment is ready for: s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca 2020-04-01 22:59:13.697 LOG [tca_k8s_hzta19.start] INFO: k8s deployment is ready for: s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca 2020-04-01 22:59:14.326 CFY [tca_k8s_hzta19.start] Task succeeded 'k8splugin.create_and_start_container_for_components' 2020-04-01 22:59:14.326 CFY [tca_k8s_hzta19] Node instance started 2020-04-01 22:59:15.042 CFY 'install' workflow execution succeeded Finished executing workflow install on deployment tca-clamp * Run 'cfy events list -e 48744c04-f67e-4571-af3a-3c9d7cb18544' to retrieve the execution's events/logs root@sb01-nfs:~# kubectl get pods -n onap | grep analytics dep-s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tmwdtr 2/2 Running 0 2m16s root@sb01-nfs:~# kubectl logs -f -n onap dep-s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tmwdtr s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca Generting preference file Starting TCA-CDAP in standalone mode Wed Apr 1 22:59:11 UTC 2020 Starting CDAP Standalone (SDK) ............ Standalone CDAP started successfully. Connect to the CDAP UI at http://localhost:11011 CDAP Started, waiting CDAP ready on localhost:11015 ... Creating namespace cdap_tca_hi_lo ... Namespace 'cdap_tca_hi_lo' created successfully. Stopping TCADMaaPMRPublisherWorker, TCADMaaPMRSubscriberWorker, and TCAVESCollectorFlow ... 'application:cdap_tca_hi_lo.dcae-tca.-SNAPSHOT' was not found.'application:cdap_tca_hi_lo.dcae-tca.-SNAPSHOT' was not found.'application:cdap_tca_hi_lo.dcae-tca.-SNAPSHOT' was not found.done Deleting application dcae-tca http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca 'application:cdap_tca_hi_lo.dcae-tca.-SNAPSHOT' was not found. Deleting artifact http://localhost:11015/v3/namespaces/cdap_tca_hi_lo/artifacts/dcae-analytics-cdap-tca/versions/2.3.0 ... 'artifact:cdap_tca_hi_lo.dcae-analytics-cdap-tca.2.3.0' was not found. Loading artifact /opt/tca/dcae-analytics-cdap-tca.2.3.0.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"} TCA-CDAP standalone mode initialization completed, with 3 / 3 up TCA environment: I am s389b8a9925ad4c4aa1c68cdf11d93521-dcaegen2-analytics-tca, CBS K8S Service Name and port is config-binding-service:10000 ======================================================> Wed Apr 1 22:59:29 UTC 2020 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/s389b8a9925ad4c4aa1c68cdf11d93521-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.svc.cluster.local", "aaiEnrichmentPortNumber": "8443", "publisherPollingInterval": "20000", "subscriberProtocol": "http", "aaiEnrichmentHost": "aai.onap.svc.cluster.local", "enableRedisCaching": "false", "subscriberContentType": "application/json", "subscriberHostName": "message-router.onap.svc.cluster.local", "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": "", "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": "LESS_OR_EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 100 }, { "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 1000 } ], "eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VM", "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!", 13d12 < "redisHosts": "NONE", 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\":\"VM\",\"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\"}]}]}" --- > "tca_policy": "{ \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [ { \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyScope\": \"DCAE\", \"thresholds\": [ { \"direction\": \"LESS_OR_EQUAL\", \"severity\": \"MAJOR\", \"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\", \"version\": \"1.0.2\", \"closedLoopEventStatus\": \"ONSET\", \"thresholdValue\": 100 }, { \"direction\": \"GREATER_OR_EQUAL\", \"severity\": \"CRITICAL\", \"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\", \"version\": \"1.0.2\", \"closedLoopEventStatus\": \"ONSET\", \"thresholdValue\": 1000 } ], \"eventName\": \"vFirewallBroadcastPackets\", \"controlLoopSchemaType\": \"VM\", \"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.svc.cluster.local:3904 (will block until topic ready) ==> Check topic [unauthenticated.VES_MEASUREMENT_OUTPUT] availbility on message-router.onap.svc.cluster.local: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.3.0 ... Loading artifact /opt/tca/dcae-analytics-cdap-tca.2.3.0.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"} ======================================================> Wed Apr 1 23:00:12 UTC 2020 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/s389b8a9925ad4c4aa1c68cdf11d93521-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.svc.cluster.local", "aaiEnrichmentPortNumber": "8443", "publisherPollingInterval": "20000", "subscriberProtocol": "http", "aaiEnrichmentHost": "aai.onap.svc.cluster.local", "enableRedisCaching": "false", "subscriberContentType": "application/json", "subscriberHostName": "message-router.onap.svc.cluster.local", "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": "", "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": "LESS_OR_EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 100 }, { "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 1000 } ], "eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VM", "policyVersion": "v0.0.1" } ] }] Newly received configuration/preference identical from the running instance's ======================================================> Wed Apr 1 23:00:42 UTC 2020 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/s389b8a9925ad4c4aa1c68cdf11d93521-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.svc.cluster.local", "aaiEnrichmentPortNumber": "8443", "publisherPollingInterval": "20000", "subscriberProtocol": "http", "aaiEnrichmentHost": "aai.onap.svc.cluster.local", "enableRedisCaching": "false", "subscriberContentType": "application/json", "subscriberHostName": "message-router.onap.svc.cluster.local", "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": "", "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": "LESS_OR_EQUAL", "severity": "MAJOR", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 100 }, { "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", "version": "1.0.2", "closedLoopEventStatus": "ONSET", "thresholdValue": 1000 } ], "eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VM", "policyVersion": "v0.0.1" } ] }] Newly received configuration/preference identical from the running instance's