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.74.135...
* Connected to consul-server (10.233.74.135) 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: Thu, 27 May 2021 03:03:53 GMT
< Content-Length: 4
<
{ [data not shown]
100 124 100 4 100 120 8 252 --:--:-- --:--:-- --:--:-- 252
100 124 100 4 100 120 8 252 --:--:-- --:--:-- --:--:-- 252
* 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.74.135...
* Connected to consul-server (10.233.74.135) 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: Thu, 27 May 2021 03:03:54 GMT
< Content-Length: 4
<
{ [data not shown]
100 1518 100 4 100 1514 4 1837 0:00:01 --:--:-- 0:00:01 1837
100 1518 100 4 100 1514 4 1837 0:00:01 --:--:-- 0:00:01 1837
* Connection #0 to host consul-server left intact
+ trap - ERR
+ set +e
+ deploy pgaas_initdb k8s-pgaas-initdb.yaml k8s-pgaas-initdb-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b pgaas_initdb /blueprints/k8s-pgaas-initdb.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
truetrueUploading blueprint /blueprints/k8s-pgaas-initdb.yaml...
k8s-pgaas-initdb.... |####################----------------------------| 41.42%
k8s-pgaas-initdb.... |########################################--------| 82.84%
k8s-pgaas-initdb.... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is pgaas_initdb
+ cm_hasany 'deployments?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-pgaas-initdb-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-pgaas-initdb-inputs.yaml
+ cfy deployments create -b pgaas_initdb -i/inputs/k8s-pgaas-initdb-inputs.yaml pgaas_initdb
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint pgaas_initdb...
Deployment created. The deployment's id is pgaas_initdb
+ cm_hasany 'node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d pgaas_initdb install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `pgaas_initdb` [timeout=900 seconds]
Deployment environment creation is in progress...
2021-05-27 03:04:00.575 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:00.581 CFY Installing deployment and workflow plugins
2021-05-27 03:04:00.681 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:00.695 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:01.537 LOG INFO: Installing plugin: pgaas
2021-05-27 03:04:09.481 CFY Starting 'install' workflow execution
2021-05-27 03:04:10.017 CFY [sharedsshkey_pgrs_u8pe6y] Validating node instance before creation: nothing to do
2021-05-27 03:04:10.074 CFY [sharedsshkey_pgrs_u8pe6y] Precreating node instance: nothing to do
2021-05-27 03:04:10.193 CFY [sharedsshkey_pgrs_u8pe6y] Creating node instance
2021-05-27 03:04:10.440 CFY [sharedsshkey_pgrs_u8pe6y.create] Sending task 'sshkeyshare.keyshare_plugin.generate'
2021-05-27 03:04:15.810 CFY [sharedsshkey_pgrs_u8pe6y.create] Task succeeded 'sshkeyshare.keyshare_plugin.generate'
2021-05-27 03:04:15.872 CFY [sharedsshkey_pgrs_u8pe6y] Node instance created
2021-05-27 03:04:16.185 CFY [sharedsshkey_pgrs_u8pe6y] Configuring node instance: nothing to do
2021-05-27 03:04:16.251 CFY [sharedsshkey_pgrs_u8pe6y] Starting node instance: nothing to do
2021-05-27 03:04:16.362 CFY [sharedsshkey_pgrs_u8pe6y] Poststarting node instance: nothing to do
2021-05-27 03:04:16.473 CFY [sharedsshkey_pgrs_u8pe6y] Node instance started
2021-05-27 03:04:17.069 CFY [pgaas_cluster_9qucwj] Validating node instance before creation: nothing to do
2021-05-27 03:04:17.184 CFY [pgaas_cluster_9qucwj] Precreating node instance: nothing to do
2021-05-27 03:04:24.123 LOG [pgaas_cluster_9qucwj.create] WARNING: add_pgaas_cluster() invoked
2021-05-27 03:04:24.410 LOG [pgaas_cluster_9qucwj.create] WARNING: All done
2021-05-27 03:04:25.096 CFY [pgaas_cluster_9qucwj.create] Task succeeded 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-05-27 03:04:25.219 CFY [pgaas_cluster_9qucwj] Node instance created
2021-05-27 03:04:25.515 CFY [pgaas_cluster_9qucwj] Configuring node instance: nothing to do
2021-05-27 03:04:25.606 CFY [pgaas_cluster_9qucwj] Starting node instance: nothing to do
Execution ended, waiting 3 seconds for additional log messages
2021-05-27 03:04:25.721 CFY [pgaas_cluster_9qucwj] Poststarting node instance: nothing to do
2021-05-27 03:04:25.811 CFY [pgaas_cluster_9qucwj] Node instance started
2021-05-27 03:04:26.224 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment pgaas_initdb
* Run 'cfy events list 9062889d-0d94-4fbf-9e1f-2ab36b33f74c' 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
+ deploy prh k8s-prh.yaml k8s-prh-inputs.yaml
+ cm_hasany 'blueprints?id=ves-tls'
+ set +e
+ cm_hasany 'blueprints?id=prh'
+ 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
+ cm_hasany 'blueprints?id=holmes_rules'
+ set +e
+ cm_hasany 'blueprints?id=hv-ves'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=tcagen2&_include=id'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_rules&_include=id'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=ves-tls&_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
++ /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
+ 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 hv-ves /blueprints/k8s-hv-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b ves-tls /blueprints/k8s-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_rules /blueprints/k8s-holmes-rules.yaml
+ 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-tcagen2.yaml...
k8s-tcagen2.yaml |######################------------------------------| 41.42%
k8s-tcagen2.yaml |###########################################---------| 82.85%
k8s-tcagen2.yaml |####################################################| 100.0%Uploading blueprint /blueprints/k8s-ves.yaml...
Uploading blueprint /blueprints/k8s-prh.yaml...
Uploading blueprint /blueprints/k8s-hv-ves.yaml...
Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-ves.yaml |#######################---------------------------------| 41.44%
k8s-ves.yaml |##############################################----------| 82.88%
k8s-ves.yaml |########################################################| 100.0%
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-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
+ 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 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
/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
Blueprint uploaded. The blueprint's id is ves-tls
Blueprint uploaded. The blueprint's id is prh
Blueprint uploaded. The blueprint's id is holmes_rules
+ 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
+ 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
+ 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
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-prh-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-prh-inputs.yaml
+ cfy deployments create -b prh -i/inputs/k8s-prh-inputs.yaml prh
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-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
+ 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
Creating new deployment from blueprint tcagen2...
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/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 hv-ves...
Creating new deployment from blueprint ves-tls...
Creating new deployment from blueprint prh...
Creating new deployment from blueprint holmes_rules...
Deployment created. The deployment's id is tcagen2
+ cm_hasany 'node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d tcagen2 install
Deployment created. The deployment's id is hv-ves
Deployment created. The deployment's id is prh
Deployment created. The deployment's id is holmes_rules
Deployment created. The deployment's id is ves-tls
+ cm_hasany 'node-instances?deployment_id=prh&state=uninitialized&state=deleted'
+ 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'
++ 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=ves-tls&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=ves-tls&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ 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
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_rules install
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d prh install
+ 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
Executing workflow `install` on deployment `tcagen2` [timeout=900 seconds]
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Deployment environment creation is in progress...
/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 `holmes_rules` [timeout=900 seconds]
Executing workflow `install` on deployment `hv-ves` [timeout=900 seconds]
Executing workflow `install` on deployment `prh` [timeout=900 seconds]
Executing workflow `install` on deployment `ves-tls` [timeout=900 seconds]
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
2021-05-27 03:04:40.125 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:40.132 CFY Installing deployment and workflow plugins
2021-05-27 03:04:40.232 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:40.247 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:43.801 LOG INFO: Installing plugin: k8s
2021-05-27 03:04:46.508 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:46.522 CFY Installing deployment and workflow plugins
2021-05-27 03:04:46.619 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.637 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.719 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:46.731 CFY Installing deployment and workflow plugins
2021-05-27 03:04:46.828 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.845 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.902 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:46.911 CFY Installing deployment and workflow plugins
2021-05-27 03:04:47.011 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:47.025 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:47.028 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:04:47.102 CFY Installing deployment and workflow plugins
2021-05-27 03:04:47.196 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:47.221 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.806 LOG INFO: Using existing installation of managed plugin: 8aaf93f5-eea1-44ac-b2d0-39c5d098aebc [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:04:46.807 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:46.809 CFY Creating deployment work directory
2021-05-27 03:04:47.297 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-27 03:04:50.002 LOG INFO: Installing plugin: k8s
2021-05-27 03:04:50.505 LOG INFO: Installing plugin: k8s
2021-05-27 03:04:50.127 LOG INFO: Installing plugin: k8s
2021-05-27 03:04:50.622 LOG INFO: Installing plugin: pgaas
2021-05-27 03:04:52.315 LOG INFO: Using existing installation of managed plugin: 8aaf93f5-eea1-44ac-b2d0-39c5d098aebc [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:04:52.608 LOG INFO: Using existing installation of managed plugin: 8aaf93f5-eea1-44ac-b2d0-39c5d098aebc [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:04:54.923 CFY Starting 'install' workflow execution
2021-05-27 03:04:55.426 CFY [docker.tca_g40pj0] Validating node instance before creation: nothing to do
2021-05-27 03:04:55.499 CFY [docker.tca_g40pj0] Precreating node instance: nothing to do
2021-05-27 03:04:55.616 CFY [docker.tca_g40pj0] Creating node instance
2021-05-27 03:04:52.610 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-27 03:04:52.618 CFY Creating deployment work directory
2021-05-27 03:04:52.621 LOG INFO: Using existing installation of managed plugin: e36b0516-adf9-41f4-9971-1f2dd1723b24 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:04:52.623 LOG INFO: Installing plugin: k8s
2021-05-27 03:04:58.456 CFY Starting 'install' workflow execution
2021-05-27 03:04:58.980 CFY [hv-ves_8z76u9] Validating node instance before creation: nothing to do
2021-05-27 03:04:59.098 CFY [hv-ves_8z76u9] Precreating node instance: nothing to do
2021-05-27 03:04:59.183 CFY [hv-ves_8z76u9] Creating node instance
2021-05-27 03:04:55.851 CFY [docker.tca_g40pj0.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:05:04.256 CFY Starting 'install' workflow execution
2021-05-27 03:05:05.537 CFY [pgaasvm_oz7575] Validating node instance before creation: nothing to do
2021-05-27 03:05:04.198 CFY Starting 'install' workflow execution
2021-05-27 03:05:05.536 CFY [ves_g7pti5] Validating node instance before creation: nothing to do
2021-05-27 03:05:05.734 CFY [ves_g7pti5] Precreating node instance: nothing to do
2021-05-27 03:05:04.034 CFY Starting 'install' workflow execution
2021-05-27 03:05:05.122 CFY [prh_72b0ij] Validating node instance before creation: nothing to do
2021-05-27 03:05:05.337 CFY [prh_72b0ij] Precreating node instance: nothing to do
2021-05-27 03:05:05.929 CFY [prh_72b0ij] Creating node instance
2021-05-27 03:05:06.227 CFY [prh_72b0ij.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:04:59.434 CFY [hv-ves_8z76u9.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:05:06.042 CFY [ves_g7pti5] Creating node instance
2021-05-27 03:05:06.796 CFY [ves_g7pti5.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:05:05.895 CFY [pgaasvm_oz7575] Precreating node instance: nothing to do
2021-05-27 03:05:06.717 CFY [pgaasvm_oz7575] Creating node instance
2021-05-27 03:05:06.972 CFY [pgaasvm_oz7575.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-05-27 03:05:11.813 LOG [pgaasvm_oz7575.create] WARNING: create_database(holmes)
2021-05-27 03:05:13.296 LOG [prh_72b0ij.create] INFO: Added config for dcae-prh
2021-05-27 03:05:13.297 LOG [hv-ves_8z76u9.create] INFO: Added config for dcae-hv-ves-collector
2021-05-27 03:05:13.298 LOG [hv-ves_8z76u9.create] INFO: Done setting up: dcae-hv-ves-collector
2021-05-27 03:05:14.564 CFY [hv-ves_8z76u9.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:05:12.729 LOG [docker.tca_g40pj0.create] INFO: Added config for dcae-tcagen2
2021-05-27 03:05:12.729 LOG [docker.tca_g40pj0.create] INFO: Done setting up: dcae-tcagen2
2021-05-27 03:05:13.821 CFY [docker.tca_g40pj0.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:05:13.965 CFY [docker.tca_g40pj0] Node instance created
2021-05-27 03:05:14.327 CFY [docker.tca_g40pj0] Configuring node instance: nothing to do
2021-05-27 03:05:13.436 LOG [ves_g7pti5.create] INFO: Added config for dcae-ves-collector
2021-05-27 03:05:13.436 LOG [ves_g7pti5.create] INFO: Done setting up: dcae-ves-collector
2021-05-27 03:05:14.823 CFY [ves_g7pti5.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:05:14.945 CFY [ves_g7pti5] Node instance created
2021-05-27 03:05:13.297 LOG [prh_72b0ij.create] INFO: Done setting up: dcae-prh
2021-05-27 03:05:14.265 CFY [prh_72b0ij.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:05:14.360 CFY [prh_72b0ij] Node instance created
2021-05-27 03:05:14.751 CFY [prh_72b0ij] Configuring node instance: nothing to do
2021-05-27 03:05:14.614 CFY [hv-ves_8z76u9] Node instance created
2021-05-27 03:05:15.026 CFY [hv-ves_8z76u9] Configuring node instance: nothing to do
2021-05-27 03:05:15.713 CFY [hv-ves_8z76u9] Starting node instance
2021-05-27 03:05:14.527 CFY [docker.tca_g40pj0] Starting node instance
2021-05-27 03:05:15.137 CFY [docker.tca_g40pj0.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:05:14.918 CFY [prh_72b0ij] Starting node instance
2021-05-27 03:05:15.895 CFY [prh_72b0ij.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:05:15.523 CFY [ves_g7pti5] Configuring node instance: nothing to do
2021-05-27 03:05:16.101 CFY [ves_g7pti5] Starting node instance
2021-05-27 03:05:16.288 CFY [ves_g7pti5.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:05:16.045 CFY [hv-ves_8z76u9.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:05:20.844 LOG [docker.tca_g40pj0.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_g40pj0', 'cfynode': u'docker.tca'}, '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/logs/dcae-analytics-tca'}, 'ports': [u'9091:0'], 'k8s_location': u'central'}
2021-05-27 03:05:20.844 LOG [docker.tca_g40pj0.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-05-27 03:05:20.926 LOG [docker.tca_g40pj0.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:05:21.424 LOG [docker.tca_g40pj0.start] INFO: k8s deployment initiated successfully for dcae-tcagen2: {'services': ['dcae-tcagen2'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-tcagen2'}
2021-05-27 03:05:23.138 LOG [prh_72b0ij.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_72b0ij', 'cfynode': u'prh'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/prh/logs'}, 'ports': [u'8100:0'], 'k8s_location': u'central'}
2021-05-27 03:05:23.300 LOG [hv-ves_8z76u9.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_8z76u9', '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-05-27 03:05:23.300 LOG [hv-ves_8z76u9.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-05-27 03:05:21.424 LOG [docker.tca_g40pj0.start] INFO: Waiting up to 1800 secs for dcae-tcagen2 to become ready
2021-05-27 03:05:23.681 LOG [ves_g7pti5.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_g7pti5', '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'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/'}, '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-05-27 03:05:23.681 LOG [ves_g7pti5.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-05-27 03:05:23.697 LOG [ves_g7pti5.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:05:23.812 LOG [ves_g7pti5.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-05-27 03:05:23.138 LOG [prh_72b0ij.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-05-27 03:05:23.149 LOG [prh_72b0ij.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:05:23.274 LOG [prh_72b0ij.start] INFO: k8s deployment initiated successfully for dcae-prh: {'services': ['dcae-prh'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-prh'}
2021-05-27 03:05:23.275 LOG [prh_72b0ij.start] INFO: Waiting up to 1800 secs for dcae-prh to become ready
2021-05-27 03:05:15.531 LOG [pgaasvm_oz7575.create] WARNING: All done
2021-05-27 03:05:25.429 CFY [pgaasvm_oz7575.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-05-27 03:05:25.603 CFY [pgaasvm_oz7575] Node instance created
2021-05-27 03:05:23.313 LOG [hv-ves_8z76u9.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:05:23.422 LOG [hv-ves_8z76u9.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-05-27 03:05:23.423 LOG [hv-ves_8z76u9.start] INFO: Waiting up to 1800 secs for dcae-hv-ves-collector to become ready
2021-05-27 03:05:23.812 LOG [ves_g7pti5.start] INFO: Waiting up to 1800 secs for dcae-ves-collector to become ready
2021-05-27 03:05:25.765 CFY [pgaasvm_oz7575] Configuring node instance: nothing to do
2021-05-27 03:05:25.852 CFY [pgaasvm_oz7575] Starting node instance: nothing to do
2021-05-27 03:05:25.962 CFY [pgaasvm_oz7575] Poststarting node instance: nothing to do
2021-05-27 03:05:26.061 CFY [pgaasvm_oz7575] Node instance started
2021-05-27 03:05:26.761 CFY [holmesrules_g53jzv] Validating node instance before creation: nothing to do
2021-05-27 03:05:26.868 CFY [holmesrules_g53jzv] Precreating node instance: nothing to do
2021-05-27 03:05:27.090 CFY [holmesrules_g53jzv] Creating node instance
2021-05-27 03:05:27.258 CFY [holmesrules_g53jzv.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:05:32.003 LOG [holmesrules_g53jzv.create] INFO: Added config for holmes-rule-mgmt
2021-05-27 03:05:32.003 LOG [holmesrules_g53jzv.create] INFO: Done setting up: holmes-rule-mgmt
2021-05-27 03:05:32.873 CFY [holmesrules_g53jzv.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:05:32.950 CFY [holmesrules_g53jzv] Node instance created
2021-05-27 03:05:33.241 CFY [holmesrules_g53jzv] Configuring node instance: nothing to do
2021-05-27 03:05:33.469 CFY [holmesrules_g53jzv] Starting node instance
2021-05-27 03:05:33.587 CFY [holmesrules_g53jzv.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:05:40.104 LOG [holmesrules_g53jzv.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'8d78e49361f24ee26331578b98a1fd253221a837117b55a530f5273a4b890466'}, 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'8d78e49361f24ee26331578b98a1fd253221a837117b55a530f5273a4b890466'}, 'labels': {'cfydeployment': u'holmes_rules', 'cfynodeinstance': u'holmesrules_g53jzv', '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-05-27 03:05:40.104 LOG [holmesrules_g53jzv.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-05-27 03:05:40.115 LOG [holmesrules_g53jzv.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:05:40.215 LOG [holmesrules_g53jzv.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-05-27 03:05:40.215 LOG [holmesrules_g53jzv.start] INFO: Waiting up to 1800 secs for holmes-rule-mgmt to become ready
2021-05-27 03:06:54.601 LOG [prh_72b0ij.start] INFO: k8s deployment is ready for: dcae-prh
2021-05-27 03:06:54.603 LOG [prh_72b0ij.start] INFO: Done starting: dcae-prh
2021-05-27 03:06:55.809 CFY [prh_72b0ij.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:06:55.875 CFY [prh_72b0ij] Poststarting node instance: nothing to do
2021-05-27 03:06:56.190 CFY [prh_72b0ij] Node instance started
2021-05-27 03:06:56.579 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment prh
* Run 'cfy events list 9fcdea5e-71a7-4e9b-82ed-4decfcf7a369' to retrieve the execution's events/logs
2021-05-27 03:07:04.646 LOG [docker.tca_g40pj0.start] INFO: k8s deployment is ready for: dcae-tcagen2
2021-05-27 03:07:04.646 LOG [docker.tca_g40pj0.start] INFO: Done starting: dcae-tcagen2
2021-05-27 03:07:05.568 CFY [docker.tca_g40pj0.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:07:05.698 CFY [docker.tca_g40pj0] Poststarting node instance: nothing to do
2021-05-27 03:07:05.776 CFY [docker.tca_g40pj0] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-05-27 03:07:06.236 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment tcagen2
* Run 'cfy events list 11370293-13d4-47e0-bc02-ba07f6d88eb1' to retrieve the execution's events/logs
2021-05-27 03:07:11.701 LOG [hv-ves_8z76u9.start] INFO: k8s deployment is ready for: dcae-hv-ves-collector
2021-05-27 03:07:11.701 LOG [hv-ves_8z76u9.start] INFO: Done starting: dcae-hv-ves-collector
2021-05-27 03:07:12.557 CFY [hv-ves_8z76u9.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:07:12.618 CFY [hv-ves_8z76u9] Poststarting node instance: nothing to do
2021-05-27 03:07:12.829 CFY [hv-ves_8z76u9] Node instance started
2021-05-27 03:07:13.038 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment hv-ves
* Run 'cfy events list ef9a7096-59e5-4396-8af6-8d3b2ec26280' to retrieve the execution's events/logs
2021-05-27 03:07:33.924 LOG [ves_g7pti5.start] INFO: k8s deployment is ready for: dcae-ves-collector
2021-05-27 03:07:33.924 LOG [ves_g7pti5.start] INFO: Done starting: dcae-ves-collector
2021-05-27 03:07:34.589 CFY [ves_g7pti5.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:07:34.699 CFY [ves_g7pti5] Poststarting node instance: nothing to do
2021-05-27 03:07:34.777 CFY [ves_g7pti5] Node instance started
2021-05-27 03:07:35.290 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment ves-tls
* Run 'cfy events list 9ce02cdf-6b4c-4215-af06-e76557e60dc9' to retrieve the execution's events/logs
2021-05-27 03:07:59.711 LOG [holmesrules_g53jzv.start] INFO: k8s deployment is ready for: holmes-rule-mgmt
2021-05-27 03:07:59.711 LOG [holmesrules_g53jzv.start] INFO: Done starting: holmes-rule-mgmt
2021-05-27 03:08:00.406 CFY [holmesrules_g53jzv.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:08:00.470 CFY [holmesrules_g53jzv] Poststarting node instance: nothing to do
2021-05-27 03:08:00.551 CFY [holmesrules_g53jzv] Node instance started
2021-05-27 03:08:00.982 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_rules
* Run 'cfy events list 2f028bb7-b045-4523-a8d7-e5cf0d920ee0' 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'
++ /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_engine&_include=id'
+ 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'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=holmes_engine&_include=id'
+ 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 in progress...
2021-05-27 03:08:09.686 CFY Starting 'create_deployment_environment' workflow execution
2021-05-27 03:08:09.693 CFY Installing deployment and workflow plugins
2021-05-27 03:08:09.793 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-27 03:08:09.807 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-27 03:08:10.687 LOG INFO: Installing plugin: pgaas
2021-05-27 03:08:11.259 LOG INFO: Using existing installation of managed plugin: e36b0516-adf9-41f4-9971-1f2dd1723b24 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:08:11.260 LOG INFO: Installing plugin: k8s
2021-05-27 03:08:11.835 LOG INFO: Using existing installation of managed plugin: 8aaf93f5-eea1-44ac-b2d0-39c5d098aebc [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-27 03:08:11.836 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-27 03:08:11.951 CFY Creating deployment work directory
2021-05-27 03:08:12.179 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-27 03:08:18.439 CFY Starting 'install' workflow execution
2021-05-27 03:08:19.016 CFY [pgaasvm_fbtkqg] Validating node instance before creation: nothing to do
2021-05-27 03:08:19.093 CFY [pgaasvm_fbtkqg] Precreating node instance: nothing to do
2021-05-27 03:08:19.348 CFY [pgaasvm_fbtkqg] Creating node instance
2021-05-27 03:08:19.463 CFY [pgaasvm_fbtkqg.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-05-27 03:08:22.845 LOG [pgaasvm_fbtkqg.create] WARNING: create_database(holmes)
2021-05-27 03:08:25.063 CFY [pgaasvm_fbtkqg.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-05-27 03:08:25.109 CFY [pgaasvm_fbtkqg] Node instance created
2021-05-27 03:08:25.273 CFY [pgaasvm_fbtkqg] Configuring node instance: nothing to do
2021-05-27 03:08:25.386 CFY [pgaasvm_fbtkqg] Starting node instance: nothing to do
2021-05-27 03:08:25.501 CFY [pgaasvm_fbtkqg] Poststarting node instance: nothing to do
2021-05-27 03:08:25.583 CFY [pgaasvm_fbtkqg] Node instance started
2021-05-27 03:08:26.170 CFY [holmesengine_ljaiqr] Validating node instance before creation: nothing to do
2021-05-27 03:08:26.275 CFY [holmesengine_ljaiqr] Precreating node instance: nothing to do
2021-05-27 03:08:26.378 CFY [holmesengine_ljaiqr] Creating node instance
2021-05-27 03:08:26.636 CFY [holmesengine_ljaiqr.create] Sending task 'k8splugin.create_for_components'
2021-05-27 03:08:34.187 LOG [holmesengine_ljaiqr.create] INFO: Added config for holmes-engine-mgmt
2021-05-27 03:08:34.187 LOG [holmesengine_ljaiqr.create] INFO: Done setting up: holmes-engine-mgmt
2021-05-27 03:08:34.879 CFY [holmesengine_ljaiqr.create] Task succeeded 'k8splugin.create_for_components'
2021-05-27 03:08:34.982 CFY [holmesengine_ljaiqr] Node instance created
2021-05-27 03:08:35.273 CFY [holmesengine_ljaiqr] Configuring node instance: nothing to do
2021-05-27 03:08:35.376 CFY [holmesengine_ljaiqr] Starting node instance
2021-05-27 03:08:35.624 CFY [holmesengine_ljaiqr.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:08:39.586 LOG [holmesengine_ljaiqr.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'8d78e49361f24ee26331578b98a1fd253221a837117b55a530f5273a4b890466'}, 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'8d78e49361f24ee26331578b98a1fd253221a837117b55a530f5273a4b890466'}, 'labels': {'cfydeployment': u'holmes_engine', 'cfynodeinstance': u'holmesengine_ljaiqr', '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'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, '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-05-27 03:08:39.587 LOG [holmesengine_ljaiqr.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-05-27 03:08:39.603 LOG [holmesengine_ljaiqr.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-27 03:08:39.769 LOG [holmesengine_ljaiqr.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-05-27 03:08:39.769 LOG [holmesengine_ljaiqr.start] INFO: Waiting up to 1800 secs for holmes-engine-mgmt to become ready
2021-05-27 03:09:51.078 LOG [holmesengine_ljaiqr.start] INFO: k8s deployment is ready for: holmes-engine-mgmt
2021-05-27 03:09:51.079 LOG [holmesengine_ljaiqr.start] INFO: Done starting: holmes-engine-mgmt
2021-05-27 03:09:51.983 CFY [holmesengine_ljaiqr.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-27 03:09:51.996 CFY [holmesengine_ljaiqr] Poststarting node instance: nothing to do
Execution ended, waiting 3 seconds for additional log messages
2021-05-27 03:09:52.226 CFY [holmesengine_ljaiqr] Node instance started
2021-05-27 03:09:52.507 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_engine
* Run 'cfy events list 45d35d8b-4598-4f27-adb4-03174e86812d' 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-05-27 03:03:58.312 | 2021-05-27 03:03:58.312 | tenant | default_tenant | admin | |
| tcagen2 | tcagen2 | 2021-05-27 03:04:37.652 | 2021-05-27 03:04:37.652 | tenant | default_tenant | admin | |
| hv-ves | hv-ves | 2021-05-27 03:04:38.966 | 2021-05-27 03:04:38.966 | tenant | default_tenant | admin | |
| prh | prh | 2021-05-27 03:04:39.218 | 2021-05-27 03:04:39.218 | tenant | default_tenant | admin | |
| ves-tls | ves-tls | 2021-05-27 03:04:39.222 | 2021-05-27 03:04:39.222 | tenant | default_tenant | admin | |
| holmes_rules | holmes_rules | 2021-05-27 03:04:39.420 | 2021-05-27 03:04:39.420 | tenant | default_tenant | admin | |
| holmes_engine | holmes_engine | 2021-05-27 03:08:07.533 | 2021-05-27 03:08:07.533 | 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
++ 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-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": 2105270309,
"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 184 4950 --:--:-- --:--:-- --:--:-- 4941
+ 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": 2105270309,
"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 19254 18199 --:--:-- --:--:-- --:--:-- 19324
+ 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": 2105270309,
"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 15112 13547 --:--:-- --:--:-- --:--:-- 15209
+ 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": 2105270309,
"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 22890 21519 --:--:-- --:--:-- --:--:-- 22974
+ 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": 2105270309,
"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
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 7639 100 3955 100 3684 26032 24248 --:--:-- --:--:-- --:--:-- 26019
+ 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": 2105270309,
"typeName": "k8s-heartbeat",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copyright (C) 2020 Wipro Limited\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n\n\ninputs:\n tag_version:\n type: string\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.1.1'\''\n heartbeat_name:\n type: string\n default: '\''dcae-heartbeat-service'\''\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n type: integer\n description: Network port that the platform service is expecting to expose on the host\n default: 30223\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 10002\n consul_host:\n type: string\n description: Consul endpoint address\n default: '\''consul-server.onap'\''\n consul_port:\n type: integer\n description: Consul endpoint port\n default: 8500\n CBS_polling_allowed:\n type: string\n default: '\''True'\''\n CBS_polling_interval:\n type: string\n default: '\''300'\''\n consumerID:\n type: string\n default: '\''1'\''\n groupID:\n type: string\n default: '\''hbgrpID'\''\n namespace:\n type: string\n default: '\''onap'\''\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n pg_dbName:\n type: string\n default: '\''heartbeat'\''\n ves_heartbeat_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'\''\n dcae_CL_publish_url:\n type: string\n default: '\''http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'\''\nnode_templates:\n hbpgaas:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: pg_dbName}\n use_existing: false\n\n heartbeat:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval: \"300\"\n consumerID: \"1\"\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n ports:\n - \"10002:0\"\n\n properties:\n application_config:\n CBS_polling_allowed:\n get_input: CBS_polling_allowed\n CBS_polling_interval:\n get_input: CBS_polling_interval\n consumerID:\n get_input: consumerID\n groupID:\n get_input: groupID\n pg_ipAddress:\n { get_attribute: [ hbpgaas, admin, host ] }\n pg_passwd:\n { get_attribute: [ hbpgaas, admin, password ] }\n pg_portNum:\n { get_attribute: [ hbpgaas, admin, port ] }\n pg_userName:\n { get_attribute: [ hbpgaas, admin, user ] }\n pg_dbName:\n get_input: pg_dbName\n heartbeat_config: '\''{\"vnfs\": [{\"eventName\": \"Heartbeat_vDNS\",\"heartbeatcountmissed\": 3,\"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\", \"policyVersion\": \"1.0.0.5\", \"policyName\":\"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_vFW\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\",\"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\", \"target_type\":\"VNF\", \"target\": \"genVnfName\", \"version\": \"1.0\"}, {\"eventName\": \"Heartbeat_xx\",\"heartbeatcountmissed\": 3, \"heartbeatinterval\": 60,\"closedLoopControlName\": \"ControlLoopEvent1\",\"policyVersion\": \"1.0.0.5\",\"policyName\": \"vFireWall\", \"policyScope\": \"resource=sampleResource,type=sampletype,CLName=sampleCLName\",\"target_type\": \"VNF\",\"target\": \"genVnfName\",\"version\": \"1.0\"}]}'\''\n streams_publishes:\n dcae_cl_out:\n dmaap_info:\n topic_url:\n get_input: dcae_CL_publish_url\n type: message_router\n streams_subscribes:\n ves-heartbeat:\n dmaap_info:\n topic_url:\n get_input: ves_heartbeat_publish_url\n type: message_router\n docker_config:\n healthcheck:\n type: http\n endpoint: /\n interval: 15s\n timeout: 1s\n service_component_type:\n get_input: heartbeat_name\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcae-heartbeat-services'\''\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - type: cloudify.relationships.depends_on\n target: hbpgaas\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
{"code":400,"message":"Unable to process JSON"}{"owner":"dcaeorch","typeName":"k8s-datafile","typeVersion":2105270309,"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":"cdff9c7b-a6d4-4ebe-8116-6c5cbe375eaf","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/cdff9c7b-a6d4-4ebe-8116-6c5cbe375eaf"},"created":1622084998276,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-admin-ui","typeVersion":2105270309,"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":"10fdcc3b-03c3-4e64-9277-7ad8790f4c56","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/10fdcc3b-03c3-4e64-9277-7ad8790f4c56"},"created":1622084998487,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-des","typeVersion":2105270309,"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":"cb7dc7e7-2378-4c9a-a813-f7c4aa19c753","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/cb7dc7e7-2378-4c9a-a813-f7c4aa19c753"},"created":1622084998700,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-datalake-feeder","typeVersion":2105270309,"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":"5a5a9c47-f660-4c8a-aa96-3751248f9eb0","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/5a5a9c47-f660-4c8a-aa96-3751248f9eb0"},"created":1622084998868,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-heartbeat","typeVersion":2105270309,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-2020 AT&T\n# Copy
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13477 100 6874 100 6603 23388 22466 --:--:-- --:--:-- --:--:-- 23460
+ 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": 2105270309,
"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 16922 15259 --:--:-- --:--:-- --:--:-- 17018
+ 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": 2105270309,
"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 32906 31213 --:--:-- --:--:-- --:--:-- 33119
+ 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": 2105270309,
"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":"dc4cb7da-8acc-4e43-9bb5-9cbf44ce5fb4","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/dc4cb7da-8acc-4e43-9bb5-9cbf44ce5fb4"},"created":1622084999094,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-helm","typeVersion":2105270309,"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":"f7a7d0ad-6abf-40a6-b2da-98958cbe6999","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/f7a7d0ad-6abf-40a6-b2da-98958cbe6999"},"created":1622084999416,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-engine","typeVersion":2105270309,"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":"314608f5-0dda-443f-8e3e-27b4d9290b1c","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/314608f5-0dda-443f-8e3e-27b4d9290b1c"},"created":1622084999598,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-holmes-rules","typeVersion":2105270309,"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 34621 33568 --:--:-- --:--:-- --:--:-- 34542
100 17553 0 8912 100 8641 34340 33295 --:--:-- --:--:-- --:--:-- 34276
+ 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": 2105270309,
"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 32431 31169 --:--:-- --:--:-- --:--:-- 32542
+ 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": 2105270310,
"typeName": "k8s-pgaas-initdb",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '\''2018-04-27T00:31:38+0000'\''\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: '\'''\''\n\nnode_templates:\n\n # tie to pgaas_plugin database\n pgaas_cluster:\n type: dcae.nodes.pgaas.cluster\n properties:\n writerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n readerfqdn: { get_input: k8s_pgaas_instance_fqdn }\n initialpassword: { get_input: k8s_initial_password }\n relationships:\n - type: dcae.relationships.pgaas_cluster_uses_sshkeypair\n target: sharedsshkey_pgrs\n\n sharedsshkey_pgrs:\n type: dcaegen2.nodes.ssh.keypair\n\n\noutputs:\n blueprint_version:\n value: { get_input: blueprint_version }\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6097 100 3184 100 2913 19260 17620 --:--:-- --:--:-- --:--:-- 19296
-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":"7d414fbc-9091-45f8-947c-9a289820560a","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/7d414fbc-9091-45f8-947c-9a289820560a"},"created":1622084999783,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-hv-ves","typeVersion":2105270309,"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":"86f54384-884c-4870-af70-adc7e63ef8a7","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/86f54384-884c-4870-af70-adc7e63ef8a7"},"created":1622085000103,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-pgaas-initdb","typeVersion":2105270310,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# org.onap.dcae\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# =============================================================================\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============LICENSE_END======================================================\n\ntosca_definitions_version: cloudify_dsl_1_3\n\ndescription: |-\n This blueprint is used to take control of a postgres server instance for use by cloudify-managed applications.\n This blueprint depends upon the deployment of the pgaas_plugin and an existing postgres server instance.\n This blueprint is part of a suite of three blueprints:\n k8s-pgaas-initdb takes control of the postgres server instance.\n k8s-pgaas-database creates a database, roles and credentials associated with the database.\n k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:relationshipplugin?version=1.1.0\n - plugin:sshkeyshare?version=1.2.0\n - plugin:pgaas?version=1.3.0\n\ninputs:\n blueprint_version:\n type: string\n default: '2018-04-27T00:31:38+0000'\n\n pgaas_cluster_name:\n type: string\n default: pghelm\n\n k8s_pgaas_instance_fqdn:\n type: string\n\n k8s_initial_password:\n type: string\n default: ''\n\nnode_templates:\n\n # tie to pgaa+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-pm-mapper.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-pm-mapper.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-pm-mapper.yaml .yaml
++ flatten /blueprints/k8s-pm-mapper.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2019-2020 Nordix Foundation.\n# Copyright (C) 2020 Nokia\n# ================================================================================\n# Licensed under the Apache License, Version 2.0 (the '\''License'\'');\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an '\''AS IS'\'' BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n# ============LICENSE_END=========================================================\n#\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - '\''http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'\''\n - plugin:k8splugin?version=3.4.2\n - plugin:dmaap?version=1.5.0\n\ninputs:\n filter:\n type: string\n description: PM Mapper filter on measInfo, measInfoId, measType, instanceId\n default: \"{ \\\"filters\\\":[] }\"\n enable_http:\n type: boolean\n description: Option to turn on HTTP connections\n default: false\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.4.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n feed_name:\n type: string\n default: '\''bulk_pm_feed'\''\n topic_name:\n type: string\n default: '\''PERFORMANCE_MEASUREMENTS'\''\n client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n client_id:\n type: string\n description: Client id for given AAF client\n default: '\''dcae@dcae.onap.org'\''\n client_password:\n type: string\n description: Password for AAF client provided as client_id\n default: '\''demo123456!'\''\n dmaap_dr_username:\n type: string\n description: DMAAP Data Router user name\n default: '\''username'\''\n dmaap_dr_password:\n type: string\n description: DMAAP Data Router password\n default: '\''password'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\n pm_mapper_service_protocol:\n type: string\n description: PM Mapper protocol\n default: '\''https'\''\n pm_mapper_service_port:\n type: string\n description: PM Mapper host port\n default: '\''8443'\''\n dmaap_dr_service_host:\n type: string\n description: DMAAP Data Router host address\n default: '\''dmaap-dr-node'\''\n dmaap_dr_service_port:\n type: string\n description: DMAAP Data Router host port\n default: '\''8443'\''\n dmaap_mr_service_protocol:\n type: string\n description: DMAAP Message Router protocol\n default: '\''https'\''\n dmaap_mr_service_host:\n type: string\n description: DMAAP Message Router host address\n default: '\''message-router'\''\n dmaap_mr_service_port:\n type: string\n description: DMAAP Message Router host port\n default: '\''3905'\''\n cpu_limit:\n type: string\n default: '\''1000m'\''\n cpu_request:\n type: string\n default: '\''1000m'\''\n memory_limit:\n type: string\n default: '\''1024Mi'\''\n memory_request:\n type: string\n default: '\''1024Mi'\''\n\nnode_templates:\n pm-feed:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name: { get_input: feed_name }\n useExisting: true\n\n pm-topic:\n type: dcaegen2.nodes.Topic\n properties:\n topic_name: { get_input: topic_name }\n\n pm-mapper:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n - '\''8081:0'\''\n\n relationships:\n - type: dcaegen2.relationships.subscribe_to_files\n target: pm-feed\n - type: dcaegen2.relationships.publish_events\n target: pm-topic\n\n properties:\n service_component_type: '\''dcae-pm-mapper'\''\n service_component_name_override: '\''dcae-pm-mapper'\''\n application_config:\n trust_store_path: '\''/opt/app/pm-mapper/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/trust.pass'\''\n key_store_path: '\''/opt/app/pm-mapper/etc/cert/cert.jks'\''\n key_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/jks.pass'\''\n pm-mapper-filter: { get_input: filter }\n enable_http: { get_input: enable_http }\n dmaap_dr_delete_endpoint: { concat: ['\''https://'\'',{ get_input: dmaap_dr_service_host },'\'':'\'',{ get_input: dmaap_dr_service_port },'\''/delete'\''] }\n aaf_identity: { get_input: client_id }\n aaf_password: { get_input: client_password }\n streams_subscribes:\n dmaap_subscriber:\n type: data_router\n dmaap_info: <>\n streams_publishes:\n dmaap_publisher:\n type: message_router\n dmaap_info: <>\n resource_config:\n limits:\n cpu: { get_input: cpu_limit }\n memory: { get_input: memory_limit }\n requests:\n cpu: { get_input: cpu_request }\n memory: { get_input: memory_request }\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: https\n streams_publishes:\n - name: pm-topic\n location: { get_input: dcae_location }\n client_role: { get_input: client_role }\n type: message-router\n streams_subscribes:\n - name: pm-feed\n location: { get_input: dcae_location }\n client_role: { get_input: client_role }\n username: { get_input: dmaap_dr_username }\n password: { get_input: dmaap_dr_password }\n scheme: { get_input: pm_mapper_service_protocol }\n route: delivery\n delivery_url: '\'''\''\n privileged: true\n decompress: true\n type: data_router\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcaegen2/services/pm-mapper'\''\n tls_info:\n cert_directory: '\''/opt/app/pm-mapper/etc/cert/'\''\n use_tls: true\n'
++ echo '#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2019-2020 Nordix Foundation.\n# Copyright (C) 2020 Nokia\n# ================================================================================\n# Licensed under the Apache License, Version 2.0 (the '\''License'\'');\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an '\''AS IS'\'' BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n# ============LICENSE_END=========================================================\n#\n\ntosca_definitions_version: cloudify_dsl_1_3\n\nimports:\n - '\''http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'\''\n - plugin:k8splugin?version=3.4.2\n - plugin:dmaap?version=1.5.0\n\ninputs:\n filter:\n type: string\n description: PM Mapper filter on measInfo, measInfoId, measType, instanceId\n default: \"{ \\\"filters\\\":[] }\"\n enable_http:\n type: boolean\n description: Option to turn on HTTP connections\n default: false\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.4.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n feed_name:\n type: string\n default: '\''bulk_pm_feed'\''\n topic_name:\n type: string\n default: '\''PERFORMANCE_MEASUREMENTS'\''\n client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n client_id:\n type: string\n description: Client id for given AAF client\n default: '\''dcae@dcae.onap.org'\''\n client_password:\n type: string\n description: Password for AAF client provided as client_id\n default: '\''demo123456!'\''\n dmaap_dr_username:\n type: string\n description: DMAAP Data Router user name\n default: '\''username'\''\n dmaap_dr_password:\n type: string\n description: DMAAP Data Router password\n default: '\''password'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\n pm_mapper_service_protocol:\n type: string\n description: PM Mapper protocol\n default: '\''https'\''\n pm_mapper_service_port:\n type: string\n description: PM Mapper host port\n default: '\''8443'\''\n dmaap_dr_service_host:\n type: string\n description: DMAAP Data Router host address\n default: '\''dmaap-dr-node'\''\n dmaap_dr_service_port:\n type: string\n description: DMAAP Data Router host port\n default: '\''8443'\''\n dmaap_mr_service_protocol:\n type: string\n description: DMAAP Message Router protocol\n default: '\''https'\''\n dmaap_mr_service_host:\n type: string\n description: DMAAP Message Router host address\n default: '\''message-router'\''\n dmaap_mr_service_port:\n type: string\n description: DMAAP Message Router host port\n default: '\''3905'\''\n cpu_limit:\n type: string\n default: '\''1000m'\''\n cpu_request:\n type: string\n default: '\''1000m'\''\n memory_limit:\n type: string\n default: '\''1024Mi'\''\n memory_request:\n type: string\n default: '\''1024Mi'\''\n\nnode_templates:\n pm-feed:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name: { get_input: feed_name }\n useExisting: true\n\n pm-topic:\n type: dcaegen2.nodes.Topic\n properties:\n topic_name: { get_input: topic_name }\n\n pm-mapper:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n - '\''8081:0'\''\n\n relationships:\n - type: dcaegen2.relationships.subscribe_to_files\n target: pm-feed\n - type: dcaegen2.relationships.publish_events\n target: pm-topic\n\n properties:\n service_component_type: '\''dcae-pm-mapper'\''\n service_component_name_override: '\''dcae-pm-mapper'\''\n application_config:\n trust_store_path: '\''/opt/app/pm-mapper/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/trust.pass'\''\n key_store_path: '\''/opt/app/pm-mapper/etc/cert/cert.jks'\''\n key_store_pass_path: '\''/opt/app/pm-mapper/etc/cert/jks.pass'\''\n pm-mapper-filter: { get_input: filter }\n enable_http: { get_input: enable_http }\n dmaap_dr_delete_endpoint: { concat: ['\''https://'\'',{ get_input: dmaap_dr_service_host },'\'':'\'',{ get_input: dmaap_dr_service_port },'\''/delete'\''] }\n aaf_identity: { get_input: client_id }\n aaf_password: { get_input: client_password }\n streams_subscribes:\n dmaap_subscriber:\n type: data_router\n dmaap_info: <>\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": 2105270310,
"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: <>\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"
}'
% 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 13777 100 7024 100 6753 44397 42684 --:--:-- --:--:-- --:--:-- 44455
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-pmsh.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-pmsh.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-pmsh.yaml .yaml
++ flatten /blueprints/k8s-pmsh.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2020 Nordix Foundation.\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:pgaas?version=1.3.0\ninputs:\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.1.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n operational_policy_name:\n type: string\n default: '\''pmsh-operational-policy'\''\n control_loop_name:\n type: string\n default: '\''pmsh-control-loop'\''\n pmsh_publish_topic_name:\n type: string\n default: '\''unauthenticated.DCAE_CL_OUTPUT'\''\n policy_feedback_topic_name:\n type: string\n default: '\''unauthenticated.PMSH_CL_INPUT'\''\n aai_notification_topic_name:\n type: string\n default: '\''AAI-EVENT'\''\n publisher_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n subscriber_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmSubscriber'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\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 pgaas_cluster_name:\n type: string\n default: '\''dcae-pg-primary.onap'\''\n enable_tls:\n type: boolean\n default: true\n protocol:\n type: string\n description: PMSH protocol. If enable_tls is false, set to http\n default: '\''https'\''\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: '\''pmsh'\''\n pmsh:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n envs:\n PMSH_PG_URL:\n { get_attribute: [ pgaasvm, admin, host ] }\n PMSH_PG_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n PMSH_PG_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n PMSH_DB_NAME:\n { get_attribute: [ pgaasvm, admin, database ] }\n\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n properties:\n service_component_type: '\''dcae-pmsh'\''\n service_component_name_override: '\''dcae-pmsh'\''\n application_config:\n enable_tls: { get_input: enable_tls }\n aaf_identity: '\''dcae@dcae.onap.org'\''\n aaf_password: '\''demo123456!'\''\n operational_policy_name: { get_input: operational_policy_name }\n control_loop_name: { get_input: control_loop_name }\n cert_path: '\''/opt/app/pmsh/etc/certs/cert.pem'\''\n key_path: '\''/opt/app/pmsh/etc/certs/key.pem'\''\n ca_cert_path: '\''/opt/app/pmsh/etc/certs/cacert.pem'\''\n streams_publishes:\n policy_pm_publisher:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: pmsh_publish_topic_name }]}\n streams_subscribes:\n policy_pm_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: policy_feedback_topic_name }]}\n aai_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: aai_notification_topic_name }]}\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: { get_input: protocol }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcaegen2/services/pmsh'\''\n tls_info:\n cert_directory: '\''/opt/app/pmsh/etc/certs'\''\n use_tls: { get_input: enable_tls }\n'
++ echo '#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2020 Nordix Foundation.\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:pgaas?version=1.3.0\ninputs:\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.1.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n operational_policy_name:\n type: string\n default: '\''pmsh-operational-policy'\''\n control_loop_name:\n type: string\n default: '\''pmsh-control-loop'\''\n pmsh_publish_topic_name:\n type: string\n default: '\''unauthenticated.DCAE_CL_OUTPUT'\''\n policy_feedback_topic_name:\n type: string\n default: '\''unauthenticated.PMSH_CL_INPUT'\''\n aai_notification_topic_name:\n type: string\n default: '\''AAI-EVENT'\''\n publisher_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n subscriber_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmSubscriber'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\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 pgaas_cluster_name:\n type: string\n default: '\''dcae-pg-primary.onap'\''\n enable_tls:\n type: boolean\n default: true\n protocol:\n type: string\n description: PMSH protocol. If enable_tls is false, set to http\n default: '\''https'\''\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: '\''pmsh'\''\n pmsh:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n envs:\n PMSH_PG_URL:\n { get_attribute: [ pgaasvm, admin, host ] }\n PMSH_PG_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n PMSH_PG_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n PMSH_DB_NAME:\n { get_attribute: [ pgaasvm, admin, database ] }\n\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n properties:\n service_component_type: '\''dcae-pmsh'\''\n service_component_name_override: '\''dcae-pmsh'\''\n application_config:\n enable_tls: { get_input: enable_tls }\n aaf_identity: '\''dcae@dcae.onap.org'\''\n aaf_password: '\''demo123456!'\''\n operational_policy_name: { get_input: operational_policy_name }\n control_loop_name: { get_input: control_loop_name }\n cert_path: '\''/opt/app/pmsh/etc/certs/cert.pem'\''\n key_path: '\''/opt/app/pmsh/etc/certs/key.pem'\''\n ca_cert_path: '\''/opt/app/pmsh/etc/certs/cacert.pem'\''\n streams_publishes:\n policy_pm_publisher:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: pmsh_publish_topic_name }]}\n streams_subscribes:\n policy_pm_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: policy_feedback_topic_name }]}\n aai_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: aai_notification_topic_name }]}\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: { get_input: protocol }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcaegen2/services/pmsh'\''\n tls_info:\n cert_directory: '\''/opt/app/pmsh/etc/certs'\''\n use_tls: { get_input: enable_tls }\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-pmsh",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2020 Nordix Foundation.\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:pgaas?version=1.3.0\ninputs:\n tag_version:\n type: string\n description: Docker image to be used\n default: '\''nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.1.2'\''\n replicas:\n type: integer\n description: Number of instances\n default: 1\n operational_policy_name:\n type: string\n default: '\''pmsh-operational-policy'\''\n control_loop_name:\n type: string\n default: '\''pmsh-control-loop'\''\n pmsh_publish_topic_name:\n type: string\n default: '\''unauthenticated.DCAE_CL_OUTPUT'\''\n policy_feedback_topic_name:\n type: string\n default: '\''unauthenticated.PMSH_CL_INPUT'\''\n aai_notification_topic_name:\n type: string\n default: '\''AAI-EVENT'\''\n publisher_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmPublisher'\''\n subscriber_client_role:\n type: string\n description: Client role to request secure access to topic\n default: '\''org.onap.dcae.pmSubscriber'\''\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: '\''san-francisco'\''\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 pgaas_cluster_name:\n type: string\n default: '\''dcae-pg-primary.onap'\''\n enable_tls:\n type: boolean\n default: true\n protocol:\n type: string\n description: PMSH protocol. If enable_tls is false, set to http\n default: '\''https'\''\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: '\''pmsh'\''\n pmsh:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '\''8443:0'\''\n envs:\n PMSH_PG_URL:\n { get_attribute: [ pgaasvm, admin, host ] }\n PMSH_PG_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n PMSH_PG_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n PMSH_DB_NAME:\n { get_attribute: [ pgaasvm, admin, database ] }\n\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n properties:\n service_component_type: '\''dcae-pmsh'\''\n service_component_name_override: '\''dcae-pmsh'\''\n application_config:\n enable_tls: { get_input: enable_tls }\n aaf_identity: '\''dcae@dcae.onap.org'\''\n aaf_password: '\''demo123456!'\''\n operational_policy_name: { get_input: operational_policy_name }\n control_loop_name: { get_input: control_loop_name }\n cert_path: '\''/opt/app/pmsh/etc/certs/cert.pem'\''\n key_path: '\''/opt/app/pmsh/etc/certs/key.pem'\''\n ca_cert_path: '\''/opt/app/pmsh/etc/certs/cacert.pem'\''\n streams_publishes:\n policy_pm_publisher:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: pmsh_publish_topic_name }]}\n streams_subscribes:\n policy_pm_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: policy_feedback_topic_name }]}\n aai_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: aai_notification_topic_name }]}\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: { get_input: protocol }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '\''/var/log/ONAP/dcaegen2/services/pmsh'\''\n tls_info:\n cert_directory: '\''/opt/app/pmsh/etc/certs'\''\n use_tls: { get_input: enable_tls }\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 11607 100 5939 100 5668 39033 37252 --:--:-- --:--:-- --:--:-- 39072
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-prh.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-prh.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-prh.yaml .yaml
++ flatten /blueprints/k8s-prh.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-2020 AT&T\n# Copyright (c) 2018-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# ============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\ninputs:\n pnfUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf\"\n baseUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12\"\n aaiEnrichmentHost:\n type: string\n default: \"aai.onap.svc.cluster.local\"\n aaiEnrichmentPort:\n type: integer\n default: 8443\n aaiEnrichmentUser:\n type: string\n description: aai user name\n default: \"AAI\"\n aaiEnrichmentPasswd:\n type: string\n description: aai password\n default: \"AAI\"\n dmaap_pnfReady_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY\"\n dmaap_vesPnfRegOutput_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT\"\n dmaap_pnfUpdate_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE\"\n dmaap_user:\n type: string\n description: dmap user name\n default: \"admin\"\n dmaap_passwd:\n type: string\n description: dmap password\n default: \"admin\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.5.4\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n description: port on Kubernetes host where PRH API will be exposed\n default: 0\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 8100\n service_component_type:\n type: string\n default: \"dcae-prh\"\n service_id:\n type: string\n default: \"dcae-prh\"\n secureEnableCert:\n type: boolean\n description: enable certificate base connection with AAI and DMaap\n default: false\n service_component_name_override:\n type: string\n default: \"dcae-prh\"\nnode_templates:\n prh:\n properties:\n application_config:\n dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapConsumerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapConsumerConfiguration.consumerId: \"c12\"\n dmaap.dmaapConsumerConfiguration.consumerGroup: \"OpenDCAE-c12\"\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapProducerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: \"application/json\"\n aai.aaiClientConfiguration.pnfUrl: { get_input: pnfUrl }\n aai.aaiClientConfiguration.baseUrl: { get_input: baseUrl }\n aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }\n aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }\n aai.aaiClientConfiguration.aaiProtocol: \"https\"\n aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }\n aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }\n aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true\n aai.aaiClientConfiguration.aaiBasePath: \"/aai/v12\"\n aai.aaiClientConfiguration.aaiPnfPath: \"/network/pnfs/pnf\"\n aai.aaiClientConfiguration.aaiServiceInstancePath: \"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}\"\n aai.aaiClientConfiguration.aaiHeaders:\n X-FromAppId: \"prh\"\n X-TransactionId: \"9999\"\n Accept: \"application/json\"\n Real-Time: \"true\"\n Authorization: \"Basic QUFJOkFBSQ==\"\n security.trustStorePath: \"/opt/app/prh/etc/cert/trust.jks\"\n security.trustStorePasswordPath: \"/opt/app/prh/etc/cert/trust.pass\"\n security.keyStorePath: \"/opt/app/prh/etc/cert/cert.jks\"\n security.keyStorePasswordPath: \"/opt/app/prh/etc/cert/jks.pass\"\n security.enableAaiCertAuth: { get_input: secureEnableCert }\n security.enableDmaapCertAuth: { get_input: secureEnableCert }\n streams_publishes:\n pnf-update:\n type: \"message_router\"\n dmaap_info:\n topic_url: {get_input: dmaap_pnfUpdate_url }\n pnf-ready:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_pnfReady_url }\n streams_subscribes:\n ves-reg-output:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_vesPnfRegOutput_url }\n docker_config:\n healthcheck:\n endpoint: /heartbeat\n interval: 15s\n timeout: 1s\n type: http\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image:\n { 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: \"/opt/app/prh/logs\"\n tls_info:\n cert_directory: '\''/opt/app/prh/etc/cert'\''\n use_tls: true\n type: dcae.nodes.ContainerizedServiceComponent\n\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2020 AT&T\n# Copyright (c) 2018-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# ============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\ninputs:\n pnfUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf\"\n baseUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12\"\n aaiEnrichmentHost:\n type: string\n default: \"aai.onap.svc.cluster.local\"\n aaiEnrichmentPort:\n type: integer\n default: 8443\n aaiEnrichmentUser:\n type: string\n description: aai user name\n default: \"AAI\"\n aaiEnrichmentPasswd:\n type: string\n description: aai password\n default: \"AAI\"\n dmaap_pnfReady_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY\"\n dmaap_vesPnfRegOutput_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT\"\n dmaap_pnfUpdate_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE\"\n dmaap_user:\n type: string\n description: dmap user name\n default: \"admin\"\n dmaap_passwd:\n type: string\n description: dmap password\n default: \"admin\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.5.4\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n description: port on Kubernetes host where PRH API will be exposed\n default: 0\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 8100\n service_component_type:\n type: string\n default: \"dcae-prh\"\n service_id:\n type: string\n default: \"dcae-prh\"\n secureEnableCert:\n type: boolean\n description: enable certificate base connection with AAI and DMaap\n default: false\n service_component_name_override:\n type: string\n default: \"dcae-prh\"\nnode_templates:\n prh:\n properties:\n application_config:\n dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapConsumerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapConsumerConfiguration.consumerId: \"c12\"\n dmaap.dmaapConsumerConfiguration.consumerGroup: \"OpenDCAE-c12\"\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapProducerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: \"application/json\"\n aai.aaiClientConfiguration.pnfUrl: { get_input: pnfUrl }\n aai.aaiClientConfiguration.baseUrl: { get_input: baseUrl }\n aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }\n aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }\n aai.aaiClientConfiguration.aaiProtocol: \"https\"\n aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }\n aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }\n aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true\n aai.aaiClientConfiguration.aaiBasePath: \"/aai/v12\"\n aai.aaiClientConfiguration.aaiPnfPath: \"/network/pnfs/pnf\"\n aai.aaiClientConfiguration.aaiServiceInstancePath: \"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}\"\n aai.aaiClientConfiguration.aaiHeaders:\n X-FromAppId: \"prh\"\n X-TransactionId: \"9999\"\n Accept: \"application/json\"\n Real-Time: \"true\"\n Authorization: \"Basic QUFJOkFBSQ==\"\n security.trustStorePath: \"/opt/app/prh/etc/cert/trust.jks\"\n security.trustStorePasswordPath: \"/opt/app/prh/etc/cert/trust.pass\"\n security.keyStorePath: \"/opt/app/prh/etc/cert/cert.jks\"\n security.keyStorePasswordPath: \"/opt/app/prh/etc/cert/jks.pass\"\n security.enableAaiCertAuth: { get_input: secureEnableCert }\n security.enableDmaapCertAuth: { get_input: secureEnableCert }\n streams_publishes:\n pnf-update:\n type: \"message_router\"\n dmaap_info:\n topic_url: {get_input: dmaap_pnfUpdate_url }\n pnf-ready:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_pnfReady_url }\n streams_subscribes:\n ves-reg-output:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_vesPnfRegOutput_url }\n docker_config:\n healthcheck:\n endpoint: /heartbeat\n interval: 15s\n timeout: 1s\n type: http\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image:\n { 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: \"/opt/app/prh/logs\"\n tls_info:\n cert_directory: '\''/opt/app/prh/etc/cert'\''\n use_tls: true\n type: dcae.nodes.ContainerizedServiceComponent\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-prh",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2020 AT&T\n# Copyright (c) 2018-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# ============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\ninputs:\n pnfUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf\"\n baseUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12\"\n aaiEnrichmentHost:\n type: string\n default: \"aai.onap.svc.cluster.local\"\n aaiEnrichmentPort:\n type: integer\n default: 8443\n aaiEnrichmentUser:\n type: string\n description: aai user name\n default: \"AAI\"\n aaiEnrichmentPasswd:\n type: string\n description: aai password\n default: \"AAI\"\n dmaap_pnfReady_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY\"\n dmaap_vesPnfRegOutput_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT\"\n dmaap_pnfUpdate_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE\"\n dmaap_user:\n type: string\n description: dmap user name\n default: \"admin\"\n dmaap_passwd:\n type: string\n description: dmap password\n default: \"admin\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.5.4\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n description: port on Kubernetes host where PRH API will be exposed\n default: 0\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 8100\n service_component_type:\n type: string\n default: \"dcae-prh\"\n service_id:\n type: string\n default: \"dcae-prh\"\n secureEnableCert:\n type: boolean\n description: enable certificate base connection with AAI and DMaap\n default: false\n service_component_name_override:\n type: string\n default: \"dcae-prh\"\nnode_templates:\n prh:\n properties:\n application_config:\n dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapConsumerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapConsumerConfiguration.consumerId: \"c12\"\n dmaap.dmaapConsumerConfiguration.consumerGroup: \"OpenDCAE-c12\"\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapProducerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: \"application/json\"\n aai.aaiClientConfiguration.pnfUrl: { get_input: pnfUrl }\n aai.aaiClientConfiguration.baseUrl: { get_input: baseUrl }\n aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }\n aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }\n aai.aaiClientConfiguration.aaiProtocol: \"https\"\n aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }\n aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }\n aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true\n aai.aaiClientConfiguration.aaiBasePath: \"/aai/v12\"\n aai.aaiClientConfiguration.aaiPnfPath: \"/network/pnfs/pnf\"\n aai.aaiClientConfiguration.aaiServiceInstancePath: \"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}\"\n aai.aaiClientConfiguration.aaiHeaders:\n X-FromAppId: \"prh\"\n X-TransactionId: \"9999\"\n Accept: \"application/json\"\n Real-Time: \"true\"\n Authorization: \"Basic QUFJOkFBSQ==\"\n security.trustStorePath: \"/opt/app/prh/etc/cert/trust.jks\"\n security.trustStorePasswordPath: \"/opt/app/prh/etc/cert/trust.pass\"\n security.keyStorePath: \"/opt/app/prh/etc/cert/cert.jks\"\n security.keyStorePasswordPath: \"/opt/app/prh/etc/cert/jks.pass\"\n security.enableAaiCertAuth: { get_input: secureEnableCert }\n security.enableDmaapCertAuth: { get_input: secureEnableCert }\n streams_publishes:\n pnf-update:\n type: \"message_router\"\n dmaap_info:\n topic_url: {get_input: dmaap_pnfUpdate_url }\n pnf-ready:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_pnfReady_url }\n streams_subscribes:\n ves-reg-output:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_vesPnfRegOutput_url }\n docker_config:\n healthcheck:\n endpoint: /heartbeat\n interval: 15s\n timeout: 1s\n type: http\n ports:\n - { concat: [ { get_input: container_port }, '\'':'\'', { get_input: host_port } ] }\n image:\n { 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: \"/opt/app/prh/logs\"\n tls_info:\n cert_directory: '\''/opt/app/prh/etc/cert'\''\n use_tls: true\n type: dcae.nodes.ContainerizedServiceComponent\n\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
s_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","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"9511b1c9-984b-40d4-a421-aa3dda3bcac4","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/9511b1c9-984b-40d4-a421-aa3dda3bcac4"},"created":1622085000354,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-pm-mapper","typeVersion":2105270310,"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: <>\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","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"eb250aad-1d63-4374-970d-a26ab1bd52bf","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/eb250aad-1d63-4374-970d-a26ab1bd52bf"},"created":1622085000527,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-pmsh","typeVersion":2105270310,"blueprintTemplate":"#\n# ============LICENSE_START=======================================================\n# Copyright (C) 2020 Nordix Foundation.\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:pgaas?version=1.3.0\ninputs:\n tag_version:\n type: string\n description: Docker image to be used\n default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.1.2'\n replicas:\n type: integer\n description: Number of instances\n default: 1\n operational_policy_name:\n type: string\n default: 'pmsh-operational-policy'\n control_loop_name:\n type: string\n default: 'pmsh-control-loop'\n pmsh_publish_topic_name:\n type: string\n default: 'unauthenticated.DCAE_CL_OUTPUT'\n policy_feedback_topic_name:\n type: string\n default: 'unauthenticated.PMSH_CL_INPUT'\n aai_notification_topic_name:\n type: string\n default: 'AAI-EVENT'\n publisher_client_role:\n type: string\n description: Client role to request secure access to topic\n default: 'org.onap.dcae.pmPublisher'\n subscriber_client_role:\n type: string\n description: Client role to request secure access to topic\n default: 'org.onap.dcae.pmSubscriber'\n dcae_location:\n type: string\n description: DCAE location for the subscriber, used to set up routing\n default: 'san-francisco'\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 pgaas_cluster_name:\n type: string\n default: 'dcae-pg-primary.onap'\n enable_tls:\n type: boolean\n default: true\n protocol:\n type: string\n description: PMSH protocol. If enable_tls is false, set to http\n default: 'https'\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: 'pmsh'\n pmsh:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n create:\n inputs:\n ports:\n - '8443:0'\n envs:\n PMSH_PG_URL:\n { get_attribute: [ pgaasvm, admin, host ] }\n PMSH_PG_PASSWORD:\n { get_attribute: [ pgaasvm, admin, password ] }\n PMSH_PG_USERNAME:\n { get_attribute: [ pgaasvm, admin, user ] }\n PMSH_DB_NAME:\n { get_attribute: [ pgaasvm, admin, database ] }\n\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n\n properties:\n service_component_type: 'dcae-pmsh'\n service_component_name_override: 'dcae-pmsh'\n application_config:\n enable_tls: { get_input: enable_tls }\n aaf_identity: 'dcae@dcae.onap.org'\n aaf_password: 'demo123456!'\n operational_policy_name: { get_input: operational_policy_name }\n control_loop_name: { get_input: control_loop_name }\n cert_path: '/opt/app/pmsh/etc/certs/cert.pem'\n key_path: '/opt/app/pmsh/etc/certs/key.pem'\n ca_cert_path: '/opt/app/pmsh/etc/certs/cacert.pem'\n streams_publishes:\n policy_pm_publisher:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: pmsh_publish_topic_name }]}\n streams_subscribes:\n policy_pm_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: policy_feedback_topic_name }]}\n aai_subscriber:\n type: message_router\n dmaap_info:\n topic_url: {concat: [\"https://message-router:3905/events/\", { get_input: aai_notification_topic_name }]}\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: { get_input: protocol }\n image: { get_input: tag_version }\n replicas: { get_input: replicas }\n log_info:\n log_directory: '/var/log/ONAP/dcaegen2/services/pmsh'\n tls_info:\n cert_directory: '/opt/app/pmsh/etc/certs'\n use_tls: { get_input: enable_tls }\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"90d0da44-1a19-43db-a068-9fa84e5d5d70","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/90d0da44-1a19-43db-a068-9fa84e5d5d70"},"created":1622085000698,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-prh","typeVersion":2105270310,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2020 AT&T\n# Copyright (c) 2018-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# ============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\ninputs:\n pnfUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf\"\n baseUrl:\n type: string\n default: \"https://aai.onap.svc.cluster.local:8443/aai/v12\"\n aaiEnrichmentHost:\n type: string\n default: \"aai.onap.svc.cluster.local\"\n aaiEnrichmentPort:\n type: integer\n default: 8443\n aaiEnrichmentUser:\n type: string\n description: aai user name\n default: \"AAI\"\n aaiEnrichmentPasswd:\n type: string\n description: aai password\n default: \"AAI\"\n dmaap_pnfReady_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY\"\n dmaap_vesPnfRegOutput_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT\"\n dmaap_pnfUpdate_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE\"\n dmaap_user:\n type: string\n description: dmap user name\n default: \"admin\"\n dmaap_passwd:\n type: string\n description: dmap password\n default: \"admin\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.serv
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 14815 100 7543 100 7272 51593 49740 --:--:-- --:--:-- --:--:-- 51312
100 14815 100 7543 100 7272 51545 49693 --:--:-- --:--:-- --:--:-- 51312
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-restconf.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-restconf.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-restconf.yaml .yaml
++ flatten /blueprints/k8s-restconf.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2019 Huawei. 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 deploys/manages the RestConf Collector module as a Docker container\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\ninputs:\n dmaap_host:\n type: string\n default: \"message-router.onap.svc.cluster.local\"\n dmaap_port:\n type: string\n default: \"3904\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.2\"\n consul_host:\n type: string\n default: \"consul-server.onap.svc.cluster.local\"\n consul_port:\n type: string\n default: \"8500\"\n cbs_host:\n type: string\n default: \"config-binding-service.dcae.svc.cluster.local\"\n cbs_port:\n type: string\n default: \"10000\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30416\"\n notification_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_RCC_OUTPUT\"\n\nnode_templates:\n rcc_k8s:\n type: dcae.nodes.ContainerizedPlatformComponent\n properties:\n name: '\''dcaegen2-collectors-rcc'\''\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory: \"/opt/app/RCCollector/logs\"\n application_config:\n collector.rcc.appDescription: DCAE RestConf Collector Application\n collector.rcc.appName: \"dcae-rcc\"\n collector.rcc.dmaap.streamid: \"notification=device-registration\"\n collector.rcc.inputQueue.maxPending: \"8096\"\n tomcat.maxthreads: \"200\"\n collector.rcc.service.port: \"8080\"\n collector.rcc.service.secure.port: \"8687\"\n collector.rcc.keystore.file.location: \"/opt/app/restconfcollector/etc/keystore\"\n collector.rcc.keystore.passwordfile: \"/opt/app/restconfcollector/etc/rcc_passwordfile\"\n collector.rcc.keystore.alias: \"dynamically generated\"\n collector.rcc.truststore.file.location: \"/opt/app/restconfcollector/etc/truststore.onap.client.jks\"\n collector.rcc.truststore.passwordfile: \"/opt/app/restconfcollector/etc/trustpasswordfile\"\n collector.keystore.file.location: \"/opt/app/restconfcollector/etc/sdnc.p12\"\n collector.keystore.passwordfile: \"/opt/app/restconfcollector/etc/passwordfile\"\n collector.header.authflag: \"0\"\n collector.header.authlist: \"sample1,c2FtcGxlMQ==\"\n collector.rcc.service.secure.clientauth: \"0\"\n streams_publishes:\n device-registration:\n dmaap_info:\n topic_url:\n get_input: notification_publish_url\n type: message_router\n rcc_policy: '\''[{\"controller_name\":\"AccessM&C\",\"controller_restapiUrl\":\"172.30.0.55:26335\",\"controller_restapiUser\":\"access\",\"controller_restapiPassword\":\"Huawei@123\",\"controller_accessTokenUrl\":\"/rest/plat/smapp/v1/oauth/token\",\"controller_accessTokenFile\":\"./etc/access-token.json\",\"controller_accessTokenMethod\":\"put\",\"controller_subsMethod\":\"post\",\"controller_subscriptionUrl\":\"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription\",\"controller_disableSsl\":\"true\",\"event_details\":[{\"event_name\":\"ONT_registration\",\"event_description\":\"ONTregistartionevent\",\"event_sseventUrlEmbed\":\"true\",\"event_sseventsField\":\"output.url\",\"event_sseventsUrl\":\"null\",\"event_subscriptionTemplate\":\"./etc/ont_registartion_subscription_template.json\",\"event_unSubscriptionTemplate\":\"./etc/ont_registartion_unsubscription_template.json\",\"event_ruleId\":\"12345678\",\"modifyData\": \"true\",\"modifyMethod\": \"modifyOntEvent\",\"userData\": \"remote_id=AC9.0234.0337;svlan=100;cvlan=10;\"}]}]'\''\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n DMAAPHOST:\n { get_input: dmaap_host }\n DMAAPPORT: \"3904\"\n DMAAPPUBTOPIC: \"unauthenticated.DCAE_RCC_OUTPUT\"\n CONSUL_HOST:\n { get_input: consul_host }\n CONSUL_PORT: \"8500\"\n CBS_HOST:\n { get_input: cbs_host }\n CBS_PORT: \"10000\"\n CONFIG_BINDING_SERVICE: \"config_binding_service\"\n ports:\n - concat: [\"8080:\", { get_input: external_port }]\n\n\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2019 Huawei. 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 deploys/manages the RestConf Collector module as a Docker container\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\ninputs:\n dmaap_host:\n type: string\n default: \"message-router.onap.svc.cluster.local\"\n dmaap_port:\n type: string\n default: \"3904\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.2\"\n consul_host:\n type: string\n default: \"consul-server.onap.svc.cluster.local\"\n consul_port:\n type: string\n default: \"8500\"\n cbs_host:\n type: string\n default: \"config-binding-service.dcae.svc.cluster.local\"\n cbs_port:\n type: string\n default: \"10000\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30416\"\n notification_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_RCC_OUTPUT\"\n\nnode_templates:\n rcc_k8s:\n type: dcae.nodes.ContainerizedPlatformComponent\n properties:\n name: '\''dcaegen2-collectors-rcc'\''\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory: \"/opt/app/RCCollector/logs\"\n application_config:\n collector.rcc.appDescription: DCAE RestConf Collector Application\n collector.rcc.appName: \"dcae-rcc\"\n collector.rcc.dmaap.streamid: \"notification=device-registration\"\n collector.rcc.inputQueue.maxPending: \"8096\"\n tomcat.maxthreads: \"200\"\n collector.rcc.service.port: \"8080\"\n collector.rcc.service.secure.port: \"8687\"\n collector.rcc.keystore.file.location: \"/opt/app/restconfcollector/etc/keystore\"\n collector.rcc.keystore.passwordfile: \"/opt/app/restconfcollector/etc/rcc_passwordfile\"\n collector.rcc.keystore.alias: \"dynamically generated\"\n collector.rcc.truststore.file.location: \"/opt/app/restconfcollector/etc/truststore.onap.client.jks\"\n collector.rcc.truststore.passwordfile: \"/opt/app/restconfcollector/etc/trustpasswordfile\"\n collector.keystore.file.location: \"/opt/app/restconfcollector/etc/sdnc.p12\"\n collector.keystore.passwordfile: \"/opt/app/restconfcollector/etc/passwordfile\"\n collector.header.authflag: \"0\"\n collector.header.authlist: \"sample1,c2FtcGxlMQ==\"\n collector.rcc.service.secure.clientauth: \"0\"\n streams_publishes:\n device-registration:\n dmaap_info:\n topic_url:\n get_input: notification_publish_url\n type: message_router\n rcc_policy: '\''[{\"controller_name\":\"AccessM&C\",\"controller_restapiUrl\":\"172.30.0.55:26335\",\"controller_restapiUser\":\"access\",\"controller_restapiPassword\":\"Huawei@123\",\"controller_accessTokenUrl\":\"/rest/plat/smapp/v1/oauth/token\",\"controller_accessTokenFile\":\"./etc/access-token.json\",\"controller_accessTokenMethod\":\"put\",\"controller_subsMethod\":\"post\",\"controller_subscriptionUrl\":\"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription\",\"controller_disableSsl\":\"true\",\"event_details\":[{\"event_name\":\"ONT_registration\",\"event_description\":\"ONTregistartionevent\",\"event_sseventUrlEmbed\":\"true\",\"event_sseventsField\":\"output.url\",\"event_sseventsUrl\":\"null\",\"event_subscriptionTemplate\":\"./etc/ont_registartion_subscription_template.json\",\"event_unSubscriptionTemplate\":\"./etc/ont_registartion_unsubscription_template.json\",\"event_ruleId\":\"12345678\",\"modifyData\": \"true\",\"modifyMethod\": \"modifyOntEvent\",\"userData\": \"remote_id=AC9.0234.0337;svlan=100;cvlan=10;\"}]}]'\''\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n DMAAPHOST:\n { get_input: dmaap_host }\n DMAAPPORT: \"3904\"\n DMAAPPUBTOPIC: \"unauthenticated.DCAE_RCC_OUTPUT\"\n CONSUL_HOST:\n { get_input: consul_host }\n CONSUL_PORT: \"8500\"\n CBS_HOST:\n { get_input: cbs_host }\n CBS_PORT: \"10000\"\n CONFIG_BINDING_SERVICE: \"config_binding_service\"\n ports:\n - concat: [\"8080:\", { get_input: external_port }]\n\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-restconf",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2019 Huawei. 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 deploys/manages the RestConf Collector module as a Docker container\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\ninputs:\n dmaap_host:\n type: string\n default: \"message-router.onap.svc.cluster.local\"\n dmaap_port:\n type: string\n default: \"3904\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.2\"\n consul_host:\n type: string\n default: \"consul-server.onap.svc.cluster.local\"\n consul_port:\n type: string\n default: \"8500\"\n cbs_host:\n type: string\n default: \"config-binding-service.dcae.svc.cluster.local\"\n cbs_port:\n type: string\n default: \"10000\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30416\"\n notification_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_RCC_OUTPUT\"\n\nnode_templates:\n rcc_k8s:\n type: dcae.nodes.ContainerizedPlatformComponent\n properties:\n name: '\''dcaegen2-collectors-rcc'\''\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory: \"/opt/app/RCCollector/logs\"\n application_config:\n collector.rcc.appDescription: DCAE RestConf Collector Application\n collector.rcc.appName: \"dcae-rcc\"\n collector.rcc.dmaap.streamid: \"notification=device-registration\"\n collector.rcc.inputQueue.maxPending: \"8096\"\n tomcat.maxthreads: \"200\"\n collector.rcc.service.port: \"8080\"\n collector.rcc.service.secure.port: \"8687\"\n collector.rcc.keystore.file.location: \"/opt/app/restconfcollector/etc/keystore\"\n collector.rcc.keystore.passwordfile: \"/opt/app/restconfcollector/etc/rcc_passwordfile\"\n collector.rcc.keystore.alias: \"dynamically generated\"\n collector.rcc.truststore.file.location: \"/opt/app/restconfcollector/etc/truststore.onap.client.jks\"\n collector.rcc.truststore.passwordfile: \"/opt/app/restconfcollector/etc/trustpasswordfile\"\n collector.keystore.file.location: \"/opt/app/restconfcollector/etc/sdnc.p12\"\n collector.keystore.passwordfile: \"/opt/app/restconfcollector/etc/passwordfile\"\n collector.header.authflag: \"0\"\n collector.header.authlist: \"sample1,c2FtcGxlMQ==\"\n collector.rcc.service.secure.clientauth: \"0\"\n streams_publishes:\n device-registration:\n dmaap_info:\n topic_url:\n get_input: notification_publish_url\n type: message_router\n rcc_policy: '\''[{\"controller_name\":\"AccessM&C\",\"controller_restapiUrl\":\"172.30.0.55:26335\",\"controller_restapiUser\":\"access\",\"controller_restapiPassword\":\"Huawei@123\",\"controller_accessTokenUrl\":\"/rest/plat/smapp/v1/oauth/token\",\"controller_accessTokenFile\":\"./etc/access-token.json\",\"controller_accessTokenMethod\":\"put\",\"controller_subsMethod\":\"post\",\"controller_subscriptionUrl\":\"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription\",\"controller_disableSsl\":\"true\",\"event_details\":[{\"event_name\":\"ONT_registration\",\"event_description\":\"ONTregistartionevent\",\"event_sseventUrlEmbed\":\"true\",\"event_sseventsField\":\"output.url\",\"event_sseventsUrl\":\"null\",\"event_subscriptionTemplate\":\"./etc/ont_registartion_subscription_template.json\",\"event_unSubscriptionTemplate\":\"./etc/ont_registartion_unsubscription_template.json\",\"event_ruleId\":\"12345678\",\"modifyData\": \"true\",\"modifyMethod\": \"modifyOntEvent\",\"userData\": \"remote_id=AC9.0234.0337;svlan=100;cvlan=10;\"}]}]'\''\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n DMAAPHOST:\n { get_input: dmaap_host }\n DMAAPPORT: \"3904\"\n DMAAPPUBTOPIC: \"unauthenticated.DCAE_RCC_OUTPUT\"\n CONSUL_HOST:\n { get_input: consul_host }\n CONSUL_PORT: \"8500\"\n CBS_HOST:\n { get_input: cbs_host }\n CBS_PORT: \"10000\"\n CONFIG_BINDING_SERVICE: \"config_binding_service\"\n ports:\n - concat: [\"8080:\", { get_input: external_port }]\n\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 12433 100 6352 100 6081 39729 38034 --:--:-- --:--:-- --:--:-- 39949
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-slice-analysis-ms.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-slice-analysis-ms.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-slice-analysis-ms.yaml .yaml
++ flatten /blueprints/k8s-slice-analysis-ms.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT=' #\n #============LICENSE_START=======================================================\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\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\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.1\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sliceanalysisms\"\n aaf_username:\n type: string\n description: aaf username\n default: \"dcae@dcae.onap.org\"\n aaf_password:\n type: string\n description: aaf password\n default: \"demo123456!\"\n dmaap_polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n dmaap_polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sliceanalysisms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sliceanalysisms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://config-db:8080\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/slice-analysis-ms\"\n performance_management_topic_url:\n type: string\n description: performance measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS\"\n intelligent_slicing_topic_url:\n type: string\n description: aai event topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n samples:\n type: integer\n description: number of samples to be considered for processing\n default: 3\n minimumPercentageChange:\n type: integer\n description: minimum change above which control loop should be triggered\n default: 5\n initialDelaySeconds:\n type: integer\n description: delay for the consumer thread\n default: 120000\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sliceanalysisms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sliceanalysisms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-slice-analysis-ms'\''\n service_id: '\''sliceanalysisms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n tls_info:\n cert_directory: '\''/opt/app/sliceanalysisms/etc/cert/'\''\n use_tls: true\n application_config:\n aafUsername: { get_input: aaf_username }\n aafPassword: { get_input: aaf_password }\n trust_store_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.pass'\''\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n intelligent_slicing_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: intelligent_slicing_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sliceanalysisms.pollingInterval: { get_input: dmaap_polling_interval}\n sliceanalysisms.pollingTimeout: { get_input: dmaap_polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sliceanalysisms.dmaap.server:\n - { get_input: dmaap }\n sliceanalysisms.cg: { get_input: cg }\n sliceanalysisms.cid: { get_input: cid }\n sliceanalysisms.configDb.service: { get_input: config_db }\n sliceanalysisms.samples: { get_input: samples }\n sliceanalysisms.minPercentageChange: { get_input: minimumPercentageChange }\n sliceanalysisms.initialDelaySeconds: { get_input: initialDelaySeconds }\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n'
++ echo ' #\n #============LICENSE_START=======================================================\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\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\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.1\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sliceanalysisms\"\n aaf_username:\n type: string\n description: aaf username\n default: \"dcae@dcae.onap.org\"\n aaf_password:\n type: string\n description: aaf password\n default: \"demo123456!\"\n dmaap_polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n dmaap_polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sliceanalysisms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sliceanalysisms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://config-db:8080\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/slice-analysis-ms\"\n performance_management_topic_url:\n type: string\n description: performance measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS\"\n intelligent_slicing_topic_url:\n type: string\n description: aai event topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n samples:\n type: integer\n description: number of samples to be considered for processing\n default: 3\n minimumPercentageChange:\n type: integer\n description: minimum change above which control loop should be triggered\n default: 5\n initialDelaySeconds:\n type: integer\n description: delay for the consumer thread\n default: 120000\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sliceanalysisms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sliceanalysisms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-slice-analysis-ms'\''\n service_id: '\''sliceanalysisms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n tls_info:\n cert_directory: '\''/opt/app/sliceanalysisms/etc/cert/'\''\n use_tls: true\n application_config:\n aafUsername: { get_input: aaf_username }\n aafPassword: { get_input: aaf_password }\n trust_store_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.pass'\''\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n intelligent_slicing_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: intelligent_slicing_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sliceanalysisms.pollingInterval: { get_input: dmaap_polling_interval}\n sliceanalysisms.pollingTimeout: { get_input: dmaap_polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sliceanalysisms.dmaap.server:\n - { get_input: dmaap }\n sliceanalysisms.cg: { get_input: cg }\n sliceanalysisms.cid: { get_input: cid }\n sliceanalysisms.configDb.service: { get_input: config_db }\n sliceanalysisms.samples: { get_input: samples }\n sliceanalysisms.minPercentageChange: { get_input: minimumPercentageChange }\n sliceanalysisms.initialDelaySeconds: { get_input: initialDelaySeconds }\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-slice-analysis-ms",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": " #\n #============LICENSE_START=======================================================\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\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\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.1\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sliceanalysisms\"\n aaf_username:\n type: string\n description: aaf username\n default: \"dcae@dcae.onap.org\"\n aaf_password:\n type: string\n description: aaf password\n default: \"demo123456!\"\n dmaap_polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n dmaap_polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sliceanalysisms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sliceanalysisms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://config-db:8080\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/slice-analysis-ms\"\n performance_management_topic_url:\n type: string\n description: performance measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS\"\n intelligent_slicing_topic_url:\n type: string\n description: aai event topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n samples:\n type: integer\n description: number of samples to be considered for processing\n default: 3\n minimumPercentageChange:\n type: integer\n description: minimum change above which control loop should be triggered\n default: 5\n initialDelaySeconds:\n type: integer\n description: delay for the consumer thread\n default: 120000\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sliceanalysisms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sliceanalysisms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-slice-analysis-ms'\''\n service_id: '\''sliceanalysisms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n tls_info:\n cert_directory: '\''/opt/app/sliceanalysisms/etc/cert/'\''\n use_tls: true\n application_config:\n aafUsername: { get_input: aaf_username }\n aafPassword: { get_input: aaf_password }\n trust_store_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.jks'\''\n trust_store_pass_path: '\''/opt/app/sliceanalysisms/etc/cert/trust.pass'\''\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n intelligent_slicing_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: intelligent_slicing_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sliceanalysisms.pollingInterval: { get_input: dmaap_polling_interval}\n sliceanalysisms.pollingTimeout: { get_input: dmaap_polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sliceanalysisms.dmaap.server:\n - { get_input: dmaap }\n sliceanalysisms.cg: { get_input: cg }\n sliceanalysisms.cid: { get_input: cid }\n sliceanalysisms.configDb.service: { get_input: config_db }\n sliceanalysisms.samples: { get_input: samples }\n sliceanalysisms.minPercentageChange: { get_input: minimumPercentageChange }\n sliceanalysisms.initialDelaySeconds: { get_input: initialDelaySeconds }\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
ices.prh.prh-app-server:1.5.4\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n host_port:\n description: port on Kubernetes host where PRH API will be exposed\n default: 0\n container_port:\n type: integer\n description: Network port that the platform service exposes in the container\n default: 8100\n service_component_type:\n type: string\n default: \"dcae-prh\"\n service_id:\n type: string\n default: \"dcae-prh\"\n secureEnableCert:\n type: boolean\n description: enable certificate base connection with AAI and DMaap\n default: false\n service_component_name_override:\n type: string\n default: \"dcae-prh\"\nnode_templates:\n prh:\n properties:\n application_config:\n dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapConsumerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapConsumerConfiguration.consumerId: \"c12\"\n dmaap.dmaapConsumerConfiguration.consumerGroup: \"OpenDCAE-c12\"\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapProducerConfiguration.dmaapContentType: \"application/json\"\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserName: { get_input: dmaap_user }\n dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }\n dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: \"application/json\"\n aai.aaiClientConfiguration.pnfUrl: { get_input: pnfUrl }\n aai.aaiClientConfiguration.baseUrl: { get_input: baseUrl }\n aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }\n aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }\n aai.aaiClientConfiguration.aaiProtocol: \"https\"\n aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }\n aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }\n aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true\n aai.aaiClientConfiguration.aaiBasePath: \"/aai/v12\"\n aai.aaiClientConfiguration.aaiPnfPath: \"/network/pnfs/pnf\"\n aai.aaiClientConfiguration.aaiServiceInstancePath: \"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}\"\n aai.aaiClientConfiguration.aaiHeaders:\n X-FromAppId: \"prh\"\n X-TransactionId: \"9999\"\n Accept: \"application/json\"\n Real-Time: \"true\"\n Authorization: \"Basic QUFJOkFBSQ==\"\n security.trustStorePath: \"/opt/app/prh/etc/cert/trust.jks\"\n security.trustStorePasswordPath: \"/opt/app/prh/etc/cert/trust.pass\"\n security.keyStorePath: \"/opt/app/prh/etc/cert/cert.jks\"\n security.keyStorePasswordPath: \"/opt/app/prh/etc/cert/jks.pass\"\n security.enableAaiCertAuth: { get_input: secureEnableCert }\n security.enableDmaapCertAuth: { get_input: secureEnableCert }\n streams_publishes:\n pnf-update:\n type: \"message_router\"\n dmaap_info:\n topic_url: {get_input: dmaap_pnfUpdate_url }\n pnf-ready:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_pnfReady_url }\n streams_subscribes:\n ves-reg-output:\n type: \"message_router\"\n dmaap_info:\n topic_url: { get_input: dmaap_vesPnfRegOutput_url }\n docker_config:\n healthcheck:\n endpoint: /heartbeat\n interval: 15s\n timeout: 1s\n type: http\n ports:\n - { concat: [ { get_input: container_port }, ':', { get_input: host_port } ] }\n image:\n { 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: \"/opt/app/prh/logs\"\n tls_info:\n cert_directory: '/opt/app/prh/etc/cert'\n use_tls: true\n type: dcae.nodes.ContainerizedServiceComponent\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"7dd7b0c6-37fb-45ff-a50b-f4ba7e8cded5","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/7dd7b0c6-37fb-45ff-a50b-f4ba7e8cded5"},"created":1622085000860,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-restconf","typeVersion":2105270310,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.\n# Copyright (c) 2019 Huawei. 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 deploys/manages the RestConf Collector module as a Docker container\n\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=2.0.0\ninputs:\n dmaap_host:\n type: string\n default: \"message-router.onap.svc.cluster.local\"\n dmaap_port:\n type: string\n default: \"3904\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.2\"\n consul_host:\n type: string\n default: \"consul-server.onap.svc.cluster.local\"\n consul_port:\n type: string\n default: \"8500\"\n cbs_host:\n type: string\n default: \"config-binding-service.dcae.svc.cluster.local\"\n cbs_port:\n type: string\n default: \"10000\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30416\"\n notification_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_RCC_OUTPUT\"\n\nnode_templates:\n rcc_k8s:\n type: dcae.nodes.ContainerizedPlatformComponent\n properties:\n name: 'dcaegen2-collectors-rcc'\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory: \"/opt/app/RCCollector/logs\"\n application_config:\n collector.rcc.appDescription: DCAE RestConf Collector Application\n collector.rcc.appName: \"dcae-rcc\"\n collector.rcc.dmaap.streamid: \"notification=device-registration\"\n collector.rcc.inputQueue.maxPending: \"8096\"\n tomcat.maxthreads: \"200\"\n collector.rcc.service.port: \"8080\"\n collector.rcc.service.secure.port: \"8687\"\n collector.rcc.keystore.file.location: \"/opt/app/restconfcollector/etc/keystore\"\n collector.rcc.keystore.passwordfile: \"/opt/app/restconfcollector/etc/rcc_passwordfile\"\n collector.rcc.keystore.alias: \"dynamically generated\"\n collector.rcc.truststore.file.location: \"/opt/app/restconfcollector/etc/truststore.onap.client.jks\"\n collector.rcc.truststore.passwordfile: \"/opt/app/restconfcollector/etc/trustpasswordfile\"\n collector.keystore.file.location: \"/opt/app/restconfcollector/etc/sdnc.p12\"\n collector.keystore.passwordfile: \"/opt/app/restconfcollector/etc/passwordfile\"\n collector.header.authflag: \"0\"\n collector.header.authlist: \"sample1,c2FtcGxlMQ==\"\n collector.rcc.service.secure.clientauth: \"0\"\n streams_publishes:\n device-registration:\n dmaap_info:\n topic_url:\n get_input: notification_publish_url\n type: message_router\n rcc_policy: '[{\"controller_name\":\"AccessM&C\",\"controller_restapiUrl\":\"172.30.0.55:26335\",\"controller_restapiUser\":\"access\",\"controller_restapiPassword\":\"Huawei@123\",\"controller_accessTokenUrl\":\"/rest/plat/smapp/v1/oauth/token\",\"controller_accessTokenFile\":\"./etc/access-token.json\",\"controller_accessTokenMethod\":\"put\",\"controller_subsMethod\":\"post\",\"controller_subscriptionUrl\":\"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription\",\"controller_disableSsl\":\"true\",\"event_details\":[{\"event_name\":\"ONT_registration\",\"event_description\":\"ONTregistartionevent\",\"event_sseventUrlEmbed\":\"true\",\"event_sseventsField\":\"output.url\",\"event_sseventsUrl\":\"null\",\"event_subscriptionTemplate\":\"./etc/ont_registartion_subscription_template.json\",\"event_unSubscriptionTemplate\":\"./etc/ont_registartion_unsubscription_template.json\",\"event_ruleId\":\"12345678\",\"modifyData\": \"true\",\"modifyMethod\": \"modifyOntEvent\",\"userData\": \"remote_id=AC9.0234.0337;svlan=100;cvlan=10;\"}]}]'\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n DMAAPHOST:\n { get_input: dmaap_host }\n DMAAPPORT: \"3904\"\n DMAAPPUBTOPIC: \"unauthenticated.DCAE_RCC_OUTPUT\"\n CONSUL_HOST:\n { get_input: consul_host }\n CONSUL_PORT: \"8500\"\n CBS_HOST:\n { get_input: cbs_host }\n CBS_PORT: \"10000\"\n CONFIG_BINDING_SERVICE: \"config_binding_service\"\n ports:\n - concat: [\"8080:\", { get_input: external_port }]\n\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"cb4d59ec-830e-4fdb-aff7-f8b706788ad1","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/cb4d59ec-830e-4fdb-aff7-f8b706788ad1"},"created":1622085001033,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-slice-analysis-ms","typeVersion":2105270310,"blueprintTemplate":" #\n #============LICENSE_START=======================================================\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\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\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.1\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sliceanalysisms\"\n aaf_username:\n type: string\n description: aaf username\n default: \"dcae@dcae.onap.org\"\n aaf_password:\n type: string\n description: aaf password\n default: \"demo123456!\"\n dmaap_polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n dmaap_polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sliceanalysisms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sliceanalysisms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://config-db:8080\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/slice-analysis-ms\"\n performance_management_topic_url:\n type: string\n description: performance measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS\"\n intelligent_slicing_topic_url:\n type: string\n description: aai event topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.ML_RESPONSE_TOPIC\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n samples:\n type: integer\n description: number of samples to be considered for processing\n default: 3\n minimumPercentageChange:\n type: integer\n description: minimum change above which control loop should be triggered\n default: 5\n initialDelaySeconds:\n type: integer\n description: delay for the consumer thread\n default: 120000\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sliceanalysisms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sliceanalysisms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: 'dcae-slice-analysis-ms'\n service_id: 'sliceanalysisms'\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 15739 100 8005 100 7734 48902 47246 --:--:-- --:--:-- --:--:-- 49110
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-snmptrap.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-snmptrap.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-snmptrap.yaml .yaml
++ flatten /blueprints/k8s-snmptrap.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 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=2.0.0\ninputs:\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.snmptrap:2.0.3\"\n cache:\n type: string\n default:\n \"dns_cache_ttl_seconds: 60\"\n files:\n type: string\n default:\n \"arriving_traps_log: snmptrapd_arriving_traps.log\n data_dir: data\n eelf_audit: audit.log\n eelf_base_dir: /opt/app/snmptrap/logs\n eelf_debug: debug.log\n eelf_error: error.log\n eelf_metrics: metrics.log\n log_dir: logs\n minimum_severity_to_log: 2\n perm_status_file: snmptrapd_status.log\n pid_dir: tmp\n roll_frequency: day\n runtime_base_dir: /opt/app/snmptrap\n snmptrapd_diag: snmptrapd_prog_diag.log\n traps_stats_log: snmptrapd_stats.csv\"\n protocols:\n type: string\n default:\n \"ipv4_interface: 0.0.0.0\n ipv4_port: 6162\n ipv6_interface: ::1\n ipv6_port: 6162\"\n publisher:\n type: string\n default:\n \"http_milliseconds_between_retries: 750\n http_milliseconds_timeout: 1500\n http_peer_publisher: unavailable\n http_primary_publisher: '\''true'\''\n http_retries: 3\n max_milliseconds_between_publishes: 10000\n max_traps_between_publishes: 10\"\n sec_fault_unsecure_topic:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP\"\n snmptrapd:\n type: string\n default:\n \"title: Collector for receiving SNMP traps and publishing to DMAAP/MR\n version: 2.0.3\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30470\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n\nnode_templates:\n snmptrap:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"6162/udp:\", { get_input: external_port }]\n properties:\n application_config:\n StormWatchPolicy: '\'''\''\n cache:\n get_input: cache\n files:\n get_input: files\n protocols:\n get_input: protocols\n publisher:\n get_input: publisher\n services_calls: {}\n snmptrapd:\n get_input: snmptrapd\n sw_interval_in_seconds: 60\n streams_publishes:\n sec_fault_unsecure:\n dmaap_info:\n topic_url:\n get_input: sec_fault_unsecure_topic\n type: message_router\n\n image:\n get_input: tag_version\n replicas: {get_input: replicas}\n name: '\''dcae-snmptrap-collector'\''\n dns_name: '\''dcae-snmptrap-collector'\''\n type: dcae.nodes.ContainerizedPlatformComponent\n'
++ echo '# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2019 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=2.0.0\ninputs:\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.snmptrap:2.0.3\"\n cache:\n type: string\n default:\n \"dns_cache_ttl_seconds: 60\"\n files:\n type: string\n default:\n \"arriving_traps_log: snmptrapd_arriving_traps.log\n data_dir: data\n eelf_audit: audit.log\n eelf_base_dir: /opt/app/snmptrap/logs\n eelf_debug: debug.log\n eelf_error: error.log\n eelf_metrics: metrics.log\n log_dir: logs\n minimum_severity_to_log: 2\n perm_status_file: snmptrapd_status.log\n pid_dir: tmp\n roll_frequency: day\n runtime_base_dir: /opt/app/snmptrap\n snmptrapd_diag: snmptrapd_prog_diag.log\n traps_stats_log: snmptrapd_stats.csv\"\n protocols:\n type: string\n default:\n \"ipv4_interface: 0.0.0.0\n ipv4_port: 6162\n ipv6_interface: ::1\n ipv6_port: 6162\"\n publisher:\n type: string\n default:\n \"http_milliseconds_between_retries: 750\n http_milliseconds_timeout: 1500\n http_peer_publisher: unavailable\n http_primary_publisher: '\''true'\''\n http_retries: 3\n max_milliseconds_between_publishes: 10000\n max_traps_between_publishes: 10\"\n sec_fault_unsecure_topic:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP\"\n snmptrapd:\n type: string\n default:\n \"title: Collector for receiving SNMP traps and publishing to DMAAP/MR\n version: 2.0.3\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30470\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n\nnode_templates:\n snmptrap:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"6162/udp:\", { get_input: external_port }]\n properties:\n application_config:\n StormWatchPolicy: '\'''\''\n cache:\n get_input: cache\n files:\n get_input: files\n protocols:\n get_input: protocols\n publisher:\n get_input: publisher\n services_calls: {}\n snmptrapd:\n get_input: snmptrapd\n sw_interval_in_seconds: 60\n streams_publishes:\n sec_fault_unsecure:\n dmaap_info:\n topic_url:\n get_input: sec_fault_unsecure_topic\n type: message_router\n\n image:\n get_input: tag_version\n replicas: {get_input: replicas}\n name: '\''dcae-snmptrap-collector'\''\n dns_name: '\''dcae-snmptrap-collector'\''\n type: dcae.nodes.ContainerizedPlatformComponent\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-snmptrap",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2019 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=2.0.0\ninputs:\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.snmptrap:2.0.3\"\n cache:\n type: string\n default:\n \"dns_cache_ttl_seconds: 60\"\n files:\n type: string\n default:\n \"arriving_traps_log: snmptrapd_arriving_traps.log\n data_dir: data\n eelf_audit: audit.log\n eelf_base_dir: /opt/app/snmptrap/logs\n eelf_debug: debug.log\n eelf_error: error.log\n eelf_metrics: metrics.log\n log_dir: logs\n minimum_severity_to_log: 2\n perm_status_file: snmptrapd_status.log\n pid_dir: tmp\n roll_frequency: day\n runtime_base_dir: /opt/app/snmptrap\n snmptrapd_diag: snmptrapd_prog_diag.log\n traps_stats_log: snmptrapd_stats.csv\"\n protocols:\n type: string\n default:\n \"ipv4_interface: 0.0.0.0\n ipv4_port: 6162\n ipv6_interface: ::1\n ipv6_port: 6162\"\n publisher:\n type: string\n default:\n \"http_milliseconds_between_retries: 750\n http_milliseconds_timeout: 1500\n http_peer_publisher: unavailable\n http_primary_publisher: '\''true'\''\n http_retries: 3\n max_milliseconds_between_publishes: 10000\n max_traps_between_publishes: 10\"\n sec_fault_unsecure_topic:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP\"\n snmptrapd:\n type: string\n default:\n \"title: Collector for receiving SNMP traps and publishing to DMAAP/MR\n version: 2.0.3\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30470\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n\nnode_templates:\n snmptrap:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"6162/udp:\", { get_input: external_port }]\n properties:\n application_config:\n StormWatchPolicy: '\'''\''\n cache:\n get_input: cache\n files:\n get_input: files\n protocols:\n get_input: protocols\n publisher:\n get_input: publisher\n services_calls: {}\n snmptrapd:\n get_input: snmptrapd\n sw_interval_in_seconds: 60\n streams_publishes:\n sec_fault_unsecure:\n dmaap_info:\n topic_url:\n get_input: sec_fault_unsecure_topic\n type: message_router\n\n image:\n get_input: tag_version\n replicas: {get_input: replicas}\n name: '\''dcae-snmptrap-collector'\''\n dns_name: '\''dcae-snmptrap-collector'\''\n type: dcae.nodes.ContainerizedPlatformComponent\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 8615 100 4443 100 4172 27952 26247 --:--:-- --:--:-- --:--:-- 28120
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-sonhms.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-sonhms.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-sonhms.yaml .yaml
++ flatten /blueprints/k8s-sonhms.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT=' #============LICENSE_START=======================================================\n # son-handler\n # ================================================================================\n # Copyright (C) 2019-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\nimports:\n - \"http://www.getcloudify.org/spec/cloudify/3.4/types.yaml\"\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:2.1.2\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sonhms\"\n aaf_username:\n type: string\n description: aaf username\n default:\n aaf_password:\n type: string\n description: aaf password\n default:\n polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n num_solutions:\n type: integer\n description: num of solutions\n default: 5\n min_collision:\n type: integer\n description: minimum no. of collisions\n default: 5\n min_confusion:\n type: integer\n description: minimum no. of confusions\n default: 5\n max_clusters:\n type: integer\n description: maximum clusters\n default: 5\n bad_threshold:\n type: integer\n description: threshold for bad neighbors\n default: 50\n poor_threshold:\n type: integer\n description: threshold for poor neighbors\n default: 70\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sonhms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sonhms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://sdnc.onap:8181\"\n oof:\n type: string\n description: oof location\n default: \"https://oof-osdf.onap:8698\"\n oof_endpoint:\n type: string\n description: oof endpoint\n default: \"/api/oof/v1/pci\"\n pci_optimizer:\n type: string\n description: pci optimizer name in oof\n default: \"pci\"\n pci_anr_optimizer:\n type: string\n description: pci and anr optimizer name in oof\n default: \"pci_anr\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/son-handler\"\n poorCountThreshold:\n type: integer\n description: poor neighbor count threshold\n default: 3\n badCountThreshold:\n type: integer\n description: bad neighbor count threshold\n default: 3\n oofTriggerCountTimer:\n type: integer\n description: timer for oof triggered count in minutes\n default: 30\n oofTriggerCountThreshold:\n type: integer\n description: Threshold for oof trigger count\n default: 5\n policyRespTimer:\n type: integer\n description: policy response wait timer in seconds\n default: 10\n policy_id:\n type: string\n description: policy id for config policy\n default: \"com.Config_PCIMS_CONFIG_POLICY\"\n performance_management_topic_url:\n type: string\n description: ves measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n fault_management_topic_url:\n type: string\n description: ves fault topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.SEC_FAULT_OUTPUT\"\n nbr_list_change_topic_url:\n type: string\n description: neighbor list change notification topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n policyNegativeAckThreshold:\n type: integer\n description: negative acknowledgement from policy threshold\n default: 3\n policyFixedPciTimeInterval:\n type: integer\n description: time interval for checking FixedPci table\n default: 30000\n nfNamingCode:\n type: string\n description: filter fm and pm notification using this parameter\n default: \"RansimAgent\"\n\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sonhms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sonhms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-sonhms'\''\n service_id: '\''sonhms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n application_config:\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n fault_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: fault_management_topic_url }\n type: message-router\n nbr_list_change_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: nbr_list_change_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sonhandler.pollingInterval: { get_input: polling_interval}\n sonhandler.pollingTimeout: { get_input: polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sonhandler.numSolutions: { get_input: num_solutions }\n sonhandler.minCollision: { get_input: min_collision }\n sonhandler.minConfusion: { get_input: min_confusion }\n sonhandler.maximumClusters: { get_input: max_clusters }\n sonhandler.badThreshold: { get_input: bad_threshold }\n sonhandler.poorThreshold: { get_input: poor_threshold }\n sonhandler.namespace: { get_input: namespace }\n sonhandler.sourceId: SONHMS\n sonhandler.dmaap.server:\n - { get_input: dmaap }\n sonhandler.bufferTime: { get_input: buffer_time }\n sonhandler.cg: { get_input: cg }\n sonhandler.cid: { get_input: cid }\n sonhandler.configDb.service: { get_input: config_db }\n sonhandler.oof.service: { get_input: oof }\n sonhandler.oof.endpoint: { get_input: oof_endpoint }\n sonhandler.pciOptimizer: { get_input: pci_optimizer }\n sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }\n sonhandler.poorCountThreshold: { get_input: poorCountThreshold}\n sonhandler.badCountThreshold: { get_input: badCountThreshold}\n sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}\n sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}\n sonhandler.policyRespTimer: { get_input: policyRespTimer}\n sonhandler.policyNegativeAckThreshold: { get_input: policyNegativeAckThreshold}\n sonhandler.policyFixedPciTimeInterval: { get_input: policyFixedPciTimeInterval}\n sonhandler.nfNamingCode: { get_input: nfNamingCode}\n service_calls:\n sdnr-getpnfname: []\n sdnr-getpci: []\n sdnr-getnbrlist: []\n sdnr-getcelllist: []\n oof-req: []\n policy-req: []\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n - type: cloudify.relationships.depends_on\n target: son_policy\n\n son_policy:\n type: dcae.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n\n\n\n\n'
++ echo ' #============LICENSE_START=======================================================\n # son-handler\n # ================================================================================\n # Copyright (C) 2019-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\nimports:\n - \"http://www.getcloudify.org/spec/cloudify/3.4/types.yaml\"\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:2.1.2\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sonhms\"\n aaf_username:\n type: string\n description: aaf username\n default:\n aaf_password:\n type: string\n description: aaf password\n default:\n polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n num_solutions:\n type: integer\n description: num of solutions\n default: 5\n min_collision:\n type: integer\n description: minimum no. of collisions\n default: 5\n min_confusion:\n type: integer\n description: minimum no. of confusions\n default: 5\n max_clusters:\n type: integer\n description: maximum clusters\n default: 5\n bad_threshold:\n type: integer\n description: threshold for bad neighbors\n default: 50\n poor_threshold:\n type: integer\n description: threshold for poor neighbors\n default: 70\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sonhms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sonhms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://sdnc.onap:8181\"\n oof:\n type: string\n description: oof location\n default: \"https://oof-osdf.onap:8698\"\n oof_endpoint:\n type: string\n description: oof endpoint\n default: \"/api/oof/v1/pci\"\n pci_optimizer:\n type: string\n description: pci optimizer name in oof\n default: \"pci\"\n pci_anr_optimizer:\n type: string\n description: pci and anr optimizer name in oof\n default: \"pci_anr\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/son-handler\"\n poorCountThreshold:\n type: integer\n description: poor neighbor count threshold\n default: 3\n badCountThreshold:\n type: integer\n description: bad neighbor count threshold\n default: 3\n oofTriggerCountTimer:\n type: integer\n description: timer for oof triggered count in minutes\n default: 30\n oofTriggerCountThreshold:\n type: integer\n description: Threshold for oof trigger count\n default: 5\n policyRespTimer:\n type: integer\n description: policy response wait timer in seconds\n default: 10\n policy_id:\n type: string\n description: policy id for config policy\n default: \"com.Config_PCIMS_CONFIG_POLICY\"\n performance_management_topic_url:\n type: string\n description: ves measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n fault_management_topic_url:\n type: string\n description: ves fault topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.SEC_FAULT_OUTPUT\"\n nbr_list_change_topic_url:\n type: string\n description: neighbor list change notification topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n policyNegativeAckThreshold:\n type: integer\n description: negative acknowledgement from policy threshold\n default: 3\n policyFixedPciTimeInterval:\n type: integer\n description: time interval for checking FixedPci table\n default: 30000\n nfNamingCode:\n type: string\n description: filter fm and pm notification using this parameter\n default: \"RansimAgent\"\n\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sonhms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sonhms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-sonhms'\''\n service_id: '\''sonhms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n application_config:\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n fault_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: fault_management_topic_url }\n type: message-router\n nbr_list_change_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: nbr_list_change_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sonhandler.pollingInterval: { get_input: polling_interval}\n sonhandler.pollingTimeout: { get_input: polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sonhandler.numSolutions: { get_input: num_solutions }\n sonhandler.minCollision: { get_input: min_collision }\n sonhandler.minConfusion: { get_input: min_confusion }\n sonhandler.maximumClusters: { get_input: max_clusters }\n sonhandler.badThreshold: { get_input: bad_threshold }\n sonhandler.poorThreshold: { get_input: poor_threshold }\n sonhandler.namespace: { get_input: namespace }\n sonhandler.sourceId: SONHMS\n sonhandler.dmaap.server:\n - { get_input: dmaap }\n sonhandler.bufferTime: { get_input: buffer_time }\n sonhandler.cg: { get_input: cg }\n sonhandler.cid: { get_input: cid }\n sonhandler.configDb.service: { get_input: config_db }\n sonhandler.oof.service: { get_input: oof }\n sonhandler.oof.endpoint: { get_input: oof_endpoint }\n sonhandler.pciOptimizer: { get_input: pci_optimizer }\n sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }\n sonhandler.poorCountThreshold: { get_input: poorCountThreshold}\n sonhandler.badCountThreshold: { get_input: badCountThreshold}\n sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}\n sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}\n sonhandler.policyRespTimer: { get_input: policyRespTimer}\n sonhandler.policyNegativeAckThreshold: { get_input: policyNegativeAckThreshold}\n sonhandler.policyFixedPciTimeInterval: { get_input: policyFixedPciTimeInterval}\n sonhandler.nfNamingCode: { get_input: nfNamingCode}\n service_calls:\n sdnr-getpnfname: []\n sdnr-getpci: []\n sdnr-getnbrlist: []\n sdnr-getcelllist: []\n oof-req: []\n policy-req: []\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n - type: cloudify.relationships.depends_on\n target: son_policy\n\n son_policy:\n type: dcae.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n\n\n\n\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-sonhms",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": " #============LICENSE_START=======================================================\n # son-handler\n # ================================================================================\n # Copyright (C) 2019-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\nimports:\n - \"http://www.getcloudify.org/spec/cloudify/3.4/types.yaml\"\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:2.1.2\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sonhms\"\n aaf_username:\n type: string\n description: aaf username\n default:\n aaf_password:\n type: string\n description: aaf password\n default:\n polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n num_solutions:\n type: integer\n description: num of solutions\n default: 5\n min_collision:\n type: integer\n description: minimum no. of collisions\n default: 5\n min_confusion:\n type: integer\n description: minimum no. of confusions\n default: 5\n max_clusters:\n type: integer\n description: maximum clusters\n default: 5\n bad_threshold:\n type: integer\n description: threshold for bad neighbors\n default: 50\n poor_threshold:\n type: integer\n description: threshold for poor neighbors\n default: 70\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sonhms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sonhms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://sdnc.onap:8181\"\n oof:\n type: string\n description: oof location\n default: \"https://oof-osdf.onap:8698\"\n oof_endpoint:\n type: string\n description: oof endpoint\n default: \"/api/oof/v1/pci\"\n pci_optimizer:\n type: string\n description: pci optimizer name in oof\n default: \"pci\"\n pci_anr_optimizer:\n type: string\n description: pci and anr optimizer name in oof\n default: \"pci_anr\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/son-handler\"\n poorCountThreshold:\n type: integer\n description: poor neighbor count threshold\n default: 3\n badCountThreshold:\n type: integer\n description: bad neighbor count threshold\n default: 3\n oofTriggerCountTimer:\n type: integer\n description: timer for oof triggered count in minutes\n default: 30\n oofTriggerCountThreshold:\n type: integer\n description: Threshold for oof trigger count\n default: 5\n policyRespTimer:\n type: integer\n description: policy response wait timer in seconds\n default: 10\n policy_id:\n type: string\n description: policy id for config policy\n default: \"com.Config_PCIMS_CONFIG_POLICY\"\n performance_management_topic_url:\n type: string\n description: ves measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n fault_management_topic_url:\n type: string\n description: ves fault topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.SEC_FAULT_OUTPUT\"\n nbr_list_change_topic_url:\n type: string\n description: neighbor list change notification topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n policyNegativeAckThreshold:\n type: integer\n description: negative acknowledgement from policy threshold\n default: 3\n policyFixedPciTimeInterval:\n type: integer\n description: time interval for checking FixedPci table\n default: 30000\n nfNamingCode:\n type: string\n description: filter fm and pm notification using this parameter\n default: \"RansimAgent\"\n\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sonhms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sonhms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: '\''dcae-sonhms'\''\n service_id: '\''sonhms'\''\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n application_config:\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n fault_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: fault_management_topic_url }\n type: message-router\n nbr_list_change_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: nbr_list_change_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sonhandler.pollingInterval: { get_input: polling_interval}\n sonhandler.pollingTimeout: { get_input: polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sonhandler.numSolutions: { get_input: num_solutions }\n sonhandler.minCollision: { get_input: min_collision }\n sonhandler.minConfusion: { get_input: min_confusion }\n sonhandler.maximumClusters: { get_input: max_clusters }\n sonhandler.badThreshold: { get_input: bad_threshold }\n sonhandler.poorThreshold: { get_input: poor_threshold }\n sonhandler.namespace: { get_input: namespace }\n sonhandler.sourceId: SONHMS\n sonhandler.dmaap.server:\n - { get_input: dmaap }\n sonhandler.bufferTime: { get_input: buffer_time }\n sonhandler.cg: { get_input: cg }\n sonhandler.cid: { get_input: cid }\n sonhandler.configDb.service: { get_input: config_db }\n sonhandler.oof.service: { get_input: oof }\n sonhandler.oof.endpoint: { get_input: oof_endpoint }\n sonhandler.pciOptimizer: { get_input: pci_optimizer }\n sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }\n sonhandler.poorCountThreshold: { get_input: poorCountThreshold}\n sonhandler.badCountThreshold: { get_input: badCountThreshold}\n sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}\n sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}\n sonhandler.policyRespTimer: { get_input: policyRespTimer}\n sonhandler.policyNegativeAckThreshold: { get_input: policyNegativeAckThreshold}\n sonhandler.policyFixedPciTimeInterval: { get_input: policyFixedPciTimeInterval}\n sonhandler.nfNamingCode: { get_input: nfNamingCode}\n service_calls:\n sdnr-getpnfname: []\n sdnr-getpci: []\n sdnr-getnbrlist: []\n sdnr-getcelllist: []\n oof-req: []\n policy-req: []\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n - type: cloudify.relationships.depends_on\n target: son_policy\n\n son_policy:\n type: dcae.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n\n\n\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 22593 0 11432 100 11161 59428 58020 --:--:-- --:--:-- --:--:-- 59541
timeout: 1s\n type: http\n tls_info:\n cert_directory: '/opt/app/sliceanalysisms/etc/cert/'\n use_tls: true\n application_config:\n aafUsername: { get_input: aaf_username }\n aafPassword: { get_input: aaf_password }\n trust_store_path: '/opt/app/sliceanalysisms/etc/cert/trust.jks'\n trust_store_pass_path: '/opt/app/sliceanalysisms/etc/cert/trust.pass'\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n intelligent_slicing_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: intelligent_slicing_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sliceanalysisms.pollingInterval: { get_input: dmaap_polling_interval}\n sliceanalysisms.pollingTimeout: { get_input: dmaap_polling_timeout }\n cbsPollingInterval: { get_input: cbs_polling_interval }\n sliceanalysisms.dmaap.server:\n - { get_input: dmaap }\n sliceanalysisms.cg: { get_input: cg }\n sliceanalysisms.cid: { get_input: cid }\n sliceanalysisms.configDb.service: { get_input: config_db }\n sliceanalysisms.samples: { get_input: samples }\n sliceanalysisms.minPercentageChange: { get_input: minimumPercentageChange }\n sliceanalysisms.initialDelaySeconds: { get_input: initialDelaySeconds }\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":"b81c79df-a37d-4fb9-b196-e773150d7e37","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/b81c79df-a37d-4fb9-b196-e773150d7e37"},"created":1622085001215,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-snmptrap","typeVersion":2105270310,"blueprintTemplate":"# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\n#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2018-2019 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=2.0.0\ninputs:\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.snmptrap:2.0.3\"\n cache:\n type: string\n default:\n \"dns_cache_ttl_seconds: 60\"\n files:\n type: string\n default:\n \"arriving_traps_log: snmptrapd_arriving_traps.log\n data_dir: data\n eelf_audit: audit.log\n eelf_base_dir: /opt/app/snmptrap/logs\n eelf_debug: debug.log\n eelf_error: error.log\n eelf_metrics: metrics.log\n log_dir: logs\n minimum_severity_to_log: 2\n perm_status_file: snmptrapd_status.log\n pid_dir: tmp\n roll_frequency: day\n runtime_base_dir: /opt/app/snmptrap\n snmptrapd_diag: snmptrapd_prog_diag.log\n traps_stats_log: snmptrapd_stats.csv\"\n protocols:\n type: string\n default:\n \"ipv4_interface: 0.0.0.0\n ipv4_port: 6162\n ipv6_interface: ::1\n ipv6_port: 6162\"\n publisher:\n type: string\n default:\n \"http_milliseconds_between_retries: 750\n http_milliseconds_timeout: 1500\n http_peer_publisher: unavailable\n http_primary_publisher: 'true'\n http_retries: 3\n max_milliseconds_between_publishes: 10000\n max_traps_between_publishes: 10\"\n sec_fault_unsecure_topic:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP\"\n snmptrapd:\n type: string\n default:\n \"title: Collector for receiving SNMP traps and publishing to DMAAP/MR\n version: 2.0.3\"\n external_port:\n type: string\n description: Kubernetes node port on which collector is exposed\n default: \"30470\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n\nnode_templates:\n snmptrap:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"6162/udp:\", { get_input: external_port }]\n properties:\n application_config:\n StormWatchPolicy: ''\n cache:\n get_input: cache\n files:\n get_input: files\n protocols:\n get_input: protocols\n publisher:\n get_input: publisher\n services_calls: {}\n snmptrapd:\n get_input: snmptrapd\n sw_interval_in_seconds: 60\n streams_publishes:\n sec_fault_unsecure:\n dmaap_info:\n topic_url:\n get_input: sec_fault_unsecure_topic\n type: message_router\n\n image:\n get_input: tag_version\n replicas: {get_input: replicas}\n name: 'dcae-snmptrap-collector'\n dns_name: 'dcae-snmptrap-collector'\n type: dcae.nodes.ContainerizedPlatformComponent\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"f9d9091d-2e13-4680-a879-ff6d592e4c7c","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/f9d9091d-2e13-4680-a879-ff6d592e4c7c"},"created":1622085001388,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-sonhms","typeVersion":2105270310,"blueprintTemplate":" #============LICENSE_START=======================================================\n # son-handler\n # ================================================================================\n # Copyright (C) 2019-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\nimports:\n - \"http://www.getcloudify.org/spec/cloudify/3.4/types.yaml\"\n - plugin:k8splugin?version=3.4.2\n - plugin:pgaas?version=1.3.0\n - plugin:dcaepolicyplugin?version=2.4.0\ninputs:\n replicas:\n type: integer\n description: replica count for deployment\n default: 1\n tag_version:\n type: string\n description: docker image name and version\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:2.1.2\"\n pgaas_cluster_name:\n type: string\n description: pg cluster\n default: \"dcae-pg-primary.onap\"\n database_name:\n type: string\n description: database name\n default: \"sonhms\"\n aaf_username:\n type: string\n description: aaf username\n default:\n aaf_password:\n type: string\n description: aaf password\n default:\n polling_interval:\n type: integer\n description: dmaap polling interval\n default: 20\n cbs_polling_interval:\n type: integer\n description: cbs polling interval\n default: 60\n polling_timeout:\n type: integer\n description: dmaap polling timeout\n default: 60\n num_solutions:\n type: integer\n description: num of solutions\n default: 5\n min_collision:\n type: integer\n description: minimum no. of collisions\n default: 5\n min_confusion:\n type: integer\n description: minimum no. of confusions\n default: 5\n max_clusters:\n type: integer\n description: maximum clusters\n default: 5\n bad_threshold:\n type: integer\n description: threshold for bad neighbors\n default: 50\n poor_threshold:\n type: integer\n description: threshold for poor neighbors\n default: 70\n namespace:\n type: string\n description: namespace\n default: \"onap\"\n dmaap:\n type: string\n description: dmaap server\n default: \"message-router\"\n buffer_time:\n type: integer\n description: buffer time\n default: 60\n cg:\n type: string\n description: consumer group\n default: \"sonhms-cg\"\n cid:\n type: string\n description: consumer id\n default: \"sonhms-cid\"\n config_db:\n type: string\n description: config db location\n default: \"http://sdnc.onap:8181\"\n oof:\n type: string\n description: oof location\n default: \"https://oof-osdf.onap:8698\"\n oof_endpoint:\n type: string\n description: oof endpoint\n default: \"/api/oof/v1/pci\"\n pci_optimizer:\n type: string\n description: pci optimizer name in oof\n default: \"pci\"\n pci_anr_optimizer:\n type: string\n description: pci and anr optimizer name in oof\n default: \"pci_anr\"\n log_path:\n type: string\n description: log location in host\n default: \"/dockerdata-nfs/son-handler\"\n poorCountThreshold:\n type: integer\n description: poor neighbor count threshold\n default: 3\n badCountThreshold:\n type: integer\n description: bad neighbor count threshold\n default: 3\n oofTriggerCountTimer:\n type: integer\n description: timer for oof triggered count in minutes\n default: 30\n oofTriggerCountThreshold:\n type: integer\n description: Threshold for oof trigger count\n default: 5\n policyRespTimer:\n type: integer\n description: policy response wait timer in seconds\n default: 10\n policy_id:\n type: string\n description: policy id for config policy\n default: \"com.Config_PCIMS_CONFIG_POLICY\"\n performance_management_topic_url:\n type: string\n description: ves measurement topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n fault_management_topic_url:\n type: string\n description: ves fault topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.SEC_FAULT_OUTPUT\"\n nbr_list_change_topic_url:\n type: string\n description: neighbor list change notification topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO\"\n dcae_cl_response_topic_url:\n type: string\n description: dcae control loop response topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/DCAE_CL_RSP\"\n dcae_cl_topic_url:\n type: string\n description: dcae control loop topic url\n default: \"https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.DCAE_CL_OUTPUT\"\n policyNegativeAckThreshold:\n type: integer\n description: negative acknowledgement from policy threshold\n default: 3\n policyFixedPciTimeInterval:\n type: integer\n description: time interval for checking FixedPci table\n default: 30000\n nfNamingCode:\n type: string\n description: filter fm and pm notification using this parameter\n default: \"RansimAgent\"\n\nnode_templates:\n pgaasvm:\n type: dcae.nodes.pgaas.database\n properties:\n writerfqdn: { get_input: pgaas_cluster_name }\n name: { get_input: database_name }\n use_existing: false\n\n sonhms:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n STANDALONE: \"false\"\n ports:\n - \"8080:0\"\n volumes:\n - host:\n path: { get_input: log_path }\n container:\n bind: /home/sonhms/logs\n mode: rw\n properties:\n image:\n get_input: tag_version\n service_component_type: 'dcae-sonhms'\n service_id: 'sonhms'\n always_pull_image: true\n replicas: {get_input: replicas}\n docker_config:\n healthcheck:\n endpoint: /healthcheck\n interval: 15s\n timeout: 1s\n type: http\n application_config:\n streams_subscribes:\n performance_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: performance_management_topic_url }\n type: message-router\n fault_management_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: fault_management_topic_url }\n type: message-router\n nbr_list_change_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: nbr_list_change_topic_url }\n type: message-router\n dcae_cl_response_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_response_topic_url }\n type: message-router\n streams_publishes:\n CL_topic:\n aaf_username: { get_input: aaf_username }\n aaf_password: { get_input: aaf_password }\n dmaap_info:\n topic_url: { get_input: dcae_cl_topic_url }\n type: message-router\n postgres.host: { get_attribute: [ pgaasvm, admin, host ] }\n postgres.port: { get_attribute: [ pgaasvm, admin, port ] }\n postgres.username: { get_attribute: [ pgaasvm, admin, user ] }\n postgres.password: { get_attribute: [ pgaasvm, admin, password ] }\n sonhandler.pollingInterval: { get_input: polling_interval}\n sonhandler.pollingTimeout: { get_input: polling_timeout }\n cbsPollingInterval: { get_input: cbs_pol+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-tcagen2-clampnode.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-tcagen2-clampnode.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-tcagen2-clampnode.yaml .yaml
++ flatten /blueprints/k8s-tcagen2-clampnode.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 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#k8s-tca-gen2-v3.yaml\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:clamppolicyplugin?version=1.1.0\ninputs:\n service_name:\n type: string\n default: '\''dcae-tcagen2'\''\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n policy_model_id:\n type: string\n default: \"onap.policies.monitoring.tcagen2\"\n policy_id:\n type: string\n default: \"onap.restart.tca\"\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - target: tcagen2_policy\n type: cloudify.relationships.depends_on\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n get_input: replicas\n service_component_type: { get_input: service_name }\n tcagen2_policy:\n type: clamp.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n policy_model_id:\n get_input: policy_model_id\n'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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#k8s-tca-gen2-v3.yaml\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:clamppolicyplugin?version=1.1.0\ninputs:\n service_name:\n type: string\n default: '\''dcae-tcagen2'\''\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n policy_model_id:\n type: string\n default: \"onap.policies.monitoring.tcagen2\"\n policy_id:\n type: string\n default: \"onap.restart.tca\"\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - target: tcagen2_policy\n type: cloudify.relationships.depends_on\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n get_input: replicas\n service_component_type: { get_input: service_name }\n tcagen2_policy:\n type: clamp.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n policy_model_id:\n get_input: policy_model_id\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-tcagen2-clampnode",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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#k8s-tca-gen2-v3.yaml\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:clamppolicyplugin?version=1.1.0\ninputs:\n service_name:\n type: string\n default: '\''dcae-tcagen2'\''\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n policy_model_id:\n type: string\n default: \"onap.policies.monitoring.tcagen2\"\n policy_id:\n type: string\n default: \"onap.restart.tca\"\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - target: tcagen2_policy\n type: cloudify.relationships.depends_on\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n get_input: replicas\n service_component_type: { get_input: service_name }\n tcagen2_policy:\n type: clamp.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n policy_model_id:\n get_input: policy_model_id\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 15547 100 7909 100 7638 53934 52086 --:--:-- --:--:-- --:--:-- 54171
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-tcagen2.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-tcagen2.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-tcagen2.yaml .yaml
++ flatten /blueprints/k8s-tcagen2.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 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\ninputs:\n service_component_type:\n type: string\n default: \"dcae-tcagen2\"\n service_id:\n type: string\n default: \"dcae-tcagen2\"\n service_component_name_override:\n type: string\n default: \"dcae-tcagen2\"\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n 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'
++ echo '# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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\ninputs:\n service_component_type:\n type: string\n default: \"dcae-tcagen2\"\n service_id:\n type: string\n default: \"dcae-tcagen2\"\n service_component_name_override:\n type: string\n default: \"dcae-tcagen2\"\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n 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'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2105270310,
"typeName": "k8s-tcagen2",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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\ninputs:\n service_component_type:\n type: string\n default: \"dcae-tcagen2\"\n service_id:\n type: string\n default: \"dcae-tcagen2\"\n service_component_name_override:\n type: string\n default: \"dcae-tcagen2\"\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '\''{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\''\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '\''/etc/tca-gen2/ssl'\''\n replicas:\n 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"
}'
% 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 15141 100 7706 100 7435 35667 34413 --:--:-- --:--:-- --:--:-- 35675
ling_interval }\n sonhandler.numSolutions: { get_input: num_solutions }\n sonhandler.minCollision: { get_input: min_collision }\n sonhandler.minConfusion: { get_input: min_confusion }\n sonhandler.maximumClusters: { get_input: max_clusters }\n sonhandler.badThreshold: { get_input: bad_threshold }\n sonhandler.poorThreshold: { get_input: poor_threshold }\n sonhandler.namespace: { get_input: namespace }\n sonhandler.sourceId: SONHMS\n sonhandler.dmaap.server:\n - { get_input: dmaap }\n sonhandler.bufferTime: { get_input: buffer_time }\n sonhandler.cg: { get_input: cg }\n sonhandler.cid: { get_input: cid }\n sonhandler.configDb.service: { get_input: config_db }\n sonhandler.oof.service: { get_input: oof }\n sonhandler.oof.endpoint: { get_input: oof_endpoint }\n sonhandler.pciOptimizer: { get_input: pci_optimizer }\n sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }\n sonhandler.poorCountThreshold: { get_input: poorCountThreshold}\n sonhandler.badCountThreshold: { get_input: badCountThreshold}\n sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}\n sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}\n sonhandler.policyRespTimer: { get_input: policyRespTimer}\n sonhandler.policyNegativeAckThreshold: { get_input: policyNegativeAckThreshold}\n sonhandler.policyFixedPciTimeInterval: { get_input: policyFixedPciTimeInterval}\n sonhandler.nfNamingCode: { get_input: nfNamingCode}\n service_calls:\n sdnr-getpnfname: []\n sdnr-getpci: []\n sdnr-getnbrlist: []\n sdnr-getcelllist: []\n oof-req: []\n policy-req: []\n relationships:\n - type: cloudify.relationships.depends_on\n target: pgaasvm\n - type: cloudify.relationships.depends_on\n target: son_policy\n\n son_policy:\n type: dcae.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n\n\n\n\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"719987c0-6d6d-40c3-92f7-3f443853c6d1","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/719987c0-6d6d-40c3-92f7-3f443853c6d1"},"created":1622085001599,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-tcagen2-clampnode","typeVersion":2105270310,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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#k8s-tca-gen2-v3.yaml\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:clamppolicyplugin?version=1.1.0\ninputs:\n service_name:\n type: string\n default: 'dcae-tcagen2'\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n policy_model_id:\n type: string\n default: \"onap.policies.monitoring.tcagen2\"\n policy_id:\n type: string\n default: \"onap.restart.tca\"\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n relationships:\n - target: tcagen2_policy\n type: cloudify.relationships.depends_on\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}'\n tca.processing_batch_size: 10000\n tca.enable_abatement: true\n tca.enable_ecomp_logging: true\n docker_config:\n healthcheck:\n endpoint: /actuator/health\n interval: 30s\n timeout: 10s\n type: http\n image:\n get_input: tag_version\n log_info:\n log_directory:\n get_input: log_directory\n tls_info:\n use_tls: true\n cert_directory: '/etc/tca-gen2/ssl'\n replicas:\n get_input: replicas\n service_component_type: { get_input: service_name }\n tcagen2_policy:\n type: clamp.nodes.policy\n properties:\n policy_id:\n get_input: policy_id\n policy_model_id:\n get_input: policy_model_id\n","serviceIds":null,"vnfTypes":[],"serviceLocations":null,"asdcServiceId":null,"asdcResourceId":null,"asdcServiceURL":null,"application":"DCAE","component":"dcae","typeId":"e3f8243e-551e-4e10-8d22-5d028a94251d","selfLink":{"rel":"self","href":"https://inventory:8080/dcae-service-types/e3f8243e-551e-4e10-8d22-5d028a94251d"},"created":1622085001760,"deactivated":null}{"owner":"dcaeorch","typeName":"k8s-tcagen2","typeVersion":2105270310,"blueprintTemplate":"# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (C) 2019-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\ninputs:\n service_component_type:\n type: string\n default: \"dcae-tcagen2\"\n service_id:\n type: string\n default: \"dcae-tcagen2\"\n service_component_name_override:\n type: string\n default: \"dcae-tcagen2\"\n log_directory:\n type: string\n default: \"/opt/logs/dcae-analytics-tca\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n spring.data.mongodb.uri:\n type: string\n default: \"mongodb://dcae-mongohost/dcae-tcagen2\"\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1\"\n tca.aai.password:\n type: string\n default: \"DCAE\"\n tca.aai.url:\n type: string\n default: \"http://aai.onap.svc.cluster.local\"\n tca.aai.username:\n type: string\n default: \"DCAE\"\n tca_handle_in_subscribe_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n tca_handle_out_publish_url:\n type: string\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT\"\n tca_consumer_group:\n type: string\n default: \"cg1\"\n\nnode_templates:\n docker.tca:\n type: dcae.nodes.ContainerizedServiceComponent\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n ports:\n - concat: [\"9091:\", \"0\"]\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n tca_handle_out:\n dmaap_info:\n topic_url:\n get_input: tca_handle_out_publish_url\n type: message_router\n streams_subscribes:\n tca_handle_in:\n dmaap_info:\n topic_url:\n get_input: tca_handle_in_subscribe_url\n type: message_router\n spring.data.mongodb.uri:\n get_input: spring.data.mongodb.uri\n streams_subscribes.tca_handle_in.consumer_group:\n get_input: tca_consumer_group\n streams_subscribes.tca_handle_in.consumer_ids[0]: c0\n streams_subscribes.tca_handle_in.consumer_ids[1]: c1\n streams_subscribes.tca_handle_in.message_limit: 50000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.max: 60000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.min: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down: 30000\n streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up: 10000\n streams_subscribes.tca_handle_in.polling.fixed_rate: 0\n streams_subscribes.tca_handle_in.timeout: -1\n tca.aai.enable_enrichment: true\n tca.aai.generic_vnf_path: aai/v11/network/generic-vnfs/generic-vnf\n tca.aai.node_query_path: aai/v11/search/nodes-query\n tca.aai.password:\n get_input: tca.aai.password\n tca.aai.url:\n get_input: tca.aai.url\n tca.aai.username:\n get_input: tca.aai.username\n tca.policy: '{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-ves-mapper.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-ves-mapper.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-ves-mapper.yaml .yaml
++ flatten /blueprints/k8s-ves-mapper.yaml
+++ tr -d '\n'
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
++ FLAT='#\n# ============LICENSE_START====================================================\n# =============================================================================\n# Copyright (c) 2019 TechMahindra. All rights reserved.\n# 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\ndescription: \"This blueprint deploys the UniversalVESAdapter\"\nimports:\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n - plugin:k8splugin?version=3.4.2\n\ninputs:\n rcc_notification_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_RCC_OUTPUT\"\n type: string\n snmp_notification_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.ONAP-COLLECTOR-SNMPTRAP\"\n type: string\n tag_version:\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor:1.1.0\"\n type: string\n universal_mapper_name:\n default: \"dcaegen2-svc-mapper\"\n type: string\n ves_fault_publish_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_FAULT_OUTPUT\"\n type: string\n ves_measurement_publish_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT\"\n type: string\n ves_notification_publish_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT\"\n type: string\n ves_pnfRegistration_publish_url:\n default: \"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT\"\n type: string\nnode_templates:\n universalvesadapter:\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n CONFIG_BINDING_SERVICE: config_binding_service\n max_wait: 3600\n ports:\n - \"80:0\"\n properties:\n application_config:\n app_preferences:\n collectors:\n -\n identifier: notification-id\n mapping-files:\n -\n defaultMappingFile-rcc-notification: \"