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.71.12...
* Connected to consul-server (10.233.71.12) 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
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Tue, 06 Apr 2021 02:15:29 GMT
< Content-Length: 4
<
{ [data not shown]
100 124 100 4 100 120 6 187 --:--:-- --:--:-- --:--:-- 186
100 124 100 4 100 120 6 187 --:--:-- --:--:-- --:--:-- 186
* 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.71.12...
* Connected to consul-server (10.233.71.12) 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: Tue, 06 Apr 2021 02:15:29 GMT
< Content-Length: 4
<
{ [data not shown]
100 1518 100 4 100 1514 7 2884 --:--:-- --:--:-- --:--:-- 2889
* 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]
2021-04-06 02:15:57.266 CFY Starting 'install' workflow execution
2021-04-06 02:15:57.921 CFY [sharedsshkey_pgrs_xosexg] Validating node instance before creation: nothing to do
2021-04-06 02:15:57.995 CFY [sharedsshkey_pgrs_xosexg] Precreating node instance: nothing to do
2021-04-06 02:15:58.097 CFY [sharedsshkey_pgrs_xosexg] Creating node instance
2021-04-06 02:15:58.354 CFY [sharedsshkey_pgrs_xosexg.create] Sending task 'sshkeyshare.keyshare_plugin.generate'
2021-04-06 02:16:03.171 CFY [sharedsshkey_pgrs_xosexg.create] Task succeeded 'sshkeyshare.keyshare_plugin.generate'
2021-04-06 02:16:03.276 CFY [sharedsshkey_pgrs_xosexg] Node instance created
2021-04-06 02:16:03.688 CFY [sharedsshkey_pgrs_xosexg] Configuring node instance: nothing to do
2021-04-06 02:16:03.765 CFY [sharedsshkey_pgrs_xosexg] Starting node instance: nothing to do
2021-04-06 02:16:03.878 CFY [sharedsshkey_pgrs_xosexg] Poststarting node instance: nothing to do
2021-04-06 02:16:03.963 CFY [sharedsshkey_pgrs_xosexg] Node instance started
2021-04-06 02:16:04.560 CFY [pgaas_cluster_pvo6e1] Validating node instance before creation: nothing to do
2021-04-06 02:16:04.666 CFY [pgaas_cluster_pvo6e1] Precreating node instance: nothing to do
2021-04-06 02:16:04.773 CFY [pgaas_cluster_pvo6e1] Creating node instance
2021-04-06 02:16:05.023 CFY [pgaas_cluster_pvo6e1.create] Sending task 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-06 02:16:09.156 LOG [pgaas_cluster_pvo6e1.create] WARNING: add_pgaas_cluster() invoked
2021-04-06 02:16:09.422 LOG [pgaas_cluster_pvo6e1.create] WARNING: All done
2021-04-06 02:16:12.890 CFY [pgaas_cluster_pvo6e1.create] Task succeeded 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-06 02:16:12.968 CFY [pgaas_cluster_pvo6e1] Node instance created
2021-04-06 02:16:13.160 CFY [pgaas_cluster_pvo6e1] Configuring node instance: nothing to do
Execution ended, waiting 3 seconds for additional log messages
2021-04-06 02:16:13.264 CFY [pgaas_cluster_pvo6e1] Starting node instance: nothing to do
Execution ended, but no end log message received. Some logs might not have been displayed.
Finished executing workflow install on deployment pgaas_initdb
* Run 'cfy events list 7d112e7f-f8dc-4946-b003-49c6e3e35bbd' 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
++ 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'
+ set +e
+ 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=ves-tls&_include=id'
++ /bin/jq .metadata.pagination.total
+ deploy hv-ves k8s-hv-ves.yaml k8s-hv_ves-inputs.yaml
+ deploy holmes_rules k8s-holmes-rules.yaml k8s-holmes_rules-inputs.yaml
+ set +e
+ set +e
+ cm_hasany 'blueprints?id=hv-ves'
+ cm_hasany 'blueprints?id=holmes_rules'
++ /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=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=prh&_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'
++ /bin/jq .metadata.pagination.total
+ 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 hv-ves /blueprints/k8s-hv-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_rules /blueprints/k8s-holmes-rules.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b prh /blueprints/k8s-prh.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-ves.yaml...
Uploading blueprint /blueprints/k8s-hv-ves.yaml...
k8s-ves.yaml |#######################---------------------------------| 41.44%
k8s-ves.yaml |##############################################----------| 82.88%
k8s-ves.yaml |########################################################| 100.0%Uploading blueprint /blueprints/k8s-prh.yaml...
Uploading blueprint /blueprints/k8s-tcagen2.yaml...
Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-hv-ves.yaml |######################-------------------------------| 41.43%
k8s-hv-ves.yaml |############################################---------| 82.85%
k8s-hv-ves.yaml |#####################################################| 100.0%
k8s-prh.yaml |#######################---------------------------------| 41.44%
k8s-prh.yaml |##############################################----------| 82.87%
k8s-prh.yaml |########################################################| 100.0%
k8s-tcagen2.yaml |######################------------------------------| 41.42%
k8s-tcagen2.yaml |###########################################---------| 82.85%
k8s-tcagen2.yaml |####################################################| 100.0%
k8s-holmes-rules.... |####################----------------------------| 41.41%
k8s-holmes-rules.... |########################################--------| 82.83%
k8s-holmes-rules.... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is tcagen2
+ 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
Blueprint uploaded. The blueprint's id is hv-ves
+ 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
Blueprint uploaded. The blueprint's id is ves-tls
+ cm_hasany 'deployments?id=ves-tls'
++ 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'
++ /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
Blueprint uploaded. The blueprint's id is prh
+ cm_hasany 'deployments?id=prh'
++ 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'
++ /bin/jq .metadata.pagination.total
+ 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
+ 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
Blueprint uploaded. The blueprint's id is holmes_rules
+ 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
+ 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
+ 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
/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 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
Creating new deployment from blueprint hv-ves...
Creating new deployment from blueprint prh...
Creating new deployment from blueprint ves-tls...
Creating new deployment from blueprint holmes_rules...
Deployment created. The deployment's id is tcagen2
Deployment created. The deployment's id is ves-tls
Deployment created. The deployment's id is prh
Deployment created. The deployment's id is hv-ves
Deployment created. The deployment's id is holmes_rules
+ cm_hasany 'node-instances?deployment_id=prh&state=uninitialized&state=deleted'
+ 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'
++ 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
++ /bin/jq .metadata.pagination.total
+ 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
+ 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
+ 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 ves-tls install
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_rules install
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d tcagen2 install
+ 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
/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
Executing workflow `install` on deployment `ves-tls` [timeout=900 seconds]
Executing workflow `install` on deployment `hv-ves` [timeout=900 seconds]
Executing workflow `install` on deployment `holmes_rules` [timeout=900 seconds]
Executing workflow `install` on deployment `tcagen2` [timeout=900 seconds]
Executing workflow `install` on deployment `prh` [timeout=900 seconds]
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
2021-04-06 02:16:36.549 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:16:36.555 CFY Installing deployment and workflow plugins
2021-04-06 02:16:36.665 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.671 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.431 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:16:36.436 CFY Installing deployment and workflow plugins
2021-04-06 02:16:36.535 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.551 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.358 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:16:36.363 CFY Installing deployment and workflow plugins
2021-04-06 02:16:36.462 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.478 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.749 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:16:36.755 CFY Installing deployment and workflow plugins
2021-04-06 02:16:36.854 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.869 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.532 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:16:36.538 CFY Installing deployment and workflow plugins
2021-04-06 02:16:36.636 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:36.652 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:39.752 LOG INFO: Installing plugin: k8s
2021-04-06 02:16:39.845 LOG INFO: Installing plugin: pgaas
2021-04-06 02:16:39.438 LOG INFO: Installing plugin: k8s
2021-04-06 02:16:41.861 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:40.331 LOG INFO: Installing plugin: k8s
2021-04-06 02:16:40.062 LOG INFO: Installing plugin: k8s
2021-04-06 02:16:41.965 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:41.967 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:42.081 CFY Creating deployment work directory
2021-04-06 02:16:42.343 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:16:42.060 LOG INFO: Using existing installation of managed plugin: 637faa72-f25d-4194-a90d-fa0384c44e57 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:42.061 LOG INFO: Installing plugin: k8s
2021-04-06 02:16:42.797 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:42.799 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:42.862 CFY Creating deployment work directory
2021-04-06 02:16:43.343 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:16:41.930 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:41.939 CFY Creating deployment work directory
2021-04-06 02:16:42.278 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:16:42.244 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:42.245 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:42.246 CFY Creating deployment work directory
2021-04-06 02:16:42.532 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:16:42.143 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:16:42.145 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:16:42.146 CFY Creating deployment work directory
2021-04-06 02:16:42.437 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:16:52.736 CFY Starting 'install' workflow execution
2021-04-06 02:16:53.067 CFY Starting 'install' workflow execution
2021-04-06 02:16:55.228 CFY [pgaasvm_jjgncr] Validating node instance before creation: nothing to do
2021-04-06 02:16:53.450 CFY Starting 'install' workflow execution
2021-04-06 02:16:55.328 CFY [ves_yv0yhi] Validating node instance before creation: nothing to do
2021-04-06 02:16:53.455 CFY Starting 'install' workflow execution
2021-04-06 02:16:55.058 CFY [docker.tca_9oxy3z] Validating node instance before creation: nothing to do
2021-04-06 02:16:55.328 CFY [docker.tca_9oxy3z] Precreating node instance: nothing to do
2021-04-06 02:16:53.438 CFY Starting 'install' workflow execution
2021-04-06 02:16:55.552 CFY [hv-ves_yxjsdf] Validating node instance before creation: nothing to do
2021-04-06 02:16:54.544 CFY [prh_8leqrj] Validating node instance before creation: nothing to do
2021-04-06 02:16:54.928 CFY [prh_8leqrj] Precreating node instance: nothing to do
2021-04-06 02:16:55.152 CFY [prh_8leqrj] Creating node instance
2021-04-06 02:16:56.264 CFY [prh_8leqrj.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:16:55.628 CFY [pgaasvm_jjgncr] Precreating node instance: nothing to do
2021-04-06 02:16:56.559 CFY [pgaasvm_jjgncr] Creating node instance
2021-04-06 02:16:56.858 CFY [pgaasvm_jjgncr.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-06 02:16:55.744 CFY [ves_yv0yhi] Precreating node instance: nothing to do
2021-04-06 02:16:56.753 CFY [ves_yv0yhi] Creating node instance
2021-04-06 02:16:57.056 CFY [ves_yv0yhi.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:16:55.846 CFY [hv-ves_yxjsdf] Precreating node instance: nothing to do
2021-04-06 02:16:56.678 CFY [hv-ves_yxjsdf] Creating node instance
2021-04-06 02:16:56.964 CFY [hv-ves_yxjsdf.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:16:55.732 CFY [docker.tca_9oxy3z] Creating node instance
2021-04-06 02:16:56.860 CFY [docker.tca_9oxy3z.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:17:02.209 LOG [pgaasvm_jjgncr.create] WARNING: create_database(holmes)
2021-04-06 02:17:09.138 LOG [ves_yv0yhi.create] INFO: Added config for dcae-ves-collector
2021-04-06 02:17:09.139 LOG [ves_yv0yhi.create] INFO: Done setting up: dcae-ves-collector
2021-04-06 02:17:08.992 LOG [hv-ves_yxjsdf.create] INFO: Added config for dcae-hv-ves-collector
2021-04-06 02:17:08.992 LOG [hv-ves_yxjsdf.create] INFO: Done setting up: dcae-hv-ves-collector
2021-04-06 02:17:09.957 CFY [hv-ves_yxjsdf.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:17:09.139 LOG [docker.tca_9oxy3z.create] INFO: Added config for dcae-tcagen2
2021-04-06 02:17:09.139 LOG [docker.tca_9oxy3z.create] INFO: Done setting up: dcae-tcagen2
2021-04-06 02:17:09.138 LOG [prh_8leqrj.create] INFO: Added config for dcae-prh
2021-04-06 02:17:09.139 LOG [prh_8leqrj.create] INFO: Done setting up: dcae-prh
2021-04-06 02:17:10.905 CFY [prh_8leqrj.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:17:10.514 CFY [ves_yv0yhi.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:17:10.617 CFY [ves_yv0yhi] Node instance created
2021-04-06 02:17:10.893 CFY [ves_yv0yhi] Configuring node instance: nothing to do
2021-04-06 02:17:10.073 CFY [hv-ves_yxjsdf] Node instance created
2021-04-06 02:17:10.354 CFY [hv-ves_yxjsdf] Configuring node instance: nothing to do
2021-04-06 02:17:11.137 CFY [docker.tca_9oxy3z.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:17:10.966 CFY [prh_8leqrj] Node instance created
2021-04-06 02:17:04.418 LOG [pgaasvm_jjgncr.create] WARNING: All done
2021-04-06 02:17:17.881 CFY [pgaasvm_jjgncr.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-06 02:17:17.987 CFY [pgaasvm_jjgncr] Node instance created
2021-04-06 02:17:18.180 CFY [pgaasvm_jjgncr] Configuring node instance: nothing to do
2021-04-06 02:17:18.298 CFY [pgaasvm_jjgncr] Starting node instance: nothing to do
2021-04-06 02:17:11.005 CFY [ves_yv0yhi] Starting node instance
2021-04-06 02:17:11.340 CFY [ves_yv0yhi.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:17:10.467 CFY [hv-ves_yxjsdf] Starting node instance
2021-04-06 02:17:10.721 CFY [hv-ves_yxjsdf.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:17:11.347 CFY [docker.tca_9oxy3z] Node instance created
2021-04-06 02:17:11.514 CFY [docker.tca_9oxy3z] Configuring node instance: nothing to do
2021-04-06 02:17:11.854 CFY [docker.tca_9oxy3z] Starting node instance
2021-04-06 02:17:12.042 CFY [docker.tca_9oxy3z.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:17:11.278 CFY [prh_8leqrj] Configuring node instance: nothing to do
2021-04-06 02:17:11.358 CFY [prh_8leqrj] Starting node instance
2021-04-06 02:17:11.709 CFY [prh_8leqrj.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:17:18.409 CFY [pgaasvm_jjgncr] Poststarting node instance: nothing to do
2021-04-06 02:17:18.657 CFY [pgaasvm_jjgncr] Node instance started
2021-04-06 02:17:20.228 CFY [holmesrules_2scznh] Validating node instance before creation: nothing to do
2021-04-06 02:17:20.532 CFY [holmesrules_2scznh] Precreating node instance: nothing to do
2021-04-06 02:17:20.928 CFY [holmesrules_2scznh] Creating node instance
2021-04-06 02:17:21.978 CFY [holmesrules_2scznh.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:17:27.635 LOG [docker.tca_9oxy3z.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_9oxy3z', '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'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/external'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/logs/dcae-analytics-tca'}, 'ports': [u'9091:0'], 'k8s_location': u'central'}
2021-04-06 02:17:27.154 LOG [hv-ves_yxjsdf.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_yxjsdf', 'cfynode': u'hv-ves'}, 'external_cert': {u'use_external_tls': False, 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'external_cert_directory': u'/etc/ves-hv/ssl', u'ca_name': u'RA'}, '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-06 02:17:27.155 LOG [hv-ves_yxjsdf.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-06 02:17:27.151 LOG [prh_8leqrj.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_8leqrj', 'cfynode': u'prh'}, 'external_cert': {u'ca_name': u'RA', 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'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-06 02:17:27.152 LOG [prh_8leqrj.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-06 02:17:27.249 LOG [ves_yv0yhi.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_yv0yhi', '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-06 02:17:27.250 LOG [ves_yv0yhi.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-06 02:17:27.329 LOG [ves_yv0yhi.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:17:27.960 LOG [ves_yv0yhi.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-06 02:17:27.961 LOG [ves_yv0yhi.start] INFO: Waiting up to 1800 secs for dcae-ves-collector to become ready
2021-04-06 02:17:27.262 LOG [hv-ves_yxjsdf.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:17:27.906 LOG [hv-ves_yxjsdf.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-06 02:17:27.906 LOG [hv-ves_yxjsdf.start] INFO: Waiting up to 1800 secs for dcae-hv-ves-collector to become ready
2021-04-06 02:17:27.636 LOG [docker.tca_9oxy3z.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-06 02:17:27.733 LOG [docker.tca_9oxy3z.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:17:27.930 LOG [docker.tca_9oxy3z.start] INFO: k8s deployment initiated successfully for dcae-tcagen2: {'services': ['dcae-tcagen2'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-tcagen2'}
2021-04-06 02:17:27.930 LOG [docker.tca_9oxy3z.start] INFO: Waiting up to 1800 secs for dcae-tcagen2 to become ready
2021-04-06 02:17:27.262 LOG [prh_8leqrj.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:17:27.858 LOG [prh_8leqrj.start] INFO: k8s deployment initiated successfully for dcae-prh: {'services': ['dcae-prh'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-prh'}
2021-04-06 02:17:27.858 LOG [prh_8leqrj.start] INFO: Waiting up to 1800 secs for dcae-prh to become ready
2021-04-06 02:17:29.519 LOG [holmesrules_2scznh.create] INFO: Added config for holmes-rule-mgmt
2021-04-06 02:17:29.520 LOG [holmesrules_2scznh.create] INFO: Done setting up: holmes-rule-mgmt
2021-04-06 02:17:30.836 CFY [holmesrules_2scznh.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:17:30.996 CFY [holmesrules_2scznh] Node instance created
2021-04-06 02:17:31.040 CFY [holmesrules_2scznh] Configuring node instance: nothing to do
2021-04-06 02:17:31.157 CFY [holmesrules_2scznh] Starting node instance
2021-04-06 02:17:31.607 CFY [holmesrules_2scznh.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:17:36.408 LOG [holmesrules_2scznh.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'94a34dd4bec2a76f0f4b362d4e9dfa16faa80dfdc100dea9e97578046761c757'}, 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'94a34dd4bec2a76f0f4b362d4e9dfa16faa80dfdc100dea9e97578046761c757'}, 'labels': {'cfydeployment': u'holmes_rules', 'cfynodeinstance': u'holmesrules_2scznh', 'cfynode': u'holmesrules'}, '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': {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-06 02:17:36.409 LOG [holmesrules_2scznh.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-06 02:17:36.420 LOG [holmesrules_2scznh.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:17:36.501 LOG [holmesrules_2scznh.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-06 02:17:36.502 LOG [holmesrules_2scznh.start] INFO: Waiting up to 1800 secs for holmes-rule-mgmt to become ready
2021-04-06 02:18:30.879 LOG [hv-ves_yxjsdf.start] INFO: k8s deployment is ready for: dcae-hv-ves-collector
2021-04-06 02:18:30.879 LOG [hv-ves_yxjsdf.start] INFO: Done starting: dcae-hv-ves-collector
2021-04-06 02:18:31.283 CFY [hv-ves_yxjsdf.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:18:31.380 CFY [hv-ves_yxjsdf] Poststarting node instance: nothing to do
2021-04-06 02:18:31.462 CFY [hv-ves_yxjsdf] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-06 02:18:30.837 LOG [prh_8leqrj.start] INFO: k8s deployment is ready for: dcae-prh
2021-04-06 02:18:30.838 LOG [prh_8leqrj.start] INFO: Done starting: dcae-prh
2021-04-06 02:18:31.294 CFY [prh_8leqrj.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:18:31.412 CFY [prh_8leqrj] Poststarting node instance: nothing to do
2021-04-06 02:18:31.474 CFY [prh_8leqrj] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-06 02:18:31.980 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment hv-ves
* Run 'cfy events list ae15bc71-cdb3-4ce4-b5a7-7c192560323a' to retrieve the execution's events/logs
2021-04-06 02:18:31.980 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment prh
* Run 'cfy events list be74b4fd-af63-4f65-9ac9-a3b9f30e4c25' to retrieve the execution's events/logs
2021-04-06 02:18:42.269 LOG [ves_yv0yhi.start] INFO: k8s deployment is ready for: dcae-ves-collector
2021-04-06 02:18:42.269 LOG [ves_yv0yhi.start] INFO: Done starting: dcae-ves-collector
2021-04-06 02:18:43.270 CFY [ves_yv0yhi.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:18:43.366 CFY [ves_yv0yhi] Poststarting node instance: nothing to do
2021-04-06 02:18:43.623 CFY [ves_yv0yhi] Node instance started
2021-04-06 02:18:44.004 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment ves-tls
* Run 'cfy events list 336fb281-8a34-49ec-8efc-2ecb041598d5' to retrieve the execution's events/logs
2021-04-06 02:18:43.148 LOG [docker.tca_9oxy3z.start] INFO: k8s deployment is ready for: dcae-tcagen2
2021-04-06 02:18:43.148 LOG [docker.tca_9oxy3z.start] INFO: Done starting: dcae-tcagen2
2021-04-06 02:18:43.885 CFY [docker.tca_9oxy3z.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:18:43.914 CFY [docker.tca_9oxy3z] Poststarting node instance: nothing to do
2021-04-06 02:18:44.138 CFY [docker.tca_9oxy3z] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-06 02:18:44.492 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment tcagen2
* Run 'cfy events list 473bdf63-6af7-4844-bf67-e869cc07809b' to retrieve the execution's events/logs
2021-04-06 02:19:37.242 LOG [holmesrules_2scznh.start] INFO: k8s deployment is ready for: holmes-rule-mgmt
2021-04-06 02:19:37.242 LOG [holmesrules_2scznh.start] INFO: Done starting: holmes-rule-mgmt
2021-04-06 02:19:37.852 CFY [holmesrules_2scznh.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:19:37.991 CFY [holmesrules_2scznh] Poststarting node instance: nothing to do
2021-04-06 02:19:38.215 CFY [holmesrules_2scznh] Node instance started
2021-04-06 02:19:38.491 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_rules
* Run 'cfy events list 0b56e518-124f-4719-8079-672b6647c4f7' 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
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]
Deployment environment creation is pending...
2021-04-06 02:19:47.351 CFY Starting 'create_deployment_environment' workflow execution
2021-04-06 02:19:47.357 CFY Installing deployment and workflow plugins
2021-04-06 02:19:47.456 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-06 02:19:47.471 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-06 02:19:48.479 LOG INFO: Installing plugin: pgaas
2021-04-06 02:19:49.191 LOG INFO: Using existing installation of managed plugin: 637faa72-f25d-4194-a90d-fa0384c44e57 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:19:49.192 LOG INFO: Installing plugin: k8s
2021-04-06 02:19:49.850 LOG INFO: Using existing installation of managed plugin: d230d90e-63c4-443d-ac84-257318b0b2ce [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-06 02:19:49.851 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-06 02:19:49.882 CFY Creating deployment work directory
2021-04-06 02:19:50.161 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-06 02:19:55.765 CFY Starting 'install' workflow execution
2021-04-06 02:19:56.376 CFY [pgaasvm_5o28kq] Validating node instance before creation: nothing to do
2021-04-06 02:19:56.437 CFY [pgaasvm_5o28kq] Precreating node instance: nothing to do
2021-04-06 02:19:56.542 CFY [pgaasvm_5o28kq] Creating node instance
2021-04-06 02:19:56.797 CFY [pgaasvm_5o28kq.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-06 02:19:59.627 LOG [pgaasvm_5o28kq.create] WARNING: create_database(holmes)
2021-04-06 02:20:02.894 CFY [pgaasvm_5o28kq.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-06 02:20:03.087 CFY [pgaasvm_5o28kq] Node instance created
2021-04-06 02:20:03.203 CFY [pgaasvm_5o28kq] Configuring node instance: nothing to do
2021-04-06 02:20:03.312 CFY [pgaasvm_5o28kq] Starting node instance: nothing to do
2021-04-06 02:20:03.422 CFY [pgaasvm_5o28kq] Poststarting node instance: nothing to do
2021-04-06 02:20:03.504 CFY [pgaasvm_5o28kq] Node instance started
2021-04-06 02:20:04.048 CFY [holmesengine_5rtp9u] Validating node instance before creation: nothing to do
2021-04-06 02:20:04.223 CFY [holmesengine_5rtp9u] Precreating node instance: nothing to do
2021-04-06 02:20:04.332 CFY [holmesengine_5rtp9u] Creating node instance
2021-04-06 02:20:04.668 CFY [holmesengine_5rtp9u.create] Sending task 'k8splugin.create_for_components'
2021-04-06 02:20:12.155 LOG [holmesengine_5rtp9u.create] INFO: Added config for holmes-engine-mgmt
2021-04-06 02:20:12.155 LOG [holmesengine_5rtp9u.create] INFO: Done setting up: holmes-engine-mgmt
2021-04-06 02:20:12.873 CFY [holmesengine_5rtp9u.create] Task succeeded 'k8splugin.create_for_components'
2021-04-06 02:20:12.939 CFY [holmesengine_5rtp9u] Node instance created
2021-04-06 02:20:13.250 CFY [holmesengine_5rtp9u] Configuring node instance: nothing to do
2021-04-06 02:20:13.458 CFY [holmesengine_5rtp9u] Starting node instance
2021-04-06 02:20:13.672 CFY [holmesengine_5rtp9u.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:20:18.647 LOG [holmesengine_5rtp9u.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'94a34dd4bec2a76f0f4b362d4e9dfa16faa80dfdc100dea9e97578046761c757'}, 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'94a34dd4bec2a76f0f4b362d4e9dfa16faa80dfdc100dea9e97578046761c757'}, 'labels': {'cfydeployment': u'holmes_engine', 'cfynodeinstance': u'holmesengine_5rtp9u', '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-06 02:20:18.648 LOG [holmesengine_5rtp9u.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-06 02:20:18.664 LOG [holmesengine_5rtp9u.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-06 02:20:18.792 LOG [holmesengine_5rtp9u.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-06 02:20:18.792 LOG [holmesengine_5rtp9u.start] INFO: Waiting up to 1800 secs for holmes-engine-mgmt to become ready
2021-04-06 02:21:56.565 LOG [holmesengine_5rtp9u.start] INFO: k8s deployment is ready for: holmes-engine-mgmt
2021-04-06 02:21:56.565 LOG [holmesengine_5rtp9u.start] INFO: Done starting: holmes-engine-mgmt
2021-04-06 02:21:57.167 CFY [holmesengine_5rtp9u.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-06 02:21:57.252 CFY [holmesengine_5rtp9u] Poststarting node instance: nothing to do
2021-04-06 02:21:57.491 CFY [holmesengine_5rtp9u] Node instance started
2021-04-06 02:21:57.751 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_engine
* Run 'cfy events list 70bea082-dda6-4bf4-b530-8d313b8fd1a2' 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-06 02:15:33.976 | 2021-04-06 02:15:33.976 | tenant | default_tenant | admin | |
| tcagen2 | tcagen2 | 2021-04-06 02:16:26.198 | 2021-04-06 02:16:26.198 | tenant | default_tenant | admin | |
| hv-ves | hv-ves | 2021-04-06 02:16:26.489 | 2021-04-06 02:16:26.489 | tenant | default_tenant | admin | |
| prh | prh | 2021-04-06 02:16:26.633 | 2021-04-06 02:16:26.633 | tenant | default_tenant | admin | |
| ves-tls | ves-tls | 2021-04-06 02:16:26.660 | 2021-04-06 02:16:26.660 | tenant | default_tenant | admin | |
| holmes_rules | holmes_rules | 2021-04-06 02:16:26.878 | 2021-04-06 02:16:26.878 | tenant | default_tenant | admin | |
| holmes_engine | holmes_engine | 2021-04-06 02:19:45.159 | 2021-04-06 02:19:45.159 | 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": 2104060222,
"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
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1307 100 47 100 1260 178 4774 --:--:-- --:--:-- --:--:-- 4772
+ 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": 2104060222,
"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 17253 16307 --:--:-- --:--:-- --:--:-- 17297
+ 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": 2104060222,
"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 17902 16047 --:--:-- --:--:-- --:--:-- 18041
+ 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": 2104060222,
"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
100 8781 100 4526 100 4255 31387 29508 --:--:-- --:--:-- --:--:-- 31430
+ 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
+++ 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 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": 2104060222,
"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 20188 18805 --:--:-- --:--:-- --:--:-- 20282
+ 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": 2104060222,
"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
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13477 100 6874 100 6603 47286 45422 --:--:-- --:--:-- --:--:-- 47082
{"code":400,"message":"Unable to process JSON"}{"owner":"dcaeorch","typeName":"k8s-datafile","typeVersion":2104060222,"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":"611c984c-5468-42eb-9c2d-73a4116d3106","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/611c984c-5468-42eb-9c2d-73a4116d3106"},"created":1617675721408,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-admin-ui","typeVersion":2104060222,"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":"f0ee1a51-a4d0-43e2-8f07-9e463c971a5b","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/f0ee1a51-a4d0-43e2-8f07-9e463c971a5b"},"created":1617675721639,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-des","typeVersion":2104060222,"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":"d56dd021-3827-4fd0-a33d-32a216dd1e7f","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/d56dd021-3827-4fd0-a33d-32a216dd1e7f"},"created":1617675721795,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-feeder","typeVersion":2104060222,"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":"e0180ba6-767e-41c3-b368-417adf4866e0","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/e0180ba6-767e-41c3-b368-417adf4866e0"},"created":1617675721954,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-heartbeat","typeVersion":2104060222,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copy+ 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": 2104060222,
"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 11997 10817 --:--:-- --:--:-- --:--:-- 12039
+ 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": 2104060222,
"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 17651 16742 --:--:-- --:--:-- --:--:-- 17671
+ 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": 2104060222,
"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":"3332ed57-8685-435b-a9e3-7df6991e5a82","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/3332ed57-8685-435b-a9e3-7df6991e5a82"},"created":1617675722158,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-helm","typeVersion":2104060222,"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":"28fb3aee-cf16-44dc-be0b-f824003a4ef0","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/28fb3aee-cf16-44dc-be0b-f824003a4ef0"},"created":1617675722313,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-engine","typeVersion":2104060222,"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":"23506336-441e-4ac1-a766-f67266cea802","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/23506336-441e-4ac1-a766-f67266cea802"},"created":1617675722713,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-rules","typeVersion":2104060222,"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
100 17553 0 8912 100 8641 53532 51904 --:--:-- --:--:-- --:--:-- 53686
+ 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": 2104060222,
"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 33995 32672 --:--:-- --:--:-- --:--:-- 33970
100 13657 100 6964 100 6693 33979 32657 --:--:-- --:--:-- --:--:-- 33970
+ 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": 2104060222,
"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
-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":"e3c1413a-517c-43f7-9b57-47ef1caed841","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/e3c1413a-517c-43f7-9b57-47ef1caed841"},"created":1617675722891,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-hv-ves","typeVersion":2104060222,"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":"1e469074-27af-4a55-87c2-e80e186bdd0d","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/1e469074-27af-4a55-87c2-e80e186bdd0d"},"created":1617675723053,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-pgaas-initdb","typeVersion":2104060222,"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
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6097 100 3184 100 2913 23619 21609 --:--:-- --:--:-- --:--:-- 23761
+ 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
++ date +%y%m%d%I%M
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ 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: <>\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 '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104060222,
"typeName": "k8s-pm-mapper",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "#\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: <