TCA-CLAMP deployment (post fix in cloudify manager pod to replace policyoutput.py) cfy install -b tca-clamp -d tca-clamp /blueprints/k8s-tcagen2-clampnode.yaml Uploading blueprint /blueprints/k8s-tcagen2-clampnode.yaml... k8s-tcagen2-clamp... |################################################| 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... 2021-03-12 21:00:14.443 CFY Starting 'create_deployment_environment' workflow execution 2021-03-12 21:00:14.451 LOG INFO: Creating deployment work directory 2021-03-12 21:00:14.546 CFY 'create_deployment_environment' workflow execution succeeded 2021-03-12 21:00:18.463 CFY Starting 'install' workflow execution 2021-03-12 21:00:19.110 CFY [tcagen2_policy_mwln0e] Validating node instance before creation: nothing to do 2021-03-12 21:00:19.113 CFY [tcagen2_policy_mwln0e] Precreating node instance: nothing to do 2021-03-12 21:00:19.115 CFY [tcagen2_policy_mwln0e] Creating node instance 2021-03-12 21:00:19.541 CFY [tcagen2_policy_mwln0e.create] Sending task 'dcaepolicyplugin.policy_get' 2021-03-12 21:00:21.081 LOG [tcagen2_policy_mwln0e.create] INFO: getting service_url at http://consul:8500/v1/catalog/service/policy_handler 2021-03-12 21:00:21.093 LOG [tcagen2_policy_mwln0e.create] INFO: got 200 for service_url at http://consul:8500/v1/catalog/service/policy_handler response: [] 2021-03-12 21:00:21.096 LOG [tcagen2_policy_mwln0e.create] INFO: getting kv at http://consul:8500/v1/kv/dcaepolicyplugin 2021-03-12 21:00:21.119 LOG [tcagen2_policy_mwln0e.create] INFO: got 404 for kv at http://consul:8500/v1/kv/dcaepolicyplugin response: 2021-03-12 21:00:21.120 LOG [tcagen2_policy_mwln0e.create] INFO: getting latest policy from http://policy-handler/policy_latest/onap.vfirewall.tca headers={"X-ECOMP-RequestID": "1ac182dc-f8fd-4cda-8234-991ba8513112"} 2021-03-12 21:00:21.272 LOG [tcagen2_policy_mwln0e.create] INFO: latest policy for policy_id(onap.vfirewall.tca) status(200) response: {"policy_id": "onap.vfirewall.tca", "policy_body": {"type": "onap.policies.monitoring.tcagen2", "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": 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"}]}]}}}} 2021-03-12 21:00:21.273 LOG [tcagen2_policy_mwln0e.create] INFO: found policy onap.vfirewall.tca: {"policy_id": "onap.vfirewall.tca", "policy_body": {"type": "onap.policies.monitoring.tcagen2", "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": 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"}]}]}}}} 2021-03-12 21:00:21.356 LOG [tcagen2_policy_mwln0e.create] INFO: exit policy_get 2021-03-12 21:00:21.762 CFY [tcagen2_policy_mwln0e.create] Task succeeded 'dcaepolicyplugin.policy_get' 2021-03-12 21:00:21.765 CFY [tcagen2_policy_mwln0e] Node instance created 2021-03-12 21:00:21.854 CFY [tcagen2_policy_mwln0e] Configuring node instance: nothing to do 2021-03-12 21:00:21.857 CFY [tcagen2_policy_mwln0e] Starting node instance: nothing to do 2021-03-12 21:00:21.860 CFY [tcagen2_policy_mwln0e] Poststarting node instance: nothing to do 2021-03-12 21:00:21.866 CFY [tcagen2_policy_mwln0e] Node instance started 2021-03-12 21:00:22.275 CFY [docker.tca_cltuaz] Validating node instance before creation: nothing to do 2021-03-12 21:00:22.280 CFY [docker.tca_cltuaz] Precreating node instance: nothing to do 2021-03-12 21:00:22.287 CFY [docker.tca_cltuaz] Creating node instance 2021-03-12 21:00:22.659 CFY [docker.tca_cltuaz.create] Sending task 'k8splugin.create_for_components' 2021-03-12 21:00:25.502 LOG [docker.tca_cltuaz.create] INFO: Added config for s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2 2021-03-12 21:00:25.502 LOG [docker.tca_cltuaz.create] INFO: Done setting up: s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2 2021-03-12 21:00:25.514 LOG [docker.tca_cltuaz.create] INFO: response 200 for store_policies http://consul:8500/v1/txn: text={"Results":[{"KV":{"LockIndex":0,"Key":"s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2:policies/event","Flags":0,"Value":null,"CreateIndex":116832,"ModifyIndex":116832}},{"KV":{"LockIndex":0,"Key":"s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2:policies/items/onap.vfirewall.tca","Flags":0,"Value":null,"CreateIndex":116832,"ModifyIndex":116832}}],"Errors":null} txn=[{"KV": {"Verb": "delete-tree", "Key": "s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2:policies/"}}, {"KV": {"Verb": "set", "Key": "s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2:policies/event", "Value": "eyJhY3Rpb24iOiAiZ2F0aGVyZWQiLCAidGltZXN0YW1wIjogIjIwMjEtMDMtMTJUMjE6MDA6MjUuNTAyWiIsICJ1cGRhdGVfaWQiOiAiMjM3ZTNiNjEtNzY0Ni00OGE0LWE4YWMtNzhhMzk2OTM3ZGZmIiwgInBvbGljaWVzX2NvdW50IjogMX0="}}, {"KV": {"Verb": "set", "Key": "s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2:policies/items/onap.vfirewall.tca", "Value": "eyJ0eXBlIjogIm9uYXAucG9saWNpZXMubW9uaXRvcmluZy50Y2FnZW4yIiwgInR5cGVfdmVyc2lvbiI6ICIxLjAuMCIsICJuYW1lIjogIm9uYXAudmZpcmV3YWxsLnRjYSIsICJ2ZXJzaW9uIjogIjEuMC4wIiwgIm1ldGFkYXRhIjogeyJwb2xpY3ktaWQiOiAib25hcC52ZmlyZXdhbGwudGNhIiwgInBvbGljeS12ZXJzaW9uIjogIjEuMC4wIn0sICJwb2xpY3lOYW1lIjogIm9uYXAudmZpcmV3YWxsLnRjYS4xLTAtMC54bWwiLCAicG9saWN5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hbFBhY2tldHNEZWx0YSIsICJ0aHJlc2hvbGRWYWx1ZSI6IDcwMCwgImRpcmVjdGlvbiI6ICJHUkVBVEVSX09SX0VRVUFMIiwgInNldmVyaXR5IjogIkNSSVRJQ0FMIiwgImNsb3NlZExvb3BFdmVudFN0YXR1cyI6ICJPTlNFVCJ9XX1dfX19"}}] 2021-03-12 21:00:25.990 CFY [docker.tca_cltuaz.create] Task succeeded 'k8splugin.create_for_components' 2021-03-12 21:00:25.999 CFY [docker.tca_cltuaz] Node instance created 2021-03-12 21:00:26.181 CFY [docker.tca_cltuaz] Configuring node instance: nothing to do 2021-03-12 21:00:26.198 CFY [docker.tca_cltuaz] Starting node instance 2021-03-12 21:00:26.651 CFY [docker.tca_cltuaz.start] Sending task 'k8splugin.create_and_start_container_for_components' 2021-03-12 21:00:29.029 LOG [docker.tca_cltuaz.start] INFO: Starting k8s deployment for s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1, env: {'CONSUL_HOST': 'consul-server.onap', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'DCAE_CA_CERTPATH': '/etc/tca-gen2/ssl/cacert.pem', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2'}, kwargs: {'volumes': [], 'ports': ['9091:0'], 'envs': {}, 'log_info': {'log_directory': '/opt/logs/dcae-analytics-tca'}, 'tls_info': {'cert_directory': '/etc/tca-gen2/ssl', 'use_tls': True}, 'external_cert': {'external_cert_directory': '/opt/app/dcae-certificate/external', 'use_external_tls': False, 'ca_name': 'RA', 'cert_type': 'P12', 'external_certificate_parameters': {'common_name': '', 'sans': ''}}, 'labels': {'cfydeployment': 'tca-clamp', 'cfynode': 'docker.tca', 'cfynodeinstance': 'docker.tca_cltuaz'}, 'resource_config': {}, 'readiness': {'endpoint': '/actuator/health', 'interval': '30s', 'timeout': '10s', 'type': 'http'}, 'liveness': {}, 'k8s_location': 'central'} 2021-03-12 21:00:29.029 LOG [docker.tca_cltuaz.start] INFO: Passing k8sconfig: {'namespace': 'onap', 'consul_dns_name': 'consul-server.onap', 'default_k8s_location': 'central', 'image_pull_secrets': ['onap-docker-registry-key'], 'max_wait': 1800, 'filebeat': {'log_path': '/var/log/onap', 'data_path': '/usr/share/filebeat/data', 'config_path': '/usr/share/filebeat/filebeat.yml', 'config_subpath': 'filebeat.yml', 'image': 'docker.elastic.co/beats/filebeat:5.5.0', 'config_map': 'dev-dcae-filebeat-configmap'}, 'tls': {'cert_path': '/opt/app/osaaf', 'image': 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', 'component_cert_dir': '/opt/dcae/cacert', 'component_ca_cert_path': '/opt/dcae/cacert/cacert.pem', 'ca_cert_configmap': 'dev-dcae-cloudify-manager-dcae-cacert'}, 'external_cert': {'image_tag': 'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.3.3', 'request_url': 'https://oom-cert-service:8443/v1/certificate/', 'timeout': '30000', 'country': 'US', 'organization': 'Linux-Foundation', 'state': 'California', 'organizational_unit': 'ONAP', 'location': 'San-Francisco', 'cert_secret_name': 'oom-cert-service-client-tls-secret', 'keystore_password': 'secret', 'truststore_password': 'secret'}, 'cert_post_processor': {'image_tag': 'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.3.3'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'cmpv2_issuer': {'enabled': 'false', 'name': 'cmpv2-issuer-onap'}, 'consul_host': 'consul-server:8500'} 2021-03-12 21:00:29.044 LOG [docker.tca_cltuaz.start] INFO: Creating init container: TLS * [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0] 2021-03-12 21:00:29.044 LOG [docker.tca_cltuaz.start] INFO: CMPv2 Issuer properties: {'enabled': 'false', 'name': 'cmpv2-issuer-onap'} 2021-03-12 21:00:29.044 LOG [docker.tca_cltuaz.start] INFO: CMPv2 integration enabled: False 2021-03-12 21:00:29.215 LOG [docker.tca_cltuaz.start] INFO: k8s deployment initiated successfully for s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2: {'namespace': 'onap', 'location': 'central', 'deployment': 'dep-s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2', 'services': ['s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2'], 'certificates': [], 'secrets': []} 2021-03-12 21:00:29.216 LOG [docker.tca_cltuaz.start] INFO: Waiting up to 1800 secs for s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2 to become ready 2021-03-12 21:01:22.374 LOG [docker.tca_cltuaz.start] INFO: k8s deployment is ready for: s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2 2021-03-12 21:01:22.374 LOG [docker.tca_cltuaz.start] INFO: Done starting: s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2 2021-03-12 21:01:22.766 CFY [docker.tca_cltuaz.start] Task succeeded 'k8splugin.create_and_start_container_for_components' 2021-03-12 21:01:22.769 CFY [docker.tca_cltuaz] Poststarting node instance: nothing to do 2021-03-12 21:01:22.776 CFY [docker.tca_cltuaz] Node instance started 2021-03-12 21:01:23.050 CFY 'install' workflow execution succeeded Finished executing workflow install on deployment tca-clamp * Run 'cfy events list b36e2f29-3a69-4070-a32f-2273cca854a4' to retrieve the execution's events/logs dep-s44e7b3ad668f40e5afe327ee6d84ab5d-dcae-tcagen2-cfc65ffgtsdt 2/2 Running 0 69s [root@dcae-cloudify-manager /]# ls -lrt ./cfy-persist/opt/mgmtworker/env/plugins/default_tenant/k8splugin/3.7.0/lib/python3.6/site-packages/onap_dcae_dcaepolicy_lib/policies_output.py -rw-r--r-- 1 cfyuser cfyuser 6028 Mar 12 20:58 ./cfy-persist/opt/mgmtworker/env/plugins/default_tenant/k8splugin/3.7.0/lib/python3.6/site-packages/onap_dcae_dcaepolicy_lib/policies_output.py root@pfpp-nfs:~/oom/kubernetes# helm undeploy dev-dcaegen2 release "dev-dcaegen2" uninstalled root@pfpp-nfs:~/oom/kubernetes# vi /root/oom/kubernetes/onap/resources/environments/public-cloud.yaml root@pfpp-nfs:~/oom/kubernetes# helm install dev-dcaegen2 local/dcaegen2 --namespace onap -f /root/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f /root/integration-override.yaml --namespace onap --timeout 900s NAME: dev-dcaegen2 LAST DEPLOYED: Mon Mar 15 16:56:47 2021 NAMESPACE: onap STATUS: deployed REVISION: 1