By type
+ trap keep_running ERR
+ set -e
+ cfy profiles use -u admin -t default_tenant -p UmH7vbj6 --rest-certificate /certs/cacert.pem --ssl dcae-cloudify-manager
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Initializing local profile ...
Initialization completed successfully
Attempting to connect to dcae-cloudify-manager through port 443, using https (SSL mode: True)...
Initializing profile dcae-cloudify-manager...
Initialization completed successfully
Using manager dcae-cloudify-manager with port 443
+ cfy status
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Retrieving manager services status... [ip=dcae-cloudify-manager]
Services:
+--------------------------------+--------+
| service | status |
+--------------------------------+--------+
| Cloudify Console | Active |
| PostgreSQL | Active |
| AMQP-Postgres | Active |
| Manager Rest-Service | Active |
| RabbitMQ | Active |
| Webserver | Active |
| Management Worker | Active |
+--------------------------------+--------+
+ cfy secret create -s UmH7vbj6 cmpass
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Secret `cmpass` created
+ for config in '/dcae-configs/*.json'
++ basename /dcae-configs/dmaap-plugin.json .json
+ key=dmaap-plugin
+ egrep -v '^#|^$' /dcae-configs/dmaap-plugin.json
+ curl -v -X PUT -H 'Content-Type: application/json' --data-binary @/tmp/dcae-upload consul-server:8500/v1/kv/dmaap-plugin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to consul-server port 8500 (#0)
* Trying 10.233.76.158...
* Connected to consul-server (10.233.76.158) port 8500 (#0)
> PUT /v1/kv/dmaap-plugin HTTP/1.1
> User-Agent: curl/7.29.0
> Host: consul-server:8500
> Accept: */*
> Content-Type: application/json
> Content-Length: 120
>
} [data not shown]
* upload completely sent off: 120 out of 120 bytes
100 120 0 0 100 120 0 119 0:00:01 0:00:01 --:--:-- 119< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sun, 11 Apr 2021 03:42:16 GMT
< Content-Length: 4
<
{ [data not shown]
100 124 100 4 100 120 3 104 0:00:01 0:00:01 --:--:-- 104
* Connection #0 to host consul-server left intact
+ for config in '/dcae-configs/*.json'
++ basename /dcae-configs/k8s-plugin.json .json
+ key=k8s-plugin
+ egrep -v '^#|^$' /dcae-configs/k8s-plugin.json
+ curl -v -X PUT -H 'Content-Type: application/json' --data-binary @/tmp/dcae-upload consul-server:8500/v1/kv/k8s-plugin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to consul-server port 8500 (#0)
* Trying 10.233.76.158...
* Connected to consul-server (10.233.76.158) port 8500 (#0)
> PUT /v1/kv/k8s-plugin HTTP/1.1
> User-Agent: curl/7.29.0
> Host: consul-server:8500
> Accept: */*
> Content-Type: application/json
> Content-Length: 1514
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
} [data not shown]
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sun, 11 Apr 2021 03:42:17 GMT
< Content-Length: 4
<
{ [data not shown]
100 1518 100 4 100 1514 5 1989 --:--:-- --:--:-- --:--:-- 1986
100 1518 100 4 100 1514 5 1988 --:--:-- --:--:-- --:--:-- 1986
* Connection #0 to host consul-server left intact
+ trap - ERR
+ set +e
+ deploy pgaas_initdb k8s-pgaas-initdb.yaml k8s-pgaas-initdb-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b pgaas_initdb /blueprints/k8s-pgaas-initdb.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
truetrueUploading blueprint /blueprints/k8s-pgaas-initdb.yaml...
k8s-pgaas-initdb.... |####################----------------------------| 41.42%
k8s-pgaas-initdb.... |########################################--------| 82.84%
k8s-pgaas-initdb.... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is pgaas_initdb
+ cm_hasany 'deployments?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-pgaas-initdb-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-pgaas-initdb-inputs.yaml
+ cfy deployments create -b pgaas_initdb -i/inputs/k8s-pgaas-initdb-inputs.yaml pgaas_initdb
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint pgaas_initdb...
Deployment created. The deployment's id is pgaas_initdb
+ cm_hasany 'node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d pgaas_initdb install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `pgaas_initdb` [timeout=900 seconds]
Deployment environment creation is pending...
2021-04-11 03:42:23.847 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:42:23.853 CFY Installing deployment and workflow plugins
2021-04-11 03:42:23.951 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:42:23.967 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:42:25.021 LOG INFO: Installing plugin: pgaas
2021-04-11 03:42:25.714 LOG INFO: Using existing installation of managed plugin: ebd9dcf1-abc1-4537-a5b5-46fe2ddacc31 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:42:25.715 LOG INFO: Installing plugin: ssh_keyshare
2021-04-11 03:42:26.454 LOG INFO: Using existing installation of managed plugin: eac1bca8-2dd7-4aff-95fb-e1d240118e08 [package_name: sshkeyshare, package_version: 1.2.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:42:26.456 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:42:26.488 CFY Creating deployment work directory
2021-04-11 03:42:26.822 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:42:32.494 CFY Starting 'install' workflow execution
2021-04-11 03:42:33.173 CFY [sharedsshkey_pgrs_9isfyb] Validating node instance before creation: nothing to do
2021-04-11 03:42:33.274 CFY [sharedsshkey_pgrs_9isfyb] Precreating node instance: nothing to do
2021-04-11 03:42:33.574 CFY [sharedsshkey_pgrs_9isfyb] Creating node instance
2021-04-11 03:42:33.738 CFY [sharedsshkey_pgrs_9isfyb.create] Sending task 'sshkeyshare.keyshare_plugin.generate'
2021-04-11 03:42:38.046 CFY [sharedsshkey_pgrs_9isfyb.create] Task succeeded 'sshkeyshare.keyshare_plugin.generate'
2021-04-11 03:42:38.105 CFY [sharedsshkey_pgrs_9isfyb] Node instance created
2021-04-11 03:42:38.436 CFY [sharedsshkey_pgrs_9isfyb] Configuring node instance: nothing to do
2021-04-11 03:42:38.516 CFY [sharedsshkey_pgrs_9isfyb] Starting node instance: nothing to do
2021-04-11 03:42:38.635 CFY [sharedsshkey_pgrs_9isfyb] Poststarting node instance: nothing to do
2021-04-11 03:42:38.901 CFY [sharedsshkey_pgrs_9isfyb] Node instance started
2021-04-11 03:42:39.371 CFY [pgaas_cluster_236h68] Validating node instance before creation: nothing to do
2021-04-11 03:42:39.442 CFY [pgaas_cluster_236h68] Precreating node instance: nothing to do
2021-04-11 03:42:39.573 CFY [pgaas_cluster_236h68] Creating node instance
2021-04-11 03:42:39.911 CFY [pgaas_cluster_236h68.create] Sending task 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-11 03:42:43.688 LOG [pgaas_cluster_236h68.create] WARNING: add_pgaas_cluster() invoked
2021-04-11 03:42:43.947 LOG [pgaas_cluster_236h68.create] WARNING: All done
2021-04-11 03:42:44.738 CFY [pgaas_cluster_236h68.create] Task succeeded 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-11 03:42:44.790 CFY [pgaas_cluster_236h68] Node instance created
2021-04-11 03:42:45.069 CFY [pgaas_cluster_236h68] Configuring node instance: nothing to do
2021-04-11 03:42:45.176 CFY [pgaas_cluster_236h68] Starting node instance: nothing to do
2021-04-11 03:42:45.292 CFY [pgaas_cluster_236h68] Poststarting node instance: nothing to do
2021-04-11 03:42:45.373 CFY [pgaas_cluster_236h68] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-11 03:42:45.939 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment pgaas_initdb
* Run 'cfy events list f556d0bb-cf22-49de-b14b-d30104256756' to retrieve the execution's events/logs
+ deploy tcagen2 k8s-tcagen2.yaml k8s-tcagen2-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=tcagen2'
+ deploy ves-tls k8s-ves.yaml k8s-ves-inputs-tls.yaml
+ set +e
+ cm_hasany 'blueprints?id=ves-tls'
+ deploy prh k8s-prh.yaml k8s-prh-inputs.yaml
+ deploy holmes_rules k8s-holmes-rules.yaml k8s-holmes_rules-inputs.yaml
+ deploy hv-ves k8s-hv-ves.yaml k8s-hv_ves-inputs.yaml
+ set +e
+ set +e
+ cm_hasany 'blueprints?id=hv-ves'
+ cm_hasany 'blueprints?id=holmes_rules'
+ set +e
++ /bin/jq .metadata.pagination.total
+ cm_hasany 'blueprints?id=prh'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=tcagen2&_include=id'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=ves-tls&_include=id'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=hv-ves&_include=id'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_rules&_include=id'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=prh&_include=id'
++ /bin/jq .metadata.pagination.total
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b hv-ves /blueprints/k8s-hv-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b prh /blueprints/k8s-prh.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b tcagen2 /blueprints/k8s-tcagen2.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b ves-tls /blueprints/k8s-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_rules /blueprints/k8s-holmes-rules.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Uploading blueprint /blueprints/k8s-hv-ves.yaml...
Uploading blueprint /blueprints/k8s-tcagen2.yaml...
k8s-hv-ves.yaml |######################-------------------------------| 41.43%
k8s-hv-ves.yaml |############################################---------| 82.85%
k8s-hv-ves.yaml |#####################################################| 100.0%
k8s-tcagen2.yaml |######################------------------------------| 41.42%
k8s-tcagen2.yaml |###########################################---------| 82.85%
k8s-tcagen2.yaml |####################################################| 100.0%Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-holmes-rules.... |####################----------------------------| 41.41%
k8s-holmes-rules.... |########################################--------| 82.83%
k8s-holmes-rules.... |################################################| 100.0%Uploading blueprint /blueprints/k8s-ves.yaml...
Uploading blueprint /blueprints/k8s-prh.yaml...
k8s-ves.yaml |#######################---------------------------------| 41.44%
k8s-ves.yaml |##############################################----------| 82.88%
k8s-ves.yaml |########################################################| 100.0%
k8s-prh.yaml |#######################---------------------------------| 41.44%
k8s-prh.yaml |##############################################----------| 82.87%
k8s-prh.yaml |########################################################| 100.0%
Blueprint uploaded. The blueprint's id is hv-ves
Blueprint uploaded. The blueprint's id is tcagen2
+ cm_hasany 'deployments?id=hv-ves'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=hv-ves&_include=id'
++ /bin/jq .metadata.pagination.total
+ cm_hasany 'deployments?id=tcagen2'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=tcagen2&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-tcagen2-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-tcagen2-inputs.yaml
+ cfy deployments create -b tcagen2 -i/inputs/k8s-tcagen2-inputs.yaml tcagen2
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-hv_ves-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-hv_ves-inputs.yaml
+ cfy deployments create -b hv-ves -i/inputs/k8s-hv_ves-inputs.yaml hv-ves
Blueprint uploaded. The blueprint's id is ves-tls
+ cm_hasany 'deployments?id=ves-tls'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=ves-tls&_include=id'
Blueprint uploaded. The blueprint's id is prh
Blueprint uploaded. The blueprint's id is holmes_rules
+ cm_hasany 'deployments?id=prh'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=prh&_include=id'
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-ves-inputs-tls.yaml ']'
+ INPUTS=-i/inputs/k8s-ves-inputs-tls.yaml
+ cfy deployments create -b ves-tls -i/inputs/k8s-ves-inputs-tls.yaml ves-tls
+ cm_hasany 'deployments?id=holmes_rules'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=holmes_rules&_include=id'
++ /bin/jq .metadata.pagination.total
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-prh-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-prh-inputs.yaml
+ cfy deployments create -b prh -i/inputs/k8s-prh-inputs.yaml prh
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-holmes_rules-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-holmes_rules-inputs.yaml
+ cfy deployments create -b holmes_rules -i/inputs/k8s-holmes_rules-inputs.yaml holmes_rules
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint hv-ves...
Creating new deployment from blueprint tcagen2...
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint ves-tls...
Creating new deployment from blueprint prh...
Creating new deployment from blueprint holmes_rules...
Deployment created. The deployment's id is hv-ves
+ cm_hasany 'node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
Deployment created. The deployment's id is tcagen2
+ cm_hasany 'node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d hv-ves install
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d tcagen2 install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Deployment created. The deployment's id is ves-tls
+ cm_hasany 'node-instances?deployment_id=ves-tls&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=ves-tls&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `hv-ves` [timeout=900 seconds]
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d ves-tls install
Executing workflow `install` on deployment `tcagen2` [timeout=900 seconds]
Deployment environment creation is pending...
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Deployment environment creation is pending...
Executing workflow `install` on deployment `ves-tls` [timeout=900 seconds]
Deployment created. The deployment's id is prh
+ cm_hasany 'node-instances?deployment_id=prh&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=prh&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
Deployment created. The deployment's id is holmes_rules
+ cm_hasany 'node-instances?deployment_id=holmes_rules&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=holmes_rules&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
Deployment environment creation is pending...
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d prh install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_rules install
Executing workflow `install` on deployment `prh` [timeout=900 seconds]
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `holmes_rules` [timeout=900 seconds]
Deployment environment creation is pending...
Deployment environment creation is pending...
2021-04-11 03:43:04.892 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:43:04.981 CFY Installing deployment and workflow plugins
2021-04-11 03:43:05.883 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:43:05.966 CFY Installing deployment and workflow plugins
2021-04-11 03:43:06.066 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:06.095 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:07.484 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:43:07.567 CFY Installing deployment and workflow plugins
2021-04-11 03:43:07.665 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:07.682 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:05.080 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:05.095 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:08.076 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:43:08.084 CFY Installing deployment and workflow plugins
2021-04-11 03:43:08.183 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:08.263 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:08.091 CFY Starting 'create_deployment_environment' workflow execution
2021-04-11 03:43:08.173 CFY Installing deployment and workflow plugins
2021-04-11 03:43:08.270 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:08.280 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:10.772 LOG INFO: Installing plugin: k8s
2021-04-11 03:43:09.684 LOG INFO: Installing plugin: k8s
2021-04-11 03:43:12.506 LOG INFO: Using existing installation of managed plugin: d6a41dee-355f-4e34-b826-038a34638b0d [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:12.507 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:12.594 CFY Creating deployment work directory
2021-04-11 03:43:11.882 LOG INFO: Installing plugin: k8s
2021-04-11 03:43:12.493 LOG INFO: Installing plugin: k8s
2021-04-11 03:43:12.567 LOG INFO: Installing plugin: pgaas
2021-04-11 03:43:13.567 LOG INFO: Using existing installation of managed plugin: d6a41dee-355f-4e34-b826-038a34638b0d [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:13.569 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:13.585 CFY Creating deployment work directory
2021-04-11 03:43:14.088 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:43:13.186 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:43:14.481 LOG INFO: Using existing installation of managed plugin: d6a41dee-355f-4e34-b826-038a34638b0d [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:14.482 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:14.612 CFY Creating deployment work directory
2021-04-11 03:43:14.963 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:43:14.675 LOG INFO: Using existing installation of managed plugin: d6a41dee-355f-4e34-b826-038a34638b0d [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:14.676 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:14.791 CFY Creating deployment work directory
2021-04-11 03:43:15.063 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:43:14.829 LOG INFO: Using existing installation of managed plugin: ebd9dcf1-abc1-4537-a5b5-46fe2ddacc31 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:14.830 LOG INFO: Installing plugin: k8s
2021-04-11 03:43:15.661 LOG INFO: Using existing installation of managed plugin: d6a41dee-355f-4e34-b826-038a34638b0d [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-11 03:43:15.663 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-11 03:43:15.695 CFY Creating deployment work directory
2021-04-11 03:43:15.990 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-11 03:43:19.175 CFY Starting 'install' workflow execution
2021-04-11 03:43:20.775 CFY [hv-ves_6bwzde] Validating node instance before creation: nothing to do
2021-04-11 03:43:21.007 CFY [hv-ves_6bwzde] Precreating node instance: nothing to do
2021-04-11 03:43:21.765 CFY [hv-ves_6bwzde] Creating node instance
2021-04-11 03:43:22.095 CFY [hv-ves_6bwzde.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:43:22.605 CFY Starting 'install' workflow execution
2021-04-11 03:43:24.212 CFY [docker.tca_vbadvh] Validating node instance before creation: nothing to do
2021-04-11 03:43:24.562 CFY [docker.tca_vbadvh] Precreating node instance: nothing to do
2021-04-11 03:43:23.375 CFY Starting 'install' workflow execution
2021-04-11 03:43:24.987 CFY [ves_mgrn4b] Validating node instance before creation: nothing to do
2021-04-11 03:43:25.193 CFY [ves_mgrn4b] Precreating node instance: nothing to do
2021-04-11 03:43:25.069 CFY Starting 'install' workflow execution
2021-04-11 03:43:26.522 CFY [pgaasvm_g5zfa2] Validating node instance before creation: nothing to do
2021-04-11 03:43:24.687 CFY Starting 'install' workflow execution
2021-04-11 03:43:26.175 CFY [prh_nfahwm] Validating node instance before creation: nothing to do
2021-04-11 03:43:26.391 CFY [prh_nfahwm] Precreating node instance: nothing to do
2021-04-11 03:43:25.373 CFY [docker.tca_vbadvh] Creating node instance
2021-04-11 03:43:25.963 CFY [docker.tca_vbadvh.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:43:25.902 CFY [ves_mgrn4b] Creating node instance
2021-04-11 03:43:26.195 CFY [ves_mgrn4b.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:43:26.628 CFY [pgaasvm_g5zfa2] Precreating node instance: nothing to do
2021-04-11 03:43:27.014 CFY [pgaasvm_g5zfa2] Creating node instance
2021-04-11 03:43:27.313 CFY [pgaasvm_g5zfa2.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-11 03:43:26.637 CFY [prh_nfahwm] Creating node instance
2021-04-11 03:43:26.839 CFY [prh_nfahwm.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:43:31.672 LOG [pgaasvm_g5zfa2.create] WARNING: create_database(holmes)
2021-04-11 03:43:35.429 LOG [pgaasvm_g5zfa2.create] WARNING: All done
2021-04-11 03:43:36.910 CFY [pgaasvm_g5zfa2.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-11 03:43:39.240 LOG [ves_mgrn4b.create] INFO: Added config for dcae-ves-collector
2021-04-11 03:43:39.240 LOG [ves_mgrn4b.create] INFO: Done setting up: dcae-ves-collector
2021-04-11 03:43:37.472 CFY [pgaasvm_g5zfa2] Node instance created
2021-04-11 03:43:37.884 CFY [pgaasvm_g5zfa2] Configuring node instance: nothing to do
2021-04-11 03:43:38.198 CFY [pgaasvm_g5zfa2] Starting node instance: nothing to do
2021-04-11 03:43:38.487 CFY [pgaasvm_g5zfa2] Poststarting node instance: nothing to do
2021-04-11 03:43:38.763 CFY [pgaasvm_g5zfa2] Node instance started
2021-04-11 03:43:39.329 CFY [holmesrules_uoq5gk] Validating node instance before creation: nothing to do
2021-04-11 03:43:39.611 CFY [holmesrules_uoq5gk] Precreating node instance: nothing to do
2021-04-11 03:43:39.836 CFY [holmesrules_uoq5gk] Creating node instance
2021-04-11 03:43:40.521 CFY [holmesrules_uoq5gk.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:43:39.256 LOG [prh_nfahwm.create] INFO: Added config for dcae-prh
2021-04-11 03:43:39.257 LOG [prh_nfahwm.create] INFO: Done setting up: dcae-prh
2021-04-11 03:43:40.576 CFY [prh_nfahwm.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:43:40.993 CFY [prh_nfahwm] Node instance created
2021-04-11 03:43:39.256 LOG [hv-ves_6bwzde.create] INFO: Added config for dcae-hv-ves-collector
2021-04-11 03:43:39.256 LOG [hv-ves_6bwzde.create] INFO: Done setting up: dcae-hv-ves-collector
2021-04-11 03:43:40.082 CFY [hv-ves_6bwzde.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:43:40.199 CFY [hv-ves_6bwzde] Node instance created
2021-04-11 03:43:40.682 CFY [hv-ves_6bwzde] Configuring node instance: nothing to do
2021-04-11 03:43:40.780 CFY [hv-ves_6bwzde] Starting node instance
2021-04-11 03:43:41.713 CFY [hv-ves_6bwzde.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:43:39.256 LOG [docker.tca_vbadvh.create] INFO: Added config for dcae-tcagen2
2021-04-11 03:43:39.257 LOG [docker.tca_vbadvh.create] INFO: Done setting up: dcae-tcagen2
2021-04-11 03:43:40.310 CFY [docker.tca_vbadvh.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:43:40.413 CFY [docker.tca_vbadvh] Node instance created
2021-04-11 03:43:40.982 CFY [docker.tca_vbadvh] Configuring node instance: nothing to do
2021-04-11 03:43:41.182 CFY [docker.tca_vbadvh] Starting node instance
2021-04-11 03:43:40.074 CFY [ves_mgrn4b.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:43:40.114 CFY [ves_mgrn4b] Node instance created
2021-04-11 03:43:40.584 CFY [ves_mgrn4b] Configuring node instance: nothing to do
2021-04-11 03:43:41.365 CFY [ves_mgrn4b] Starting node instance
2021-04-11 03:43:41.764 CFY [ves_mgrn4b.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:43:41.183 CFY [prh_nfahwm] Configuring node instance: nothing to do
2021-04-11 03:43:41.905 CFY [prh_nfahwm] Starting node instance
2021-04-11 03:43:42.202 CFY [prh_nfahwm.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:43:42.063 CFY [docker.tca_vbadvh.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:43:49.465 LOG [ves_mgrn4b.start] INFO: Starting k8s deployment for dcae-ves-collector, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.7.9, env: {'DCAE_CA_CERTPATH': '/opt/app/dcae-certificate//cacert.pem', 'CONSUL_HOST': u'consul-server.onap', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/dcae-ves-collector'}, kwargs: {'readiness': {u'endpoint': u'/healthcheck', u'type': u'http', u'timeout': u'1s', u'interval': u'15s'}, 'liveness': {}, 'tls_info': {u'use_tls': True, u'cert_directory': u'/opt/app/dcae-certificate/'}, 'envs': {}, 'labels': {'cfydeployment': u'ves-tls', 'cfynodeinstance': u'ves_mgrn4b', 'cfynode': u'ves'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'dcae-ves-collector', u'sans': u'dcae-ves-collector:ves-collector:ves'}, u'cert_type': u'JKS', u'external_cert_directory': u'/opt/app/dcae-certificate/', u'ca_name': u'RA'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/VESCollector/logs'}, 'ports': [u'8080:0', u'8443:30417'], 'k8s_location': u'central'}
2021-04-11 03:43:49.466 LOG [ves_mgrn4b.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:43:49.483 LOG [ves_mgrn4b.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:43:49.793 LOG [holmesrules_uoq5gk.create] INFO: Added config for holmes-rule-mgmt
2021-04-11 03:43:49.794 LOG [holmesrules_uoq5gk.create] INFO: Done setting up: holmes-rule-mgmt
2021-04-11 03:43:50.792 CFY [holmesrules_uoq5gk.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:43:50.913 CFY [holmesrules_uoq5gk] Node instance created
2021-04-11 03:43:50.919 LOG [prh_nfahwm.start] INFO: Starting k8s deployment for dcae-prh, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.5.4, env: {'DCAE_CA_CERTPATH': '/opt/app/prh/etc/cert/cacert.pem', 'CONSUL_HOST': u'consul-server.onap', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/dcae-prh'}, kwargs: {'readiness': {u'endpoint': u'/heartbeat', u'type': u'http', u'timeout': u'1s', u'interval': u'15s'}, 'liveness': {}, 'tls_info': {u'use_tls': True, u'cert_directory': u'/opt/app/prh/etc/cert'}, 'envs': {}, 'labels': {'cfydeployment': u'prh', 'cfynodeinstance': u'prh_nfahwm', 'cfynode': u'prh'}, 'external_cert': {u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'ca_name': u'RA', u'use_external_tls': False}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/prh/logs'}, 'ports': [u'8100:0'], 'k8s_location': u'central'}
2021-04-11 03:43:50.919 LOG [prh_nfahwm.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:43:51.005 LOG [hv-ves_6bwzde.start] INFO: Starting k8s deployment for dcae-hv-ves-collector, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.1, env: {'DCAE_CA_CERTPATH': '/etc/ves-hv/ssl/cacert.pem', u'JAVA_OPTS': u'-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml', 'CONSUL_HOST': u'consul-server.onap', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/dcae-hv-ves-collector'}, kwargs: {'readiness': {u'interval': u'15s', u'type': u'script', u'timeout': u'2s', u'script': u'/opt/ves-hv-collector/healthcheck.sh'}, 'liveness': {}, 'tls_info': {u'use_tls': True, u'cert_directory': u'/etc/ves-hv/ssl'}, 'envs': {u'JAVA_OPTS': u'-Dlogback.configurationFile=/etc/ONAP/dcae-hv-ves-collector/logback.xml'}, 'labels': {'cfydeployment': u'hv-ves', 'cfynodeinstance': u'hv-ves_6bwzde', 'cfynode': u'hv-ves'}, 'external_cert': {u'external_cert_directory': u'/etc/ves-hv/ssl', u'external_certificate_parameters': {u'common_name': u'dcae-hv-ves-collector', u'sans': u'dcae-hv-ves-collector:hv-ves-collector:hv-ves'}, u'cert_type': u'JKS', u'ca_name': u'RA', u'use_external_tls': False}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/var/log/ONAP/dcae-hv-ves-collector'}, 'ports': [u'6061:30222'], 'k8s_location': u'central'}
2021-04-11 03:43:51.005 LOG [hv-ves_6bwzde.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:43:51.212 LOG [docker.tca_vbadvh.start] INFO: Starting k8s deployment for dcae-tcagen2, image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1, env: {'DCAE_CA_CERTPATH': '/etc/tca-gen2/ssl/cacert.pem', 'CONSUL_HOST': u'consul-server.onap', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/dcae-tcagen2'}, kwargs: {'readiness': {u'endpoint': u'/actuator/health', u'type': u'http', u'timeout': u'10s', u'interval': u'30s'}, 'liveness': {}, 'tls_info': {u'use_tls': True, u'cert_directory': u'/etc/tca-gen2/ssl'}, 'envs': {}, 'labels': {'cfydeployment': u'tcagen2', 'cfynodeinstance': u'docker.tca_vbadvh', 'cfynode': u'docker.tca'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/logs/dcae-analytics-tca'}, 'ports': [u'9091:0'], 'k8s_location': u'central'}
2021-04-11 03:43:51.212 LOG [docker.tca_vbadvh.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:43:51.272 LOG [docker.tca_vbadvh.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:43:51.369 LOG [docker.tca_vbadvh.start] INFO: k8s deployment initiated successfully for dcae-tcagen2: {'services': ['dcae-tcagen2'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-tcagen2'}
2021-04-11 03:43:50.466 LOG [ves_mgrn4b.start] INFO: k8s deployment initiated successfully for dcae-ves-collector: {'services': ['dcae-ves-collector', 'xdcae-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-ves-collector'}
2021-04-11 03:43:50.466 LOG [ves_mgrn4b.start] INFO: Waiting up to 1800 secs for dcae-ves-collector to become ready
2021-04-11 03:43:51.415 CFY [holmesrules_uoq5gk] Configuring node instance: nothing to do
2021-04-11 03:43:51.648 CFY [holmesrules_uoq5gk] Starting node instance
2021-04-11 03:43:51.759 CFY [holmesrules_uoq5gk.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:43:55.842 LOG [holmesrules_uoq5gk.start] INFO: Starting k8s deployment for holmes-rule-mgmt, image: nexus3.onap.org:10001/onap/holmes/rule-management:1.2.9, env: {u'MSB_ADDR': u'msb-iag.onap', 'CONSUL_HOST': u'consul-server.onap', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/holmes-rule-mgmt', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'DCAE_CA_CERTPATH': '/opt/dcae/cacert/cacert.pem', u'URL_JDBC': u'dcae-pg-primary.onap', u'JDBC_USERNAME': u'holmes_admin', u'JDBC_PASSWORD': u'8fb2a2335a3d915daf8846c88b56b2369f57a88f32628550814da99ca87e26a6'}, kwargs: {'readiness': {}, 'liveness': {}, 'tls_info': {}, 'envs': {u'MSB_ADDR': u'msb-iag.onap', u'URL_JDBC': u'dcae-pg-primary.onap', u'JDBC_USERNAME': u'holmes_admin', u'JDBC_PASSWORD': u'8fb2a2335a3d915daf8846c88b56b2369f57a88f32628550814da99ca87e26a6'}, 'labels': {'cfydeployment': u'holmes_rules', 'cfynodeinstance': u'holmesrules_uoq5gk', 'cfynode': u'holmesrules'}, 'external_cert': {u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'ca_name': u'RA', u'use_external_tls': False}, 'resource_config': {u'requests': {u'cpu': u'250m', u'memory': u'256Mi'}, u'limits': {u'cpu': u'250m', u'memory': u'1024Mi'}}, 'volumes': [], 'log_info': {}, 'ports': [u'9101:0', u'9104:0'], 'k8s_location': u'central'}
2021-04-11 03:43:50.974 LOG [prh_nfahwm.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:43:51.137 LOG [prh_nfahwm.start] INFO: k8s deployment initiated successfully for dcae-prh: {'services': ['dcae-prh'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-prh'}
2021-04-11 03:43:51.162 LOG [prh_nfahwm.start] INFO: Waiting up to 1800 secs for dcae-prh to become ready
2021-04-11 03:43:51.017 LOG [hv-ves_6bwzde.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:43:51.265 LOG [hv-ves_6bwzde.start] INFO: k8s deployment initiated successfully for dcae-hv-ves-collector: {'services': ['dcae-hv-ves-collector', 'xdcae-hv-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-hv-ves-collector'}
2021-04-11 03:43:51.266 LOG [hv-ves_6bwzde.start] INFO: Waiting up to 1800 secs for dcae-hv-ves-collector to become ready
2021-04-11 03:43:51.370 LOG [docker.tca_vbadvh.start] INFO: Waiting up to 1800 secs for dcae-tcagen2 to become ready
2021-04-11 03:43:55.842 LOG [holmesrules_uoq5gk.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:43:55.855 LOG [holmesrules_uoq5gk.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:43:55.944 LOG [holmesrules_uoq5gk.start] INFO: k8s deployment initiated successfully for holmes-rule-mgmt: {'services': ['holmes-rule-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-rule-mgmt'}
2021-04-11 03:43:55.944 LOG [holmesrules_uoq5gk.start] INFO: Waiting up to 1800 secs for holmes-rule-mgmt to become ready
2021-04-11 03:45:06.742 LOG [prh_nfahwm.start] INFO: k8s deployment is ready for: dcae-prh
2021-04-11 03:45:06.743 LOG [prh_nfahwm.start] INFO: Done starting: dcae-prh
2021-04-11 03:45:07.638 CFY [prh_nfahwm.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:45:07.748 CFY [prh_nfahwm] Poststarting node instance: nothing to do
2021-04-11 03:45:07.817 CFY [prh_nfahwm] Node instance started
2021-04-11 03:45:08.500 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment prh
* Run 'cfy events list b34c4703-5b8e-4b95-9ce3-c54a4e3bb210' to retrieve the execution's events/logs
2021-04-11 03:45:17.142 LOG [hv-ves_6bwzde.start] INFO: k8s deployment is ready for: dcae-hv-ves-collector
2021-04-11 03:45:17.143 LOG [hv-ves_6bwzde.start] INFO: Done starting: dcae-hv-ves-collector
2021-04-11 03:45:17.805 CFY [hv-ves_6bwzde.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:45:17.922 CFY [hv-ves_6bwzde] Poststarting node instance: nothing to do
2021-04-11 03:45:18.003 CFY [hv-ves_6bwzde] Node instance started
2021-04-11 03:45:18.587 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment hv-ves
* Run 'cfy events list bcbb7a8d-36f3-4014-94ed-8a7ae721245a' to retrieve the execution's events/logs
2021-04-11 03:45:37.154 LOG [ves_mgrn4b.start] INFO: k8s deployment is ready for: dcae-ves-collector
2021-04-11 03:45:37.155 LOG [ves_mgrn4b.start] INFO: Done starting: dcae-ves-collector
2021-04-11 03:45:38.072 CFY [ves_mgrn4b.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:45:38.106 CFY [ves_mgrn4b] Poststarting node instance: nothing to do
2021-04-11 03:45:38.359 CFY [ves_mgrn4b] Node instance started
2021-04-11 03:45:38.722 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment ves-tls
* Run 'cfy events list bf519d67-8f80-4e2b-aee9-cd3874835782' to retrieve the execution's events/logs
2021-04-11 03:45:58.174 LOG [holmesrules_uoq5gk.start] INFO: k8s deployment is ready for: holmes-rule-mgmt
2021-04-11 03:45:58.695 LOG [docker.tca_vbadvh.start] INFO: k8s deployment is ready for: dcae-tcagen2
2021-04-11 03:45:58.696 LOG [docker.tca_vbadvh.start] INFO: Done starting: dcae-tcagen2
2021-04-11 03:45:58.175 LOG [holmesrules_uoq5gk.start] INFO: Done starting: holmes-rule-mgmt
2021-04-11 03:45:58.962 CFY [holmesrules_uoq5gk.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:45:59.041 CFY [holmesrules_uoq5gk] Poststarting node instance: nothing to do
2021-04-11 03:45:59.281 CFY [holmesrules_uoq5gk] Node instance started
2021-04-11 03:45:59.553 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_rules
* Run 'cfy events list 2a6372b0-f4c8-4a5f-9531-22b232361fb3' to retrieve the execution's events/logs
+ deploy holmes_engine k8s-holmes-engine.yaml k8s-holmes_engine-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=holmes_engine'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_engine&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_engine /blueprints/k8s-holmes-engine.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
2021-04-11 03:46:00.147 CFY [docker.tca_vbadvh.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:46:00.208 CFY [docker.tca_vbadvh] Poststarting node instance: nothing to do
2021-04-11 03:46:00.434 CFY [docker.tca_vbadvh] Node instance started
2021-04-11 03:46:00.830 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment tcagen2
* Run 'cfy events list 29e39f02-c5c8-44b5-bd18-54dfc0eacba7' to retrieve the execution's events/logs
Uploading blueprint /blueprints/k8s-holmes-engine.yaml...
k8s-holmes-engine... |####################----------------------------| 41.41%
k8s-holmes-engine... |########################################--------| 82.83%
k8s-holmes-engine... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is holmes_engine
+ cm_hasany 'deployments?id=holmes_engine'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=holmes_engine&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-holmes_engine-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-holmes_engine-inputs.yaml
+ cfy deployments create -b holmes_engine -i/inputs/k8s-holmes_engine-inputs.yaml holmes_engine
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint holmes_engine...
Deployment created. The deployment's id is holmes_engine
+ cm_hasany 'node-instances?deployment_id=holmes_engine&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=holmes_engine&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_engine install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `holmes_engine` [timeout=900 seconds]
2021-04-11 03:46:19.629 CFY Starting 'install' workflow execution
2021-04-11 03:46:20.300 CFY [pgaasvm_1irgjg] Validating node instance before creation: nothing to do
2021-04-11 03:46:20.393 CFY [pgaasvm_1irgjg] Precreating node instance: nothing to do
2021-04-11 03:46:20.708 CFY [pgaasvm_1irgjg] Creating node instance
2021-04-11 03:46:20.861 CFY [pgaasvm_1irgjg.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-11 03:46:23.467 LOG [pgaasvm_1irgjg.create] WARNING: create_database(holmes)
2021-04-11 03:46:24.871 CFY [pgaasvm_1irgjg.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-11 03:46:25.069 CFY [pgaasvm_1irgjg] Node instance created
2021-04-11 03:46:25.183 CFY [pgaasvm_1irgjg] Configuring node instance: nothing to do
2021-04-11 03:46:25.284 CFY [pgaasvm_1irgjg] Starting node instance: nothing to do
2021-04-11 03:46:25.406 CFY [pgaasvm_1irgjg] Poststarting node instance: nothing to do
2021-04-11 03:46:25.638 CFY [pgaasvm_1irgjg] Node instance started
2021-04-11 03:46:26.104 CFY [holmesengine_998xyy] Validating node instance before creation: nothing to do
2021-04-11 03:46:26.213 CFY [holmesengine_998xyy] Precreating node instance: nothing to do
2021-04-11 03:46:26.330 CFY [holmesengine_998xyy] Creating node instance
2021-04-11 03:46:26.671 CFY [holmesengine_998xyy.create] Sending task 'k8splugin.create_for_components'
2021-04-11 03:46:33.666 LOG [holmesengine_998xyy.create] INFO: Added config for holmes-engine-mgmt
2021-04-11 03:46:33.667 LOG [holmesengine_998xyy.create] INFO: Done setting up: holmes-engine-mgmt
2021-04-11 03:46:34.449 CFY [holmesengine_998xyy.create] Task succeeded 'k8splugin.create_for_components'
2021-04-11 03:46:34.513 CFY [holmesengine_998xyy] Node instance created
2021-04-11 03:46:34.825 CFY [holmesengine_998xyy] Configuring node instance: nothing to do
2021-04-11 03:46:34.904 CFY [holmesengine_998xyy] Starting node instance
2021-04-11 03:46:35.264 CFY [holmesengine_998xyy.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:46:39.546 LOG [holmesengine_998xyy.start] INFO: Starting k8s deployment for holmes-engine-mgmt, image: nexus3.onap.org:10001/onap/holmes/engine-management:1.2.9, env: {u'MSB_ADDR': u'msb-iag.onap', 'CONSUL_HOST': u'consul-server.onap', 'CBS_CONFIG_URL': 'https://config-binding-service:10443/service_component_all/holmes-engine-mgmt', 'CONFIG_BINDING_SERVICE': 'config-binding-service', 'DCAE_CA_CERTPATH': '/opt/dcae/cacert/cacert.pem', u'URL_JDBC': u'dcae-pg-primary.onap', u'JDBC_USERNAME': u'holmes_admin', u'JDBC_PASSWORD': u'8fb2a2335a3d915daf8846c88b56b2369f57a88f32628550814da99ca87e26a6'}, kwargs: {'readiness': {}, 'liveness': {}, 'tls_info': {}, 'envs': {u'MSB_ADDR': u'msb-iag.onap', u'URL_JDBC': u'dcae-pg-primary.onap', u'JDBC_USERNAME': u'holmes_admin', u'JDBC_PASSWORD': u'8fb2a2335a3d915daf8846c88b56b2369f57a88f32628550814da99ca87e26a6'}, 'labels': {'cfydeployment': u'holmes_engine', 'cfynodeinstance': u'holmesengine_998xyy', 'cfynode': u'holmesengine'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/external'}, 'resource_config': {u'requests': {u'cpu': u'500m', u'memory': u'256Mi'}, u'limits': {u'cpu': u'500m', u'memory': u'1024Mi'}}, 'volumes': [], 'log_info': {}, 'ports': [u'9102:0'], 'k8s_location': u'central'}
2021-04-11 03:46:39.547 LOG [holmesengine_998xyy.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-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'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', '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'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-11 03:46:39.562 LOG [holmesengine_998xyy.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-11 03:46:39.728 LOG [holmesengine_998xyy.start] INFO: k8s deployment initiated successfully for holmes-engine-mgmt: {'services': ['holmes-engine-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-engine-mgmt'}
2021-04-11 03:46:39.728 LOG [holmesengine_998xyy.start] INFO: Waiting up to 1800 secs for holmes-engine-mgmt to become ready
2021-04-11 03:47:47.972 LOG [holmesengine_998xyy.start] INFO: k8s deployment is ready for: holmes-engine-mgmt
2021-04-11 03:47:47.972 LOG [holmesengine_998xyy.start] INFO: Done starting: holmes-engine-mgmt
2021-04-11 03:47:48.847 CFY [holmesengine_998xyy.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-11 03:47:48.943 CFY [holmesengine_998xyy] Poststarting node instance: nothing to do
2021-04-11 03:47:49.215 CFY [holmesengine_998xyy] Node instance started
2021-04-11 03:47:49.501 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_engine
* Run 'cfy events list 526d853d-3695-4c97-be2e-fe63b9fe1927' to retrieve the execution's events/logs
+ cfy deployments list
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Listing all deployments...
Deployments:
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| id | blueprint_id | created_at | updated_at | visibility | tenant_name | created_by | site_name |
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| pgaas_initdb | pgaas_initdb | 2021-04-11 03:42:21.405 | 2021-04-11 03:42:21.405 | tenant | default_tenant | admin | |
| hv-ves | hv-ves | 2021-04-11 03:42:57.956 | 2021-04-11 03:42:57.956 | tenant | default_tenant | admin | |
| tcagen2 | tcagen2 | 2021-04-11 03:42:57.977 | 2021-04-11 03:42:57.977 | tenant | default_tenant | admin | |
| ves-tls | ves-tls | 2021-04-11 03:42:58.458 | 2021-04-11 03:42:58.458 | tenant | default_tenant | admin | |
| prh | prh | 2021-04-11 03:42:59.186 | 2021-04-11 03:42:59.186 | tenant | default_tenant | admin | |
| holmes_rules | holmes_rules | 2021-04-11 03:42:59.402 | 2021-04-11 03:42:59.402 | tenant | default_tenant | admin | |
| holmes_engine | holmes_engine | 2021-04-11 03:46:06.056 | 2021-04-11 03:46:06.056 | tenant | default_tenant | admin | |
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
Showing 7 of 7 deployments
+ . /scripts/inventory.sh
++ INVENTORY=https://inventory:8080/dcae-service-types
++ OWNER=dcaeorch
++ COMPONENT=dcae
++ APPLICATION=DCAE
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-bbs-event-processor.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-bbs-event-processor.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-bbs-event-processor.yaml .yaml
++ flatten /blueprints/k8s-bbs-event-processor.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n'
++ echo '# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-bbs-event-processor",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1307 100 47 100 1260 171 4587 --:--:-- --:--:-- --:--:-- 4598
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-datafile.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-datafile.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-datafile.yaml .yaml
++ flatten /blueprints/k8s-datafile.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <>\n type: data_router\n dmaap.ftpesConfig.keyCert: /opt/app/datafile/config/cert.jks\n dmaap.ftpesConfig.keyPasswordPath: /opt/app/datafile/config/jks.pass\n dmaap.ftpesConfig.trustedCa: /opt/app/datafile/config/trust.jks\n dmaap.ftpesConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.enableDmaapCertAuth: true\n dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/p12.pass\n dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.p12\n dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks\n dmaap.dmaapConsumerConfiguration.consumerGroup:\n get_input: consumer_group\n dmaap.dmaapConsumerConfiguration.consumerId:\n get_input: consumer_id\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n sftp.security.strictHostKeyChecking: true\n streams_subscribes:\n dmaap_subscriber:\n type: message_router\n dmaap_info:\n topic_url: { concat: ['\''https://message-router:3905/events/'\'',{ get_input: topic_name }] }\n docker_config:\n healthcheck:\n interval: 15s\n timeout: 1s\n type: http\n endpoint: /heartbeat\n ports:\n - concat: [\"8100\", {get_input: external_port}]\n - concat: [\"8433\", {get_input: external_port}]\n image:\n get_input: tag_version\n service_component_type: datafile-collector\n log_info:\n log_directory:\n get_input: log_directory\n replicas:\n get_input: replicas\n streams_publishes:\n - name: feed0\n location:\n get_input: PM_MEAS_FILES_feed0_location\n type: data_router\n tls_info:\n cert_directory:\n get_input: cert_directory\n use_tls:\n get_input: use_tls\n resource_config:\n limits:\n cpu:\n get_input: datafile-collector_cpu_limit\n memory:\n get_input: datafile-collector_memory_limit\n requests:\n cpu:\n get_input: datafile-collector_cpu_request\n memory:\n get_input: datafile-collector_memory_request\n relationships:\n - type: dcaegen2.relationships.publish_files\n target: feed0\n feed0:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name:\n get_input: feed0_name\n useExisting: true\n'
++ echo '\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <>\n type: data_router\n dmaap.ftpesConfig.keyCert: /opt/app/datafile/config/cert.jks\n dmaap.ftpesConfig.keyPasswordPath: /opt/app/datafile/config/jks.pass\n dmaap.ftpesConfig.trustedCa: /opt/app/datafile/config/trust.jks\n dmaap.ftpesConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.enableDmaapCertAuth: true\n dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/p12.pass\n dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.p12\n dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks\n dmaap.dmaapConsumerConfiguration.consumerGroup:\n get_input: consumer_group\n dmaap.dmaapConsumerConfiguration.consumerId:\n get_input: consumer_id\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n sftp.security.strictHostKeyChecking: true\n streams_subscribes:\n dmaap_subscriber:\n type: message_router\n dmaap_info:\n topic_url: { concat: ['\''https://message-router:3905/events/'\'',{ get_input: topic_name }] }\n docker_config:\n healthcheck:\n interval: 15s\n timeout: 1s\n type: http\n endpoint: /heartbeat\n ports:\n - concat: [\"8100\", {get_input: external_port}]\n - concat: [\"8433\", {get_input: external_port}]\n image:\n get_input: tag_version\n service_component_type: datafile-collector\n log_info:\n log_directory:\n get_input: log_directory\n replicas:\n get_input: replicas\n streams_publishes:\n - name: feed0\n location:\n get_input: PM_MEAS_FILES_feed0_location\n type: data_router\n tls_info:\n cert_directory:\n get_input: cert_directory\n use_tls:\n get_input: use_tls\n resource_config:\n limits:\n cpu:\n get_input: datafile-collector_cpu_limit\n memory:\n get_input: datafile-collector_memory_limit\n requests:\n cpu:\n get_input: datafile-collector_cpu_request\n memory:\n get_input: datafile-collector_memory_request\n relationships:\n - type: dcaegen2.relationships.publish_files\n target: feed0\n feed0:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name:\n get_input: feed0_name\n useExisting: true\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-datafile",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <>\n type: data_router\n dmaap.ftpesConfig.keyCert: /opt/app/datafile/config/cert.jks\n dmaap.ftpesConfig.keyPasswordPath: /opt/app/datafile/config/jks.pass\n dmaap.ftpesConfig.trustedCa: /opt/app/datafile/config/trust.jks\n dmaap.ftpesConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.enableDmaapCertAuth: true\n dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/p12.pass\n dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.p12\n dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks\n dmaap.dmaapConsumerConfiguration.consumerGroup:\n get_input: consumer_group\n dmaap.dmaapConsumerConfiguration.consumerId:\n get_input: consumer_id\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n sftp.security.strictHostKeyChecking: true\n streams_subscribes:\n dmaap_subscriber:\n type: message_router\n dmaap_info:\n topic_url: { concat: ['\''https://message-router:3905/events/'\'',{ get_input: topic_name }] }\n docker_config:\n healthcheck:\n interval: 15s\n timeout: 1s\n type: http\n endpoint: /heartbeat\n ports:\n - concat: [\"8100\", {get_input: external_port}]\n - concat: [\"8433\", {get_input: external_port}]\n image:\n get_input: tag_version\n service_component_type: datafile-collector\n log_info:\n log_directory:\n get_input: log_directory\n replicas:\n get_input: replicas\n streams_publishes:\n - name: feed0\n location:\n get_input: PM_MEAS_FILES_feed0_location\n type: data_router\n tls_info:\n cert_directory:\n get_input: cert_directory\n use_tls:\n get_input: use_tls\n resource_config:\n limits:\n cpu:\n get_input: datafile-collector_cpu_limit\n memory:\n get_input: datafile-collector_memory_limit\n requests:\n cpu:\n get_input: datafile-collector_cpu_request\n memory:\n get_input: datafile-collector_memory_request\n relationships:\n - type: dcaegen2.relationships.publish_files\n target: feed0\n feed0:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name:\n get_input: feed0_name\n useExisting: true\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9623 100 4947 100 4676 17175 16234 --:--:-- --:--:-- --:--:-- 17236
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-datalake-admin-ui.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-datalake-admin-ui.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-datalake-admin-ui.yaml .yaml
++ flatten /blueprints/k8s-datalake-admin-ui.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakeadminui:1.1.0\n container_port:\n type: string\n description: exposed container port\n default: \"8088\"\n host_port:\n type: string\n description: external port\n default: \"30479\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''8088:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n properties:\n application_config:\n FEEDER_ADDR: dl-feeder\n docker_config:\n healthcheck:\n interval: 30s\n timeout: 10s\n type: http\n endpoint: /\n image:\n get_input: image_name\n dns_name: \"dl-admin-ui\"\n name: datalake-admin-ui\n\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakeadminui:1.1.0\n container_port:\n type: string\n description: exposed container port\n default: \"8088\"\n host_port:\n type: string\n description: external port\n default: \"30479\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''8088:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n properties:\n application_config:\n FEEDER_ADDR: dl-feeder\n docker_config:\n healthcheck:\n interval: 30s\n timeout: 10s\n type: http\n endpoint: /\n image:\n get_input: image_name\n dns_name: \"dl-admin-ui\"\n name: datalake-admin-ui\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-datalake-admin-ui",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakeadminui:1.1.0\n container_port:\n type: string\n description: exposed container port\n default: \"8088\"\n host_port:\n type: string\n description: external port\n default: \"30479\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''8088:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n properties:\n application_config:\n FEEDER_ADDR: dl-feeder\n docker_config:\n healthcheck:\n interval: 30s\n timeout: 10s\n type: http\n endpoint: /\n image:\n get_input: image_name\n dns_name: \"dl-admin-ui\"\n name: datalake-admin-ui\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4961 100 2616 100 2345 10245 9184 --:--:-- --:--:-- --:--:-- 10258
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-datalake-des.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-datalake-des.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-datalake-des.yaml .yaml
++ flatten /blueprints/k8s-datalake-des.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 China Mobile\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n#author: Kai Lu (lukai@chinamobile.com)\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - \"https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\"\n - plugin:k8splugin?version=3.4.2\ninputs:\n service_name:\n type: string\n default: '\''dcae-des'\''\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n presto_address:\n type: string\n description: Presto URL\n default: \"dl-presto\"\n presto_port:\n type: string\n description: Presto port\n default: \"9000\"\n presto_username:\n type: string\n description: Presto Username\n default: \"user\"\n presto_password:\n description: Presto password\n type: string\n default: \"test\"\n image_name:\n description: des image URL.\n type: string\n default: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.datalake.exposure.service:1.1.0\n dl_hostname:\n type: string\n description: dl default des_hostname\n default: k8s-des\n container_port:\n type: string\n description: exposed container port\n default: \"1681\"\n host_port:\n type: string\n description: external port\n default: \"30409\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1681:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n HOSTNAME:\n get_input: dl_hostname\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/exposure\n service_component_type: '\''dcae-des'\''\n service_id: '\''dcae-des'\''\n service_component_name_override: '\''dcae-des'\''\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 China Mobile\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n#author: Kai Lu (lukai@chinamobile.com)\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - \"https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\"\n - plugin:k8splugin?version=3.4.2\ninputs:\n service_name:\n type: string\n default: '\''dcae-des'\''\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n presto_address:\n type: string\n description: Presto URL\n default: \"dl-presto\"\n presto_port:\n type: string\n description: Presto port\n default: \"9000\"\n presto_username:\n type: string\n description: Presto Username\n default: \"user\"\n presto_password:\n description: Presto password\n type: string\n default: \"test\"\n image_name:\n description: des image URL.\n type: string\n default: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.datalake.exposure.service:1.1.0\n dl_hostname:\n type: string\n description: dl default des_hostname\n default: k8s-des\n container_port:\n type: string\n description: exposed container port\n default: \"1681\"\n host_port:\n type: string\n description: external port\n default: \"30409\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1681:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n HOSTNAME:\n get_input: dl_hostname\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/exposure\n service_component_type: '\''dcae-des'\''\n service_id: '\''dcae-des'\''\n service_component_name_override: '\''dcae-des'\''\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-datalake-des",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 China Mobile\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n#author: Kai Lu (lukai@chinamobile.com)\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - \"https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\"\n - plugin:k8splugin?version=3.4.2\ninputs:\n service_name:\n type: string\n default: '\''dcae-des'\''\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n presto_address:\n type: string\n description: Presto URL\n default: \"dl-presto\"\n presto_port:\n type: string\n description: Presto port\n default: \"9000\"\n presto_username:\n type: string\n description: Presto Username\n default: \"user\"\n presto_password:\n description: Presto password\n type: string\n default: \"test\"\n image_name:\n description: des image URL.\n type: string\n default: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.datalake.exposure.service:1.1.0\n dl_hostname:\n type: string\n description: dl default des_hostname\n default: k8s-des\n container_port:\n type: string\n description: exposed container port\n default: \"1681\"\n host_port:\n type: string\n description: external port\n default: \"30409\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1681:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n HOSTNAME:\n get_input: dl_hostname\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/exposure\n service_component_type: '\''dcae-des'\''\n service_id: '\''dcae-des'\''\n service_component_name_override: '\''dcae-des'\''\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 8781 100 4526 100 4255 31363 29485 --:--:-- --:--:-- --:--:-- 31213
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-datalake-feeder.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-datalake-feeder.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-datalake-feeder.yaml .yaml
++ flatten /blueprints/k8s-datalake-feeder.yaml
+++ tr -d '\n'
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
++ FLAT='# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakefeeder:1.1.0\n dl_hostname:\n type: string\n description: dl default dl_hostname\n default: k8s-datalake\n consul_host:\n type: string\n description: consul address\n default: consul\n cbs_address:\n type: string\n description: CBS address\n default: config-binding-service\n container_port:\n type: string\n description: exposed container port\n default: \"1680\"\n host_port:\n type: string\n description: external port\n default: \"30408\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1680:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n HOSTNAME:\n get_input: dl_hostname\n CONSUL_HOST:\n get_input: consul_host\n CONFIG_BINDING_SERVICE:\n get_input: cbs_address\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/topics\n dns_name: \"dl-feeder\"\n name: datalake-feeder\n container_port: { get_input: container_port }\n host_port: { get_input: host_port }\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakefeeder:1.1.0\n dl_hostname:\n type: string\n description: dl default dl_hostname\n default: k8s-datalake\n consul_host:\n type: string\n description: consul address\n default: consul\n cbs_address:\n type: string\n description: CBS address\n default: config-binding-service\n container_port:\n type: string\n description: exposed container port\n default: \"1680\"\n host_port:\n type: string\n description: external port\n default: \"30408\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1680:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n HOSTNAME:\n get_input: dl_hostname\n CONSUL_HOST:\n get_input: consul_host\n CONFIG_BINDING_SERVICE:\n get_input: cbs_address\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/topics\n dns_name: \"dl-feeder\"\n name: datalake-feeder\n container_port: { get_input: container_port }\n host_port: { get_input: host_port }\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-datalake-feeder",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakefeeder:1.1.0\n dl_hostname:\n type: string\n description: dl default dl_hostname\n default: k8s-datalake\n consul_host:\n type: string\n description: consul address\n default: consul\n cbs_address:\n type: string\n description: CBS address\n default: config-binding-service\n container_port:\n type: string\n description: exposed container port\n default: \"1680\"\n host_port:\n type: string\n description: external port\n default: \"30408\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '\''1680:0'\''\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n HOSTNAME:\n get_input: dl_hostname\n CONSUL_HOST:\n get_input: consul_host\n CONFIG_BINDING_SERVICE:\n get_input: cbs_address\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/topics\n dns_name: \"dl-feeder\"\n name: datalake-feeder\n container_port: { get_input: container_port }\n host_port: { get_input: host_port }\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 7639 100 3955 100 3684 17374 16184 --:--:-- --:--:-- --:--:-- 17422
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-heartbeat.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-heartbeat.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-heartbeat.yaml .yaml
++ flatten /blueprints/k8s-heartbeat.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copyright (C) 2020 Wipro Limited\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.1.1'\''\n heartbeat_name:\n type: string\n default: '\''dcae-heartbeat-service'\''\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30223\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 10002\n consul_host:\n type: string\n description: Consul endpoint address\n default: '\''consul-server.onap'\''\n consul_port:\n type: integer\n description: Consul endpoint port\n default: 8500\n CBS_polling_allowed:\n type: string\n default: '\''True'\''\n CBS_polling_interval:\n type: string\n default: '\''300'\''\n consumerID:\n type: string\n default: '\''1'\''\n groupID:\n type: string\n default: '\''hbgrpID'\''\n namespace:\n type: string\n default: '\''onap'\''\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n pg_dbName:\n type: string\n default: '\''heartbeat'\''\n ves_heartbeat_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'\''\n dcae_CL_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'\''\nnode_templates:\n hbpgaas:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: pg_dbName}\n use_existing: false\n\n heartbeat:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval: \"300\"\n consumerID: \"1\"\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n ports:\n - \"10002:0\"\n\n properties:\n application_config:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval:\n get_input: CBS_polling_interval\n consumerID:\n get_input: consumerID\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n heartbeat_config: '\''{\"vnfs\": [{\"eventName\": \"Heartbeat_vDNS\",\"heartbeatcountmissed\": 3,\"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\", \"policyVersion\": \"1.0.0.5\", \"policyName\":\"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_vFW\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\", \"target_type\":\"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_xx\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\", \"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\",\"target\": \"genVnfName\",\"version\": \"1.0\"}]}'\''\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves-heartbeat:\n dmaap_info:\n topic_url:\n get_input: ves_heartbeat_publish_url\n type: message_router\n docker_config:\n healthcheck:\n type: http\n endpoint: /\n interval: 15s\n timeout: 1s\n service_component_type:\n get_input: heartbeat_name\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcae-heartbeat-services'\''\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - type: cloudify.relationships.depends_on\n target: hbpgaas\n\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copyright (C) 2020 Wipro Limited\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.1.1'\''\n heartbeat_name:\n type: string\n default: '\''dcae-heartbeat-service'\''\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30223\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 10002\n consul_host:\n type: string\n description: Consul endpoint address\n default: '\''consul-server.onap'\''\n consul_port:\n type: integer\n description: Consul endpoint port\n default: 8500\n CBS_polling_allowed:\n type: string\n default: '\''True'\''\n CBS_polling_interval:\n type: string\n default: '\''300'\''\n consumerID:\n type: string\n default: '\''1'\''\n groupID:\n type: string\n default: '\''hbgrpID'\''\n namespace:\n type: string\n default: '\''onap'\''\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n pg_dbName:\n type: string\n default: '\''heartbeat'\''\n ves_heartbeat_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'\''\n dcae_CL_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'\''\nnode_templates:\n hbpgaas:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: pg_dbName}\n use_existing: false\n\n heartbeat:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval: \"300\"\n consumerID: \"1\"\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n ports:\n - \"10002:0\"\n\n properties:\n application_config:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval:\n get_input: CBS_polling_interval\n consumerID:\n get_input: consumerID\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n heartbeat_config: '\''{\"vnfs\": [{\"eventName\": \"Heartbeat_vDNS\",\"heartbeatcountmissed\": 3,\"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\", \"policyVersion\": \"1.0.0.5\", \"policyName\":\"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_vFW\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\", \"target_type\":\"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_xx\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\", \"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\",\"target\": \"genVnfName\",\"version\": \"1.0\"}]}'\''\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves-heartbeat:\n dmaap_info:\n topic_url:\n get_input: ves_heartbeat_publish_url\n type: message_router\n docker_config:\n healthcheck:\n type: http\n endpoint: /\n interval: 15s\n timeout: 1s\n service_component_type:\n get_input: heartbeat_name\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcae-heartbeat-services'\''\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - type: cloudify.relationships.depends_on\n target: hbpgaas\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-heartbeat",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copyright (C) 2020 Wipro Limited\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.1.1'\''\n heartbeat_name:\n type: string\n default: '\''dcae-heartbeat-service'\''\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30223\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 10002\n consul_host:\n type: string\n description: Consul endpoint address\n default: '\''consul-server.onap'\''\n consul_port:\n type: integer\n description: Consul endpoint port\n default: 8500\n CBS_polling_allowed:\n type: string\n default: '\''True'\''\n CBS_polling_interval:\n type: string\n default: '\''300'\''\n consumerID:\n type: string\n default: '\''1'\''\n groupID:\n type: string\n default: '\''hbgrpID'\''\n namespace:\n type: string\n default: '\''onap'\''\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n pg_dbName:\n type: string\n default: '\''heartbeat'\''\n ves_heartbeat_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'\''\n dcae_CL_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'\''\nnode_templates:\n hbpgaas:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: pg_dbName}\n use_existing: false\n\n heartbeat:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval: \"300\"\n consumerID: \"1\"\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n ports:\n - \"10002:0\"\n\n properties:\n application_config:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval:\n get_input: CBS_polling_interval\n consumerID:\n get_input: consumerID\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n heartbeat_config: '\''{\"vnfs\": [{\"eventName\": \"Heartbeat_vDNS\",\"heartbeatcountmissed\": 3,\"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\", \"policyVersion\": \"1.0.0.5\", \"policyName\":\"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_vFW\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\", \"target_type\":\"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_xx\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\", \"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\",\"target\": \"genVnfName\",\"version\": \"1.0\"}]}'\''\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves-heartbeat:\n dmaap_info:\n topic_url:\n get_input: ves_heartbeat_publish_url\n type: message_router\n docker_config:\n healthcheck:\n type: http\n endpoint: /\n interval: 15s\n timeout: 1s\n service_component_type:\n get_input: heartbeat_name\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcae-heartbeat-services'\''\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - type: cloudify.relationships.depends_on\n target: hbpgaas\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
{"code":400,"message":"Unable to process JSON"}{"owner":"dcaeorch","typeName":"k8s-datafile","typeVersion":2104110347,"blueprintTemplate":"\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <>\n type: data_router\n dmaap.ftpesConfig.keyCert: /opt/app/datafile/config/cert.jks\n dmaap.ftpesConfig.keyPasswordPath: /opt/app/datafile/config/jks.pass\n dmaap.ftpesConfig.trustedCa: /opt/app/datafile/config/trust.jks\n dmaap.ftpesConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.enableDmaapCertAuth: true\n dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/p12.pass\n dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.p12\n dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks\n dmaap.dmaapConsumerConfiguration.consumerGroup:\n get_input: consumer_group\n dmaap.dmaapConsumerConfiguration.consumerId:\n get_input: consumer_id\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n sftp.security.strictHostKeyChecking: true\n streams_subscribes:\n dmaap_subscriber:\n type: message_router\n dmaap_info:\n topic_url: { concat: ['https://message-router:3905/events/',{ get_input: topic_name }] }\n docker_config:\n healthcheck:\n interval: 15s\n timeout: 1s\n type: http\n endpoint: /heartbeat\n ports:\n - concat: [\"8100\", {get_input: external_port}]\n - concat: [\"8433\", {get_input: external_port}]\n image:\n get_input: tag_version\n service_component_type: datafile-collector\n log_info:\n log_directory:\n get_input: log_directory\n replicas:\n get_input: replicas\n streams_publishes:\n - name: feed0\n location:\n get_input: PM_MEAS_FILES_feed0_location\n type: data_router\n tls_info:\n cert_directory:\n get_input: cert_directory\n use_tls:\n get_input: use_tls\n resource_config:\n limits:\n cpu:\n get_input: datafile-collector_cpu_limit\n memory:\n get_input: datafile-collector_memory_limit\n requests:\n cpu:\n get_input: datafile-collector_cpu_request\n memory:\n get_input: datafile-collector_memory_request\n relationships:\n - type: dcaegen2.relationships.publish_files\n target: feed0\n feed0:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name:\n get_input: feed0_name\n useExisting: true\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"6be93df3-ceb0-4659-9022-7f7f042594f8","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/6be93df3-ceb0-4659-9022-7f7f042594f8"},"created":1618112873721,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-admin-ui","typeVersion":2104110347,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakeadminui:1.1.0\n container_port:\n type: string\n description: exposed container port\n default: \"8088\"\n host_port:\n type: string\n description: external port\n default: \"30479\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '8088:0'\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n properties:\n application_config:\n FEEDER_ADDR: dl-feeder\n docker_config:\n healthcheck:\n interval: 30s\n timeout: 10s\n type: http\n endpoint: /\n image:\n get_input: image_name\n dns_name: \"dl-admin-ui\"\n name: datalake-admin-ui\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"85f330c5-9372-45ef-b54c-fae7b6847acb","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/85f330c5-9372-45ef-b54c-fae7b6847acb"},"created":1618112873920,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-des","typeVersion":2104110347,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 China Mobile\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n#author: Kai Lu (lukai@chinamobile.com)\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - \"https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\"\n - plugin:k8splugin?version=3.4.2\ninputs:\n service_name:\n type: string\n default: 'dcae-des'\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n presto_address:\n type: string\n description: Presto URL\n default: \"dl-presto\"\n presto_port:\n type: string\n description: Presto port\n default: \"9000\"\n presto_username:\n type: string\n description: Presto Username\n default: \"user\"\n presto_password:\n description: Presto password\n type: string\n default: \"test\"\n image_name:\n description: des image URL.\n type: string\n default: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.datalake.exposure.service:1.1.0\n dl_hostname:\n type: string\n description: dl default des_hostname\n default: k8s-des\n container_port:\n type: string\n description: exposed container port\n default: \"1681\"\n host_port:\n type: string\n description: external port\n default: \"30409\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '1681:0'\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n PRESTO_HOST:\n get_input: presto_address\n PRESTO_PORT:\n get_input: presto_port\n PRESTO_USER:\n get_input: presto_username\n PRESTO_PASSWORD:\n get_input: presto_password\n HOSTNAME:\n get_input: dl_hostname\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/exposure\n service_component_type: 'dcae-des'\n service_id: 'dcae-des'\n service_component_name_override: 'dcae-des'\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"56cbe1d7-967a-4862-a367-63411956142d","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/56cbe1d7-967a-4862-a367-63411956142d"},"created":1618112874173,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-feeder","typeVersion":2104110347,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2020 QCT\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\n#author: Kate Hsuan (kate.hsuan@qct.io)\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n mariadb_address:\n type: string\n description: MariaDB URL\n default: \"mariadb-galera\"\n mariadb_port:\n type: string\n description: MariaDB port\n default: \"3306\"\n db_username:\n type: string\n description: MariaDB Username\n default: \"root\"\n db_password:\n description: MariaDB password\n type: string\n default: \"secretpassword\"\n image_name:\n description: datalake feeder image URL.\n type: string\n default: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.datalakefeeder:1.1.0\n dl_hostname:\n type: string\n description: dl default dl_hostname\n default: k8s-datalake\n consul_host:\n type: string\n description: consul address\n default: consul\n cbs_address:\n type: string\n description: CBS address\n default: config-binding-service\n container_port:\n type: string\n description: exposed container port\n default: \"1680\"\n host_port:\n type: string\n description: external port\n default: \"30408\"\nnode_templates:\n datalake:\n type: dcae.nodes.ContainerizedPlatformComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - '1680:0'\n - concat: [{get_input: container_port},\":\",{get_input: host_port}]\n envs:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n properties:\n application_config:\n MYSQL_HOST:\n get_input: mariadb_address\n MYSQL_PORT:\n get_input: mariadb_port\n MYSQL_ROOT_PASSWORD:\n get_input: db_password\n HOSTNAME:\n get_input: dl_hostname\n CONSUL_HOST:\n get_input: consul_host\n CONFIG_BINDING_SERVICE:\n get_input: cbs_address\n image:\n get_input: image_name\n docker_config:\n healthcheck:\n interval: 90s\n timeout: 10s\n type: http\n endpoint: /datalake/v1/topics\n dns_name: \"dl-feeder\"\n name: datalake-feeder\n container_port: { get_input: container_port }\n host_port: { get_input: host_port }\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"999ce9dd-dec4-4b47-867b-f143d1e693ab","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/999ce9dd-dec4-4b47-867b-f143d1e693ab"},"created":1618112874337,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-heartbeat","typeVersion":2104110347,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copy
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13477 100 6874 100 6603 36236 34807 --:--:-- --:--:-- --:--:-- 36370
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-helm.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-helm.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-helm.yaml .yaml
++ flatten /blueprints/k8s-helm.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START==========================================\n# ===================================================================\n# Copyright (c) 2019-2020 AT&T\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#============LICENSE_END============================================\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:helm?version=4.2.0\n\ninputs:\n tiller-server-ip:\n description: IP address of Kubernetes master node\n tiller-server-port:\n description: Nodeport of tiller server\n namespace:\n description: Target namespace to be installed under (requires to be new)\n chart-repo-url:\n default: '\''https://nexus.onap.org/content/sites/oom-helm-staging'\''\n chart-version :\n description: Chart version for identified component-name\n stable-repo-url:\n description: URL for stable repository\n type: string\n default: '\''https://kubernetes-charts.storage.googleapis.com'\''\n config-url:\n default: '\'''\''\n config-format:\n default: '\''yaml'\''\n component-name:\n description: onap component name\nnode_templates:\n dcaecomponent:\n type: onap.nodes.component\n properties:\n tiller_ip: { get_input: tiller-server-ip }\n tiller_port: { get_input: tiller-server-port }\n component_name: { get_input: component-name }\n chart_repo_url: { get_input: chart-repo-url }\n chart_version: { get_input: chart-version }\n namespace: { get_input: namespace }\n stable_repo_url: { get_input: stable-repo-url}\n config_url: { get_input: config-url}\n config_format: { get_input: config-format}\noutputs:\n dcaecomponent_install_status:\n value: { get_attribute: [ dcaecomponent, install-status ] }\n\n'
++ echo '# ============LICENSE_START==========================================\n# ===================================================================\n# Copyright (c) 2019-2020 AT&T\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#============LICENSE_END============================================\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:helm?version=4.2.0\n\ninputs:\n tiller-server-ip:\n description: IP address of Kubernetes master node\n tiller-server-port:\n description: Nodeport of tiller server\n namespace:\n description: Target namespace to be installed under (requires to be new)\n chart-repo-url:\n default: '\''https://nexus.onap.org/content/sites/oom-helm-staging'\''\n chart-version :\n description: Chart version for identified component-name\n stable-repo-url:\n description: URL for stable repository\n type: string\n default: '\''https://kubernetes-charts.storage.googleapis.com'\''\n config-url:\n default: '\'''\''\n config-format:\n default: '\''yaml'\''\n component-name:\n description: onap component name\nnode_templates:\n dcaecomponent:\n type: onap.nodes.component\n properties:\n tiller_ip: { get_input: tiller-server-ip }\n tiller_port: { get_input: tiller-server-port }\n component_name: { get_input: component-name }\n chart_repo_url: { get_input: chart-repo-url }\n chart_version: { get_input: chart-version }\n namespace: { get_input: namespace }\n stable_repo_url: { get_input: stable-repo-url}\n config_url: { get_input: config-url}\n config_format: { get_input: config-format}\noutputs:\n dcaecomponent_install_status:\n value: { get_attribute: [ dcaecomponent, install-status ] }\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-helm",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START==========================================\n# ===================================================================\n# Copyright (c) 2019-2020 AT&T\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#============LICENSE_END============================================\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:helm?version=4.2.0\n\ninputs:\n tiller-server-ip:\n description: IP address of Kubernetes master node\n tiller-server-port:\n description: Nodeport of tiller server\n namespace:\n description: Target namespace to be installed under (requires to be new)\n chart-repo-url:\n default: '\''https://nexus.onap.org/content/sites/oom-helm-staging'\''\n chart-version :\n description: Chart version for identified component-name\n stable-repo-url:\n description: URL for stable repository\n type: string\n default: '\''https://kubernetes-charts.storage.googleapis.com'\''\n config-url:\n default: '\'''\''\n config-format:\n default: '\''yaml'\''\n component-name:\n description: onap component name\nnode_templates:\n dcaecomponent:\n type: onap.nodes.component\n properties:\n tiller_ip: { get_input: tiller-server-ip }\n tiller_port: { get_input: tiller-server-port }\n component_name: { get_input: component-name }\n chart_repo_url: { get_input: chart-repo-url }\n chart_version: { get_input: chart-version }\n namespace: { get_input: namespace }\n stable_repo_url: { get_input: stable-repo-url}\n config_url: { get_input: config-url}\n config_format: { get_input: config-format}\noutputs:\n dcaecomponent_install_status:\n value: { get_attribute: [ dcaecomponent, install-status ] }\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5243 100 2757 100 2486 19841 17891 --:--:-- --:--:-- --:--:-- 19978
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-holmes-engine.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-holmes-engine.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-holmes-engine.yaml .yaml
++ flatten /blueprints/k8s-holmes-engine.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n dcae_CL_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n ves_fault_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.SEC_FAULT_OUTPUT\"\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n he_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/engine-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-engine-mgmt\"\n service_id:\n type: string\n default: \"holmes-engine-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-engine-mgmt\"\n dcae-analytics-holmes-engine-mgt_cpu_limit:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_cpu_request:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-engine-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: true\n\n holmesengine:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9102:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves_fault:\n dmaap_info:\n topic_url:\n get_input: ves_fault_publish_url\n type: message_router\n image: { get_input: he_image }\n # need to use truncated name!!\n #service_component_type: dcae-analytics-holmes-engin-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n dcae_CL_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n ves_fault_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.SEC_FAULT_OUTPUT\"\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n he_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/engine-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-engine-mgmt\"\n service_id:\n type: string\n default: \"holmes-engine-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-engine-mgmt\"\n dcae-analytics-holmes-engine-mgt_cpu_limit:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_cpu_request:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-engine-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: true\n\n holmesengine:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9102:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves_fault:\n dmaap_info:\n topic_url:\n get_input: ves_fault_publish_url\n type: message_router\n image: { get_input: he_image }\n # need to use truncated name!!\n #service_component_type: dcae-analytics-holmes-engin-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-holmes-engine",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n dcae_CL_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n ves_fault_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.SEC_FAULT_OUTPUT\"\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n he_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/engine-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-engine-mgmt\"\n service_id:\n type: string\n default: \"holmes-engine-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-engine-mgmt\"\n dcae-analytics-holmes-engine-mgt_cpu_limit:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_cpu_request:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-engine-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: true\n\n holmesengine:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9102:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves_fault:\n dmaap_info:\n topic_url:\n get_input: ves_fault_publish_url\n type: message_router\n image: { get_input: he_image }\n # need to use truncated name!!\n #service_component_type: dcae-analytics-holmes-engin-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10261 100 5266 100 4995 23612 22397 --:--:-- --:--:-- --:--:-- 23720
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-holmes-rules.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-holmes-rules.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-holmes-rules.yaml .yaml
++ flatten /blueprints/k8s-holmes-rules.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n hr_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/rule-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-rule-mgmt\"\n service_id:\n type: string\n default: \"holmes-rule-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-rule-mgmt\"\n dcae-analytics-holmes-rule-mgt_cpu_limit:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_cpu_request:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-rule-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n holmesrules:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9101:0'\''\n - '\''9104:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n holmes.default.rule.volte.scenario1: \"ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b$$$package org.onap.holmes.droolsRule;\\n\\nimport org.onap.holmes.common.dmaap.DmaapService;\\nimport org.onap.holmes.common.api.stat.VesAlarm;\\nimport org.onap.holmes.common.aai.CorrelationUtil;\\nimport org.onap.holmes.common.dmaap.entity.PolicyMsg;\\nimport org.onap.holmes.common.dropwizard.ioc.utils.ServiceLocatorHolder;\\nimport org.onap.holmes.common.utils.DroolsLog;\\n \\n\\nrule \\\"Relation_analysis_Rule\\\"\\nsalience 200\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0,\\n $sourceId: sourceId, sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\t$sourceName: sourceName, sourceName != null && !sourceName.equals(\\\"\\\"),\\n\\t\\t\\t$startEpochMicrosec: startEpochMicrosec,\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"),\\n $eventId: eventId)\\n $child : VesAlarm( eventId != $eventId, parentId == null,\\n CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId, $sourceName),\\n eventName in (\\\"Fault_MME_eNodeB out of service alarm\\\"),\\n startEpochMicrosec < $startEpochMicrosec + 60000 && startEpochMicrosec > $startEpochMicrosec - 60000 )\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"Relation_analysis_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\t$child.setParentId($root.getEventId());\\n\\t\\tupdate($child);\\n\\t\\t\\nend\\n\\nrule \\\"root_has_child_handle_Rule\\\"\\nsalience 150\\nno-loop true\\n\\twhen\\n\\t\\t$root : VesAlarm(alarmIsCleared == 0, rootFlag == 0, $eventId: eventId)\\n\\t\\t$child : VesAlarm(eventId != $eventId, parentId == $eventId)\\n\\tthen\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_has_child_handle_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, $child, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_no_child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0,\\n sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\tsourceName != null && !sourceName.equals(\\\"\\\"),\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"))\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_no_child_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_cleared_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 1, rootFlag == 1)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_cleared_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\tretract($root);\\nend\\n\\nrule \\\"child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $child : VesAlarm(alarmIsCleared == 1, rootFlag == 0)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"child_handle_Rule: childId=\\\" + $child.getEventId());\\n\\t\\tretract($child);\\nend\"\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes: {}\n streams_subscribes: {}\n image: { get_input: hr_image }\n #service_component_type: dcae-analytics-holmes-rule-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n hr_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/rule-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-rule-mgmt\"\n service_id:\n type: string\n default: \"holmes-rule-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-rule-mgmt\"\n dcae-analytics-holmes-rule-mgt_cpu_limit:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_cpu_request:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-rule-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n holmesrules:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9101:0'\''\n - '\''9104:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n holmes.default.rule.volte.scenario1: \"ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b$$$package org.onap.holmes.droolsRule;\\n\\nimport org.onap.holmes.common.dmaap.DmaapService;\\nimport org.onap.holmes.common.api.stat.VesAlarm;\\nimport org.onap.holmes.common.aai.CorrelationUtil;\\nimport org.onap.holmes.common.dmaap.entity.PolicyMsg;\\nimport org.onap.holmes.common.dropwizard.ioc.utils.ServiceLocatorHolder;\\nimport org.onap.holmes.common.utils.DroolsLog;\\n \\n\\nrule \\\"Relation_analysis_Rule\\\"\\nsalience 200\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0,\\n $sourceId: sourceId, sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\t$sourceName: sourceName, sourceName != null && !sourceName.equals(\\\"\\\"),\\n\\t\\t\\t$startEpochMicrosec: startEpochMicrosec,\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"),\\n $eventId: eventId)\\n $child : VesAlarm( eventId != $eventId, parentId == null,\\n CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId, $sourceName),\\n eventName in (\\\"Fault_MME_eNodeB out of service alarm\\\"),\\n startEpochMicrosec < $startEpochMicrosec + 60000 && startEpochMicrosec > $startEpochMicrosec - 60000 )\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"Relation_analysis_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\t$child.setParentId($root.getEventId());\\n\\t\\tupdate($child);\\n\\t\\t\\nend\\n\\nrule \\\"root_has_child_handle_Rule\\\"\\nsalience 150\\nno-loop true\\n\\twhen\\n\\t\\t$root : VesAlarm(alarmIsCleared == 0, rootFlag == 0, $eventId: eventId)\\n\\t\\t$child : VesAlarm(eventId != $eventId, parentId == $eventId)\\n\\tthen\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_has_child_handle_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, $child, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_no_child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0,\\n sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\tsourceName != null && !sourceName.equals(\\\"\\\"),\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"))\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_no_child_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_cleared_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 1, rootFlag == 1)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_cleared_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\tretract($root);\\nend\\n\\nrule \\\"child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $child : VesAlarm(alarmIsCleared == 1, rootFlag == 0)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"child_handle_Rule: childId=\\\" + $child.getEventId());\\n\\t\\tretract($child);\\nend\"\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes: {}\n streams_subscribes: {}\n image: { get_input: hr_image }\n #service_component_type: dcae-analytics-holmes-rule-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-holmes-rules",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n hr_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/rule-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-rule-mgmt\"\n service_id:\n type: string\n default: \"holmes-rule-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-rule-mgmt\"\n dcae-analytics-holmes-rule-mgt_cpu_limit:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_cpu_request:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-rule-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '\''-write.'\'' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n holmesrules:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '\''9101:0'\''\n - '\''9104:0'\''\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n holmes.default.rule.volte.scenario1: \"ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b$$$package org.onap.holmes.droolsRule;\\n\\nimport org.onap.holmes.common.dmaap.DmaapService;\\nimport org.onap.holmes.common.api.stat.VesAlarm;\\nimport org.onap.holmes.common.aai.CorrelationUtil;\\nimport org.onap.holmes.common.dmaap.entity.PolicyMsg;\\nimport org.onap.holmes.common.dropwizard.ioc.utils.ServiceLocatorHolder;\\nimport org.onap.holmes.common.utils.DroolsLog;\\n \\n\\nrule \\\"Relation_analysis_Rule\\\"\\nsalience 200\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0,\\n $sourceId: sourceId, sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\t$sourceName: sourceName, sourceName != null && !sourceName.equals(\\\"\\\"),\\n\\t\\t\\t$startEpochMicrosec: startEpochMicrosec,\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"),\\n $eventId: eventId)\\n $child : VesAlarm( eventId != $eventId, parentId == null,\\n CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId, $sourceName),\\n eventName in (\\\"Fault_MME_eNodeB out of service alarm\\\"),\\n startEpochMicrosec < $startEpochMicrosec + 60000 && startEpochMicrosec > $startEpochMicrosec - 60000 )\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"Relation_analysis_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\t$child.setParentId($root.getEventId());\\n\\t\\tupdate($child);\\n\\t\\t\\nend\\n\\nrule \\\"root_has_child_handle_Rule\\\"\\nsalience 150\\nno-loop true\\n\\twhen\\n\\t\\t$root : VesAlarm(alarmIsCleared == 0, rootFlag == 0, $eventId: eventId)\\n\\t\\t$child : VesAlarm(eventId != $eventId, parentId == $eventId)\\n\\tthen\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_has_child_handle_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, $child, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_no_child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0,\\n sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\tsourceName != null && !sourceName.equals(\\\"\\\"),\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"))\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_no_child_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_cleared_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 1, rootFlag == 1)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_cleared_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\tretract($root);\\nend\\n\\nrule \\\"child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $child : VesAlarm(alarmIsCleared == 1, rootFlag == 0)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"child_handle_Rule: childId=\\\" + $child.getEventId());\\n\\t\\tretract($child);\\nend\"\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes: {}\n streams_subscribes: {}\n image: { get_input: hr_image }\n #service_component_type: dcae-analytics-holmes-rule-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
right (C) 2020 Wipro Limited\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n\n\ninputs:\n tag_version:\n type: string\n default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.1.1'\n heartbeat_name:\n type: string\n default: 'dcae-heartbeat-service'\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30223\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 10002\n consul_host:\n type: string\n description: Consul endpoint address\n default: 'consul-server.onap'\n consul_port:\n type: integer\n description: Consul endpoint port\n default: 8500\n CBS_polling_allowed:\n type: string\n default: 'True'\n CBS_polling_interval:\n type: string\n default: '300'\n consumerID:\n type: string\n default: '1'\n groupID:\n type: string\n default: 'hbgrpID'\n namespace:\n type: string\n default: 'onap'\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n pg_dbName:\n type: string\n default: 'heartbeat'\n ves_heartbeat_publish_url:\n type: string\n default: 'http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'\n dcae_CL_publish_url:\n type: string\n default: 'http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'\nnode_templates:\n hbpgaas:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: pg_dbName}\n use_existing: false\n\n heartbeat:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval: \"300\"\n consumerID: \"1\"\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n ports:\n - \"10002:0\"\n\n properties:\n application_config:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval:\n get_input: CBS_polling_interval\n consumerID:\n get_input: consumerID\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n heartbeat_config: '{\"vnfs\": [{\"eventName\": \"Heartbeat_vDNS\",\"heartbeatcountmissed\": 3,\"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\", \"policyVersion\": \"1.0.0.5\", \"policyName\":\"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_vFW\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\", \"target_type\":\"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_xx\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\", \"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\",\"target\": \"genVnfName\",\"version\": \"1.0\"}]}'\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves-heartbeat:\n dmaap_info:\n topic_url:\n get_input: ves_heartbeat_publish_url\n type: message_router\n docker_config:\n healthcheck:\n type: http\n endpoint: /\n interval: 15s\n timeout: 1s\n service_component_type:\n get_input: heartbeat_name\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '/var/log/ONAP/dcae-heartbeat-services'\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - type: cloudify.relationships.depends_on\n target: hbpgaas\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"57c818d7-db2e-4ef1-9ee1-6b58edf496b4","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/57c818d7-db2e-4ef1-9ee1-6b58edf496b4"},"created":1618112874587,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-helm","typeVersion":2104110347,"blueprintTemplate":"# ============LICENSE_START==========================================\n# ===================================================================\n# Copyright (c) 2019-2020 AT&T\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#============LICENSE_END============================================\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:helm?version=4.2.0\n\ninputs:\n tiller-server-ip:\n description: IP address of Kubernetes master node\n tiller-server-port:\n description: Nodeport of tiller server\n namespace:\n description: Target namespace to be installed under (requires to be new)\n chart-repo-url:\n default: 'https://nexus.onap.org/content/sites/oom-helm-staging'\n chart-version :\n description: Chart version for identified component-name\n stable-repo-url:\n description: URL for stable repository\n type: string\n default: 'https://kubernetes-charts.storage.googleapis.com'\n config-url:\n default: ''\n config-format:\n default: 'yaml'\n component-name:\n description: onap component name\nnode_templates:\n dcaecomponent:\n type: onap.nodes.component\n properties:\n tiller_ip: { get_input: tiller-server-ip }\n tiller_port: { get_input: tiller-server-port }\n component_name: { get_input: component-name }\n chart_repo_url: { get_input: chart-repo-url }\n chart_version: { get_input: chart-version }\n namespace: { get_input: namespace }\n stable_repo_url: { get_input: stable-repo-url}\n config_url: { get_input: config-url}\n config_format: { get_input: config-format}\noutputs:\n dcaecomponent_install_status:\n value: { get_attribute: [ dcaecomponent, install-status ] }\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"7ef27d3b-4f79-4cb1-b24a-0b61d1d37979","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/7ef27d3b-4f79-4cb1-b24a-0b61d1d37979"},"created":1618112874776,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-engine","typeVersion":2104110347,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n dcae_CL_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n ves_fault_publish_url:\n type: string\n default: \"http://message-router.onap:3904/events/unauthenticated.SEC_FAULT_OUTPUT\"\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n he_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/engine-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes-engine-mgmt\"\n service_id:\n type: string\n default: \"holmes-engine-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-engine-mgmt\"\n dcae-analytics-holmes-engine-mgt_cpu_limit:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_cpu_request:\n type: string\n default: \"500m\"\n dcae-analytics-holmes-engine-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-engine-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '-write.' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: true\n\n holmesengine:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '9102:0'\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves_fault:\n dmaap_info:\n topic_url:\n get_input: ves_fault_publish_url\n type: message_router\n image: { get_input: he_image }\n # need to use truncated name!!\n #service_component_type: dcae-analytics-holmes-engin-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-engine-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-engine-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"2b6414ea-7beb-4ca2-88cb-25110931ae0c","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/2b6414ea-7beb-4ca2-88cb-25110931ae0c"},"created":1618112874934,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-rules","typeVersion":2104110347,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END=====================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\nimports:\n- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dcaepolicyplugin?version=2.4.0\n- plugin:pgaas?version=1.3.0\ninputs:\n msb_hostname:\n type: string\n default: \"msb-iag.onap\"\n pgaas_cluster_name:\n type: string\n default: \"dcae-pg-primary.onap\"\n # use the single-VM PG instance\n #default: pgvm\n database_name:\n type: string\n default: \"holmes\"\n hr_image:\n type: string\n default: \"nexus3.onap.org:10001/onap/holmes/rule-management:1.2.9\"\n service_component_type:\n type: string\n default: \"holmes
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 17553 0 8912 100 8641 61843 59963 --:--:-- --:--:-- --:--:-- 61888
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-hv-ves.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-hv-ves.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-hv-ves.yaml .yaml
++ flatten /blueprints/k8s-hv-ves.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START========================================================\n# =================================================================================\n# Copyright (C) 2018-2019 NOKIA\n# Modifications copyright (c) 2020 AT&T Intellectual Property. All Rights Reserved\n# =================================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END==========================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.0'\''\n service_component_type:\n type: string\n default: '\''dcae-hv-ves-collector'\''\n service_id:\n type: string\n default: \"dcae-hv-ves-collector\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30222\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 6061\n kafka_bootstrap_servers:\n type: string\n default: '\''message-router-kafka:9092'\''\n kafka_username:\n type: string\n default: '\''admin'\''\n kafka_password:\n type: string\n default: '\''admin_secret'\''\n perf3gpp_kafka_topic:\n type: string\n default: '\''HV_VES_PERF3GPP'\''\n log_level:\n type: string\n default: '\''INFO'\''\n server_idle_timeout_sec:\n type: integer\n default: 300\n cbs_request_interval_sec:\n type: integer\n default: 5\n security_ssl_disable:\n type: boolean\n default: false\n security_keys_key_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/cert.jks'\''\n security_keys_key_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/jks.pass'\''\n security_keys_trust_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.jks'\''\n security_keys_trust_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.pass'\''\n use_tls:\n type: boolean\n default: true\n service_component_name_override:\n type: string\n default: \"dcae-hv-ves-collector\"\n external_cert_cert_type:\n type: string\n description: Output type\n default: \"JKS\"\n external_cert_ca_name:\n type: string\n description: Name of Certificate Authority configured on CertService side.\n default: \"RA\"\n external_cert_common_name:\n type: string\n description: Common name which should be present in certificate.\n default: \"dcae-hv-ves-collector\"\n external_cert_sans:\n type: string\n description: \"List of Subject Alternative Names (SANs) which should be present\n in certificate. Delimiter - : Should contain common_name value and other FQDNs\n under which given component is accessible.\"\n default: \"dcae-hv-ves-collector:hv-ves-collector:hv-ves\"\n external_cert_use_external_tls:\n type: boolean\n description: Flag to indicate external tls enable/disable.\n default: false\nnode_templates:\n hv-ves:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n JAVA_OPTS: { concat: [ '\''-Dlogback.configurationFile=/etc/ONAP/'\'', { get_input: service_component_type }, '\''/logback.xml'\'' ] }\n properties:\n application_config:\n logLevel: { get_input: log_level }\n server.idleTimeoutSec: { get_input: server_idle_timeout_sec }\n server.listenPort: { get_input: container_port }\n cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}\n security.sslDisable: { get_input: security_ssl_disable }\n security.keys.keyStoreFile: { get_input: security_keys_key_store_file }\n security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }\n security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }\n security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }\n streams_publishes:\n perf3gpp:\n type: kafka\n aaf_credentials:\n username: { get_input: kafka_username }\n password: { get_input: kafka_password }\n kafka_info:\n bootstrap_servers: { get_input: kafka_bootstrap_servers }\n topic_name: { get_input: perf3gpp_kafka_topic }\n docker_config:\n healthcheck:\n type: script\n script: \"/opt/ves-hv-collector/healthcheck.sh\"\n interval: 15s\n timeout: 2s\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n log_info:\n log_directory: { concat: [ '\''/var/log/ONAP/'\'', { get_input: service_component_type } ] }\n tls_info:\n cert_directory: '\''/etc/ves-hv/ssl'\''\n use_tls: { get_input: use_tls }\n external_cert:\n external_cert_directory: '\''/etc/ves-hv/ssl'\''\n use_external_tls:\n get_input: external_cert_use_external_tls\n cert_type:\n get_input: external_cert_cert_type\n ca_name:\n get_input: external_cert_ca_name\n external_certificate_parameters:\n common_name:\n get_input: external_cert_common_name\n sans:\n get_input: external_cert_sans\n type: dcae.nodes.ContainerizedServiceComponent\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START========================================================\n# =================================================================================\n# Copyright (C) 2018-2019 NOKIA\n# Modifications copyright (c) 2020 AT&T Intellectual Property. All Rights Reserved\n# =================================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END==========================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.0'\''\n service_component_type:\n type: string\n default: '\''dcae-hv-ves-collector'\''\n service_id:\n type: string\n default: \"dcae-hv-ves-collector\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30222\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 6061\n kafka_bootstrap_servers:\n type: string\n default: '\''message-router-kafka:9092'\''\n kafka_username:\n type: string\n default: '\''admin'\''\n kafka_password:\n type: string\n default: '\''admin_secret'\''\n perf3gpp_kafka_topic:\n type: string\n default: '\''HV_VES_PERF3GPP'\''\n log_level:\n type: string\n default: '\''INFO'\''\n server_idle_timeout_sec:\n type: integer\n default: 300\n cbs_request_interval_sec:\n type: integer\n default: 5\n security_ssl_disable:\n type: boolean\n default: false\n security_keys_key_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/cert.jks'\''\n security_keys_key_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/jks.pass'\''\n security_keys_trust_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.jks'\''\n security_keys_trust_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.pass'\''\n use_tls:\n type: boolean\n default: true\n service_component_name_override:\n type: string\n default: \"dcae-hv-ves-collector\"\n external_cert_cert_type:\n type: string\n description: Output type\n default: \"JKS\"\n external_cert_ca_name:\n type: string\n description: Name of Certificate Authority configured on CertService side.\n default: \"RA\"\n external_cert_common_name:\n type: string\n description: Common name which should be present in certificate.\n default: \"dcae-hv-ves-collector\"\n external_cert_sans:\n type: string\n description: \"List of Subject Alternative Names (SANs) which should be present\n in certificate. Delimiter - : Should contain common_name value and other FQDNs\n under which given component is accessible.\"\n default: \"dcae-hv-ves-collector:hv-ves-collector:hv-ves\"\n external_cert_use_external_tls:\n type: boolean\n description: Flag to indicate external tls enable/disable.\n default: false\nnode_templates:\n hv-ves:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n JAVA_OPTS: { concat: [ '\''-Dlogback.configurationFile=/etc/ONAP/'\'', { get_input: service_component_type }, '\''/logback.xml'\'' ] }\n properties:\n application_config:\n logLevel: { get_input: log_level }\n server.idleTimeoutSec: { get_input: server_idle_timeout_sec }\n server.listenPort: { get_input: container_port }\n cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}\n security.sslDisable: { get_input: security_ssl_disable }\n security.keys.keyStoreFile: { get_input: security_keys_key_store_file }\n security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }\n security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }\n security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }\n streams_publishes:\n perf3gpp:\n type: kafka\n aaf_credentials:\n username: { get_input: kafka_username }\n password: { get_input: kafka_password }\n kafka_info:\n bootstrap_servers: { get_input: kafka_bootstrap_servers }\n topic_name: { get_input: perf3gpp_kafka_topic }\n docker_config:\n healthcheck:\n type: script\n script: \"/opt/ves-hv-collector/healthcheck.sh\"\n interval: 15s\n timeout: 2s\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n log_info:\n log_directory: { concat: [ '\''/var/log/ONAP/'\'', { get_input: service_component_type } ] }\n tls_info:\n cert_directory: '\''/etc/ves-hv/ssl'\''\n use_tls: { get_input: use_tls }\n external_cert:\n external_cert_directory: '\''/etc/ves-hv/ssl'\''\n use_external_tls:\n get_input: external_cert_use_external_tls\n cert_type:\n get_input: external_cert_cert_type\n ca_name:\n get_input: external_cert_ca_name\n external_certificate_parameters:\n common_name:\n get_input: external_cert_common_name\n sans:\n get_input: external_cert_sans\n type: dcae.nodes.ContainerizedServiceComponent\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-hv-ves",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START========================================================\n# =================================================================================\n# Copyright (C) 2018-2019 NOKIA\n# Modifications copyright (c) 2020 AT&T Intellectual Property. All Rights Reserved\n# =================================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END==========================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.0'\''\n service_component_type:\n type: string\n default: '\''dcae-hv-ves-collector'\''\n service_id:\n type: string\n default: \"dcae-hv-ves-collector\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30222\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 6061\n kafka_bootstrap_servers:\n type: string\n default: '\''message-router-kafka:9092'\''\n kafka_username:\n type: string\n default: '\''admin'\''\n kafka_password:\n type: string\n default: '\''admin_secret'\''\n perf3gpp_kafka_topic:\n type: string\n default: '\''HV_VES_PERF3GPP'\''\n log_level:\n type: string\n default: '\''INFO'\''\n server_idle_timeout_sec:\n type: integer\n default: 300\n cbs_request_interval_sec:\n type: integer\n default: 5\n security_ssl_disable:\n type: boolean\n default: false\n security_keys_key_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/cert.jks'\''\n security_keys_key_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/jks.pass'\''\n security_keys_trust_store_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.jks'\''\n security_keys_trust_store_password_file:\n type: string\n default: '\''/etc/ves-hv/ssl/trust.pass'\''\n use_tls:\n type: boolean\n default: true\n service_component_name_override:\n type: string\n default: \"dcae-hv-ves-collector\"\n external_cert_cert_type:\n type: string\n description: Output type\n default: \"JKS\"\n external_cert_ca_name:\n type: string\n description: Name of Certificate Authority configured on CertService side.\n default: \"RA\"\n external_cert_common_name:\n type: string\n description: Common name which should be present in certificate.\n default: \"dcae-hv-ves-collector\"\n external_cert_sans:\n type: string\n description: \"List of Subject Alternative Names (SANs) which should be present\n in certificate. Delimiter - : Should contain common_name value and other FQDNs\n under which given component is accessible.\"\n default: \"dcae-hv-ves-collector:hv-ves-collector:hv-ves\"\n external_cert_use_external_tls:\n type: boolean\n description: Flag to indicate external tls enable/disable.\n default: false\nnode_templates:\n hv-ves:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n JAVA_OPTS: { concat: [ '\''-Dlogback.configurationFile=/etc/ONAP/'\'', { get_input: service_component_type }, '\''/logback.xml'\'' ] }\n properties:\n application_config:\n logLevel: { get_input: log_level }\n server.idleTimeoutSec: { get_input: server_idle_timeout_sec }\n server.listenPort: { get_input: container_port }\n cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}\n security.sslDisable: { get_input: security_ssl_disable }\n security.keys.keyStoreFile: { get_input: security_keys_key_store_file }\n security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }\n security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }\n security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }\n streams_publishes:\n perf3gpp:\n type: kafka\n aaf_credentials:\n username: { get_input: kafka_username }\n password: { get_input: kafka_password }\n kafka_info:\n bootstrap_servers: { get_input: kafka_bootstrap_servers }\n topic_name: { get_input: perf3gpp_kafka_topic }\n docker_config:\n healthcheck:\n type: script\n script: \"/opt/ves-hv-collector/healthcheck.sh\"\n interval: 15s\n timeout: 2s\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n log_info:\n log_directory: { concat: [ '\''/var/log/ONAP/'\'', { get_input: service_component_type } ] }\n tls_info:\n cert_directory: '\''/etc/ves-hv/ssl'\''\n use_tls: { get_input: use_tls }\n external_cert:\n external_cert_directory: '\''/etc/ves-hv/ssl'\''\n use_external_tls:\n get_input: external_cert_use_external_tls\n cert_type:\n get_input: external_cert_cert_type\n ca_name:\n get_input: external_cert_ca_name\n external_certificate_parameters:\n common_name:\n get_input: external_cert_common_name\n sans:\n get_input: external_cert_sans\n type: dcae.nodes.ContainerizedServiceComponent\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13657 100 6964 100 6693 30553 29364 --:--:-- --:--:-- --:--:-- 30678
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-pgaas-initdb.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-pgaas-initdb.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-pgaas-initdb.yaml .yaml
++ flatten /blueprints/k8s-pgaas-initdb.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '\''2018-04-27T00:31:38+0000'\''\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: '\'''\''\n\nnode_templates:\n\n # tie to pgaas_plugin database\n pgaas_cluster:\n type: dcae.nodes.pgaas.cluster\n properties:\n writerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n readerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n initialpassword: { get_input: k8s_initial_password }\n relationships:\n - type: dcae.relationships.pgaas_cluster_uses_sshkeypair\n target: sharedsshkey_pgrs\n\n sharedsshkey_pgrs:\n type: dcaegen2.nodes.ssh.keypair\n\n\noutputs:\n blueprint_version:\n value: { get_input: blueprint_version }\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '\''2018-04-27T00:31:38+0000'\''\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: '\'''\''\n\nnode_templates:\n\n # tie to pgaas_plugin database\n pgaas_cluster:\n type: dcae.nodes.pgaas.cluster\n properties:\n writerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n readerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n initialpassword: { get_input: k8s_initial_password }\n relationships:\n - type: dcae.relationships.pgaas_cluster_uses_sshkeypair\n target: sharedsshkey_pgrs\n\n sharedsshkey_pgrs:\n type: dcaegen2.nodes.ssh.keypair\n\n\noutputs:\n blueprint_version:\n value: { get_input: blueprint_version }\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104110347,
"typeName": "k8s-pgaas-initdb",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '\''2018-04-27T00:31:38+0000'\''\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: '\'''\''\n\nnode_templates:\n\n # tie to pgaas_plugin database\n pgaas_cluster:\n type: dcae.nodes.pgaas.cluster\n properties:\n writerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n readerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n initialpassword: { get_input: k8s_initial_password }\n relationships:\n - type: dcae.relationships.pgaas_cluster_uses_sshkeypair\n target: sharedsshkey_pgrs\n\n sharedsshkey_pgrs:\n type: dcaegen2.nodes.ssh.keypair\n\n\noutputs:\n blueprint_version:\n value: { get_input: blueprint_version }\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6097 100 3184 100 2913 22239 20346 --:--:-- --:--:-- --:--:-- 22265
-rule-mgmt\"\n service_id:\n type: string\n default: \"holmes-rule-mgmt\"\n service_component_name_override:\n type: string\n default: \"holmes-rule-mgmt\"\n dcae-analytics-holmes-rule-mgt_cpu_limit:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_cpu_request:\n type: string\n default: \"250m\"\n dcae-analytics-holmes-rule-mgt_memory_limit:\n type: string\n default: \"1024Mi\"\n dcae-analytics-holmes-rule-mgt_memory_request:\n type: string\n default: \"256Mi\"\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n #writerfqdn: { concat: [ { get_input: pgaas_cluster_name }, '-write.' ] }\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n holmesrules:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n URL_JDBC:\n { get_attribute: [ pgaasvm, admin, host ] }\n JDBC_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n JDBC_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n MSB_ADDR:\n get_input: msb_hostname\n ports:\n - '9101:0'\n - '9104:0'\n properties:\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n application_config:\n holmes.default.rule.volte.scenario1: \"ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b$$$package org.onap.holmes.droolsRule;\\n\\nimport org.onap.holmes.common.dmaap.DmaapService;\\nimport org.onap.holmes.common.api.stat.VesAlarm;\\nimport org.onap.holmes.common.aai.CorrelationUtil;\\nimport org.onap.holmes.common.dmaap.entity.PolicyMsg;\\nimport org.onap.holmes.common.dropwizard.ioc.utils.ServiceLocatorHolder;\\nimport org.onap.holmes.common.utils.DroolsLog;\\n \\n\\nrule \\\"Relation_analysis_Rule\\\"\\nsalience 200\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0,\\n $sourceId: sourceId, sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\t$sourceName: sourceName, sourceName != null && !sourceName.equals(\\\"\\\"),\\n\\t\\t\\t$startEpochMicrosec: startEpochMicrosec,\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"),\\n $eventId: eventId)\\n $child : VesAlarm( eventId != $eventId, parentId == null,\\n CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId, $sourceName),\\n eventName in (\\\"Fault_MME_eNodeB out of service alarm\\\"),\\n startEpochMicrosec < $startEpochMicrosec + 60000 && startEpochMicrosec > $startEpochMicrosec - 60000 )\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"Relation_analysis_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\t$child.setParentId($root.getEventId());\\n\\t\\tupdate($child);\\n\\t\\t\\nend\\n\\nrule \\\"root_has_child_handle_Rule\\\"\\nsalience 150\\nno-loop true\\n\\twhen\\n\\t\\t$root : VesAlarm(alarmIsCleared == 0, rootFlag == 0, $eventId: eventId)\\n\\t\\t$child : VesAlarm(eventId != $eventId, parentId == $eventId)\\n\\tthen\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_has_child_handle_Rule: rootId=\\\" + $root.getEventId() + \\\", childId=\\\" + $child.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, $child, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_no_child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0,\\n sourceId != null && !sourceId.equals(\\\"\\\"),\\n\\t\\t\\tsourceName != null && !sourceName.equals(\\\"\\\"),\\n eventName in (\\\"Fault_MultiCloud_VMFailure\\\"))\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_no_child_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\t$root.setRootFlag(1);\\n\\t\\tupdate($root);\\nend\\n\\nrule \\\"root_cleared_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $root : VesAlarm(alarmIsCleared == 1, rootFlag == 1)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"root_cleared_handle_Rule: rootId=\\\" + $root.getEventId());\\n\\t\\tDmaapService dmaapService = ServiceLocatorHolder.getLocator().getService(DmaapService.class);\\n\\t\\tPolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, \\\"org.onap.holmes.droolsRule\\\");\\n dmaapService.publishPolicyMsg(policyMsg, \\\"dcae_cl_out\\\");\\n\\t\\tretract($root);\\nend\\n\\nrule \\\"child_handle_Rule\\\"\\nsalience 100\\nno-loop true\\n when\\n $child : VesAlarm(alarmIsCleared == 1, rootFlag == 0)\\n then\\n\\t\\tDroolsLog.printInfo(\\\"===========================================================\\\");\\n\\t\\tDroolsLog.printInfo(\\\"child_handle_Rule: childId=\\\" + $child.getEventId());\\n\\t\\tretract($child);\\nend\"\n msb.hostname:\n get_input: msb_hostname\n msb.uri: /api/microservices/v1/services\n services_calls: {}\n streams_publishes: {}\n streams_subscribes: {}\n image: { get_input: hr_image }\n #service_component_type: dcae-analytics-holmes-rule-management\n resource_config:\n limits:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_limit\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_limit\n requests:\n cpu:\n get_input: dcae-analytics-holmes-rule-mgt_cpu_request\n memory:\n get_input: dcae-analytics-holmes-rule-mgt_memory_request\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"0139ff3e-eaab-43d9-9e53-e92ff5037d7c","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/0139ff3e-eaab-43d9-9e53-e92ff5037d7c"},"created":1618112875171,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-hv-ves","typeVersion":2104110347,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START========================================================\n# =================================================================================\n# Copyright (C) 2018-2019 NOKIA\n# Modifications copyright (c) 2020 AT&T Intellectual Property. All Rights Reserved\n# =================================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END==========================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n\ninputs:\n tag_version:\n type: string\n default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.0'\n service_component_type:\n type: string\n default: 'dcae-hv-ves-collector'\n service_id:\n type: string\n default: \"dcae-hv-ves-collector\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30222\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 6061\n kafka_bootstrap_servers:\n type: string\n default: 'message-router-kafka:9092'\n kafka_username:\n type: string\n default: 'admin'\n kafka_password:\n type: string\n default: 'admin_secret'\n perf3gpp_kafka_topic:\n type: string\n default: 'HV_VES_PERF3GPP'\n log_level:\n type: string\n default: 'INFO'\n server_idle_timeout_sec:\n type: integer\n default: 300\n cbs_request_interval_sec:\n type: integer\n default: 5\n security_ssl_disable:\n type: boolean\n default: false\n security_keys_key_store_file:\n type: string\n default: '/etc/ves-hv/ssl/cert.jks'\n security_keys_key_store_password_file:\n type: string\n default: '/etc/ves-hv/ssl/jks.pass'\n security_keys_trust_store_file:\n type: string\n default: '/etc/ves-hv/ssl/trust.jks'\n security_keys_trust_store_password_file:\n type: string\n default: '/etc/ves-hv/ssl/trust.pass'\n use_tls:\n type: boolean\n default: true\n service_component_name_override:\n type: string\n default: \"dcae-hv-ves-collector\"\n external_cert_cert_type:\n type: string\n description: Output type\n default: \"JKS\"\n external_cert_ca_name:\n type: string\n description: Name of Certificate Authority configured on CertService side.\n default: \"RA\"\n external_cert_common_name:\n type: string\n description: Common name which should be present in certificate.\n default: \"dcae-hv-ves-collector\"\n external_cert_sans:\n type: string\n description: \"List of Subject Alternative Names (SANs) which should be present\n in certificate. Delimiter - : Should contain common_name value and other FQDNs\n under which given component is accessible.\"\n default: \"dcae-hv-ves-collector:hv-ves-collector:hv-ves\"\n external_cert_use_external_tls:\n type: boolean\n description: Flag to indicate external tls enable/disable.\n default: false\nnode_templates:\n hv-ves:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n JAVA_OPTS: { concat: [ '-Dlogback.configurationFile=/etc/ONAP/', { get_input: service_component_type }, '/logback.xml' ] }\n properties:\n application_config:\n logLevel: { get_input: log_level }\n server.idleTimeoutSec: { get_input: server_idle_timeout_sec }\n server.listenPort: { get_input: container_port }\n cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}\n security.sslDisable: { get_input: security_ssl_disable }\n security.keys.keyStoreFile: { get_input: security_keys_key_store_file }\n security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }\n security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }\n security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }\n streams_publishes:\n perf3gpp:\n type: kafka\n aaf_credentials:\n username: { get_input: kafka_username }\n password: { get_input: kafka_password }\n kafka_info:\n bootstrap_servers: { get_input: kafka_bootstrap_servers }\n topic_name: { get_input: perf3gpp_kafka_topic }\n docker_config:\n healthcheck:\n type: script\n script: \"/opt/ves-hv-collector/healthcheck.sh\"\n interval: 15s\n timeout: 2s\n ports:\n - { concat: [ { get_input: container_port }, ':', { get_input: host_port } ] }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n service_component_type: { get_input: service_component_type }\n service_id: { get_input: service_id }\n service_component_name_override: { get_input: service_component_name_override }\n log_info:\n log_directory: { concat: [ '/var/log/ONAP/', { get_input: service_component_type } ] }\n tls_info:\n cert_directory: '/etc/ves-hv/ssl'\n use_tls: { get_input: use_tls }\n external_cert:\n external_cert_directory: '/etc/ves-hv/ssl'\n use_external_tls:\n get_input: external_cert_use_external_tls\n cert_type:\n get_input: external_cert_cert_type\n ca_name:\n get_input: external_cert_ca_name\n external_certificate_parameters:\n common_name:\n get_input: external_cert_common_name\n sans:\n get_input: external_cert_sans\n type: dcae.nodes.ContainerizedServiceComponent\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"e7dd5e53-4a95-4cd1-9965-964b7b6b8612","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/e7dd5e53-4a95-4cd1-9965-964b7b6b8612"},"created":1618112875333,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-pgaas-initdb","typeVersion":2104110347,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '2018-04-27T00:31:38+0000'\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: ''\n\nnode_templates:\n\n # tie to pgaa+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-pm-mapper.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-pm-mapper.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-pm-mapper.yaml .yaml
++ flatten /blueprints/k8s-pm-mapper.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2019-2020 Nordix Foundation.\n# Copyright (C) 2020 Nokia\n# ================================================================================\n# Licensed under the Apache License, Version 2.0 (the '\''License'\'');\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an '\''AS IS'\'' BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n# ============LICENSE_END=========================================================\n#\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - '\''http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'\''\n - plugin:k8splugin?version=3.4.2\n - plugin:dmaap?version=1.5.0\n\ninputs:\n filter:\n type: string\n description: PM Mapper filter on measInfo, measInfoId, measType, instanceId\n default: \"{ \\\"filters\\\":[] }\"\n enable_http:\n type: boolean\n description: Option to turn on HTTP connections\n default: false\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.4.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n feed_name:\n type: string\n default: '\''bulk_pm_feed'\''\n topic_name:\n type: string\n default: '\''PERFORMANCE_MEASUREMENTS'\''\n client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n client_id:\n type: string\n description: Client id for given AAF client\n default: '\''dcae@dcae.onap.org'\''\n client_password:\n type: string\n description: Password for AAF client provided as client_id\n default: '\''demo123456!'\''\n dmaap_dr_username:\n type: string\n description: DMAAP Data Router user name\n default: '\''username'\''\n dmaap_dr_password:\n type: string\n description: DMAAP Data Router password\n default: '\''password'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\n pm_mapper_service_protocol:\n type: string\n description: PM Mapper protocol\n default: '\''https'\''\n pm_mapper_service_port:\n type: string\n description: PM Mapper host port\n default: '\''8443'\''\n dmaap_dr_service_host:\n type: string\n description: DMAAP Data Router host address\n default: '\''dmaap-dr-node'\''\n dmaap_dr_service_port:\n type: string\n description: DMAAP Data Router host port\n default: '\''8443'\''\n dmaap_mr_service_protocol:\n type: string\n description: DMAAP Message Router protocol\n default: '\''https'\''\n dmaap_mr_service_host:\n type: string\n description: DMAAP Message Router host address\n default: '\''message-router'\''\n dmaap_mr_service_port:\n type: string\n description: DMAAP Message Router host port\n default: '\''3905'\''\n cpu_limit:\n type: string\n default: '\''1000m'\''\n cpu_request:\n type: string\n default: '\''1000m'\''\n memory_limit:\n type: string\n default: '\''1024Mi'\''\n memory_request:\n type: string\n default: '\''1024Mi'\''\n\nnode_templates:\n pm-feed:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name: { get_input: feed_name }\n useExisting: true\n\n pm-topic:\n type: dcaegen2.nodes.Topic\n properties:\n topic_name: { get_input: topic_name }\n\n pm-mapper:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n - '\''8081:0'\''\n\n relationships:\n - type: dcaegen2.relationships.subscribe_to_files\n target: pm-feed\n - type: dcaegen2.relationships.publish_events\n target: pm-topic\n\n properties:\n service_component_type: '\''dcae-pm-mapper'\''\n service_component_name_override: '\''dcae-pm-mapper'\''\n application_config:\n trust_store_path: '\''/opt/app/pm-mapper/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/trust.pass'\''\n key_store_path: '\''/opt/app/pm-mapper/etc/cert/cert.jks'\''\n key_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/jks.pass'\''\n pm-mapper-filter: { get_input: filter }\n enable_http: { get_input: enable_http }\n dmaap_dr_delete_endpoint: { concat: ['\''https://'\'',{ get_input: dmaap_dr_service_host },'\'':'\'',{ get_input: dmaap_dr_service_port },'\''/delete'\''] }\n aaf_identity: { get_input: client_id }\n aaf_password: { get_input: client_password }\n streams_subscribes:\n dmaap_subscriber:\n type: data_router\n dmaap_info: <>\n streams_publishes:\n dmaap_publisher:\n type: message_router\n dmaap_info: <>\n resource_config:\n limits:\n cpu: { get_input: cpu_limit }\n memory: { get_input: memory_limit }\n requests:\n cpu: { get_input: cpu_request }\n memory: { get_input: memory_request }\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: https\n streams_publishes:\n - name: pm-topic\n location: { get_input: dcae_location }\n client_role: { get_input: client_role }\n type: message-router\n streams_subscribes:\n - name: pm-feed\n location: { get_input: dcae_location }\n client_role: { get_input: client_role }\n username: { get_input: dmaap_dr_username }\n password: { get_input: dmaap_dr_password }\n scheme: { get_input: pm_mapper_service_protocol }\n route: delivery\n delivery_url: '\'''\''\n privileged: true\n decompress: true\n type: data_router\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcaegen2/services/pm-mapper'\''\n tls_info:\n cert_directory: '\''/opt/app/pm-mapper/etc/cert/'\''\n use_tls: true\n'
++ echo '#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2019-2020 Nordix Foundation.\n# Copyright (C) 2020 Nokia\n# ================================================================================\n# Licensed under the Apache License, Version 2.0 (the '\''License'\'');\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an '\''AS IS'\'' BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n# ============LICENSE_END=========================================================\n#\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - '\''http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'\''\n - plugin:k8splugin?version=3.4.2\n - plugin:dmaap?version=1.5.0\n\ninputs:\n filter:\n type: string\n description: PM Mapper filter on measInfo, measInfoId, measType, instanceId\n default: \"{ \\\"filters\\\":[] }\"\n enable_http:\n type: boolean\n description: Option to turn on HTTP connections\n default: false\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.4.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n feed_name:\n type: string\n default: '\''bulk_pm_feed'\''\n topic_name:\n type: string\n default: '\''PERFORMANCE_MEASUREMENTS'\''\n client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n client_id:\n type: string\n description: Client id for given AAF client\n default: '\''dcae@dcae.onap.org'\''\n client_password:\n type: string\n description: Password for AAF client provided as client_id\n default: '\''demo123456!'\''\n dmaap_dr_username:\n type: string\n description: DMAAP Data Router user name\n default: '\''username'\''\n dmaap_dr_password:\n type: string\n description: DMAAP Data Router password\n default: '\''password'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\n pm_mapper_service_protocol:\n type: string\n description: PM Mapper protocol\n default: '\''https'\''\n pm_mapper_service_port:\n type: string\n description: PM Mapper host port\n default: '\''8443'\''\n dmaap_dr_service_host:\n type: string\n description: DMAAP Data Router host address\n default: '\''dmaap-dr-node'\''\n dmaap_dr_service_port:\n type: string\n description: DMAAP Data Router host port\n default: '\''8443'\''\n dmaap_mr_service_protocol:\n type: string\n description: DMAAP Message Router protocol\n default: '\''https'\''\n dmaap_mr_service_host:\n type: string\n description: DMAAP Message Router host address\n default: '\''message-router'\''\n dmaap_mr_service_port:\n type: string\n description: DMAAP Message Router host port\n default: '\''3905'\''\n cpu_limit:\n type: string\n default: '\''1000m'\''\n cpu_request:\n type: string\n default: '\''1000m'\''\n memory_limit:\n type: string\n default: '\''1024Mi'\''\n memory_request:\n type: string\n default: '\''1024Mi'\''\n\nnode_templates:\n pm-feed:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name: { get_input: feed_name }\n useExisting: true\n\n pm-topic:\n type: dcaegen2.nodes.Topic\n properties:\n topic_name: { get_input: topic_name }\n\n pm-mapper:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n - '\''8081:0'\''\n\n relationships:\n - type: dcaegen2.relationships.subscribe_to_files\n target: pm-feed\n - type: dcaegen2.relationships.publish_events\n target: pm-topic\n\n properties:\n service_component_type: '\''dcae-pm-mapper'\''\n service_component_name_override: '\''dcae-pm-mapper'\''\n application_config:\n trust_store_path: '\''/opt/app/pm-mapper/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/trust.pass'\''\n key_store_path: '\''/opt/app/pm-mapper/etc/cert/cert.jks'\''\n key_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/jks.pass'\''\n pm-mapper-filter: { get_input: filter }\n enable_http: { get_input: enable_http }\n dmaap_dr_delete_endpoint: { concat: ['\''https://'\'',{ get_input: dmaap_dr_service_host },'\'':'\'',{ get_input: dmaap_dr_service_port },'\''/delete'\''] }\n aaf_identity: { get_input: client_id }\n aaf_password: { get_input: client_password }\n streams_subscribes:\n dmaap_subscriber:\n type: data_router\n dmaap_info: <