By type
+ trap keep_running ERR
+ set -e
+ cfy profiles use -u admin -t default_tenant -p UmH7vbj6 --rest-certificate /certs/cacert.pem --ssl dcae-cloudify-manager
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Initializing local profile ...
Initialization completed successfully
Attempting to connect to dcae-cloudify-manager through port 443, using https (SSL mode: True)...
Initializing profile dcae-cloudify-manager...
Initialization completed successfully
Using manager dcae-cloudify-manager with port 443
+ cfy status
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Retrieving manager services status... [ip=dcae-cloudify-manager]
Services:
+--------------------------------+--------+
| service | status |
+--------------------------------+--------+
| Cloudify Console | Active |
| PostgreSQL | Active |
| AMQP-Postgres | Active |
| Manager Rest-Service | Active |
| RabbitMQ | Active |
| Webserver | Active |
| Management Worker | Active |
+--------------------------------+--------+
+ cfy secret create -s UmH7vbj6 cmpass
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Secret `cmpass` created
+ for config in '/dcae-configs/*.json'
++ basename /dcae-configs/dmaap-plugin.json .json
+ key=dmaap-plugin
+ egrep -v '^#|^$' /dcae-configs/dmaap-plugin.json
+ curl -v -X PUT -H 'Content-Type: application/json' --data-binary @/tmp/dcae-upload consul-server:8500/v1/kv/dmaap-plugin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to consul-server port 8500 (#0)
* Trying 10.233.76.199...
* Connected to consul-server (10.233.76.199) 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: Fri, 30 Apr 2021 02:18:35 GMT
< Content-Length: 4
<
{ [data not shown]
100 124 100 4 100 120 8 263 --:--:-- --:--:-- --:--:-- 263
* Connection #0 to host consul-server left intact
+ for config in '/dcae-configs/*.json'
++ basename /dcae-configs/k8s-plugin.json .json
+ key=k8s-plugin
+ egrep -v '^#|^$' /dcae-configs/k8s-plugin.json
+ curl -v -X PUT -H 'Content-Type: application/json' --data-binary @/tmp/dcae-upload consul-server:8500/v1/kv/k8s-plugin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to consul-server port 8500 (#0)
* Trying 10.233.76.199...
* Connected to consul-server (10.233.76.199) 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: Fri, 30 Apr 2021 02:18:36 GMT
< Content-Length: 4
<
{ [data not shown]
100 1518 100 4 100 1514 7 2928 --:--:-- --:--:-- --:--:-- 2928
100 1518 100 4 100 1514 7 2927 --:--:-- --:--:-- --:--:-- 2928
* 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-04-30 02:18:42.664 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:18:42.670 CFY Installing deployment and workflow plugins
2021-04-30 02:18:42.769 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:18:42.785 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:18:43.699 LOG INFO: Installing plugin: pgaas
2021-04-30 02:18:44.302 LOG INFO: Using existing installation of managed plugin: 692855b3-24ac-4d74-a2d0-971457181dc8 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:18:44.302 LOG INFO: Installing plugin: ssh_keyshare
2021-04-30 02:18:52.140 CFY Starting 'install' workflow execution
2021-04-30 02:18:52.670 CFY [sharedsshkey_pgrs_pjaxd1] Validating node instance before creation: nothing to do
2021-04-30 02:18:52.788 CFY [sharedsshkey_pgrs_pjaxd1] Precreating node instance: nothing to do
2021-04-30 02:18:52.872 CFY [sharedsshkey_pgrs_pjaxd1] Creating node instance
2021-04-30 02:18:53.242 CFY [sharedsshkey_pgrs_pjaxd1.create] Sending task 'sshkeyshare.keyshare_plugin.generate'
2021-04-30 02:18:57.583 CFY [sharedsshkey_pgrs_pjaxd1.create] Task succeeded 'sshkeyshare.keyshare_plugin.generate'
2021-04-30 02:18:57.698 CFY [sharedsshkey_pgrs_pjaxd1] Node instance created
2021-04-30 02:18:58.015 CFY [sharedsshkey_pgrs_pjaxd1] Configuring node instance: nothing to do
2021-04-30 02:18:58.078 CFY [sharedsshkey_pgrs_pjaxd1] Starting node instance: nothing to do
2021-04-30 02:18:58.193 CFY [sharedsshkey_pgrs_pjaxd1] Poststarting node instance: nothing to do
2021-04-30 02:18:58.296 CFY [sharedsshkey_pgrs_pjaxd1] Node instance started
2021-04-30 02:18:58.950 CFY [pgaas_cluster_zpkfpr] Validating node instance before creation: nothing to do
2021-04-30 02:18:59.057 CFY [pgaas_cluster_zpkfpr] Precreating node instance: nothing to do
2021-04-30 02:18:59.312 CFY [pgaas_cluster_zpkfpr] Creating node instance
2021-04-30 02:18:59.510 CFY [pgaas_cluster_zpkfpr.create] Sending task 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-30 02:19:03.893 LOG [pgaas_cluster_zpkfpr.create] WARNING: add_pgaas_cluster() invoked
2021-04-30 02:19:04.113 LOG [pgaas_cluster_zpkfpr.create] WARNING: All done
2021-04-30 02:19:06.863 CFY [pgaas_cluster_zpkfpr.create] Task succeeded 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-04-30 02:19:06.970 CFY [pgaas_cluster_zpkfpr] Node instance created
2021-04-30 02:19:07.261 CFY [pgaas_cluster_zpkfpr] Configuring node instance: nothing to do
2021-04-30 02:19:07.371 CFY [pgaas_cluster_zpkfpr] Starting node instance: nothing to do
2021-04-30 02:19:07.449 CFY [pgaas_cluster_zpkfpr] Poststarting node instance: nothing to do
2021-04-30 02:19:07.566 CFY [pgaas_cluster_zpkfpr] Node instance started
2021-04-30 02:19:08.048 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment pgaas_initdb
* Run 'cfy events list 462030c8-b1b8-48d0-88a9-b0bce2b4dade' to retrieve the execution's events/logs
+ deploy tcagen2 k8s-tcagen2.yaml k8s-tcagen2-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=tcagen2'
+ deploy ves-tls k8s-ves.yaml k8s-ves-inputs-tls.yaml
+ set +e
+ cm_hasany 'blueprints?id=ves-tls'
+ deploy prh k8s-prh.yaml k8s-prh-inputs.yaml
+ 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'
++ 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
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=ves-tls&_include=id'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=hv-ves&_include=id'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_rules&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b prh /blueprints/k8s-prh.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b hv-ves /blueprints/k8s-hv-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_rules /blueprints/k8s-holmes-rules.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b ves-tls /blueprints/k8s-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b tcagen2 /blueprints/k8s-tcagen2.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-prh.yaml...
Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-prh.yaml |#######################---------------------------------| 41.44%
k8s-prh.yaml |##############################################----------| 82.87%
k8s-prh.yaml |########################################################| 100.0%Uploading blueprint /blueprints/k8s-hv-ves.yaml...
k8s-holmes-rules.... |####################----------------------------| 41.41%
k8s-holmes-rules.... |########################################--------| 82.83%
k8s-holmes-rules.... |################################################| 100.0%
k8s-hv-ves.yaml |######################-------------------------------| 41.43%
k8s-hv-ves.yaml |############################################---------| 82.85%
k8s-hv-ves.yaml |#####################################################| 100.0%Uploading blueprint /blueprints/k8s-ves.yaml...
Uploading blueprint /blueprints/k8s-tcagen2.yaml...
k8s-ves.yaml |#######################---------------------------------| 41.44%
k8s-ves.yaml |##############################################----------| 82.88%
k8s-ves.yaml |########################################################| 100.0%
k8s-tcagen2.yaml |######################------------------------------| 41.42%
k8s-tcagen2.yaml |###########################################---------| 82.85%
k8s-tcagen2.yaml |####################################################| 100.0%
Blueprint uploaded. The blueprint's id is prh
+ cm_hasany 'deployments?id=prh'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=prh&_include=id'
++ /bin/jq .metadata.pagination.total
Blueprint uploaded. The blueprint's id is tcagen2
+ cm_hasany 'deployments?id=tcagen2'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=tcagen2&_include=id'
++ /bin/jq .metadata.pagination.total
Blueprint uploaded. The blueprint's id is hv-ves
+ 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
Blueprint uploaded. The blueprint's id is holmes_rules
+ cm_hasany 'deployments?id=hv-ves'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=hv-ves&_include=id'
++ /bin/jq .metadata.pagination.total
Blueprint uploaded. The blueprint's id is ves-tls
+ cm_hasany 'deployments?id=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-tcagen2-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-tcagen2-inputs.yaml
+ cfy deployments create -b tcagen2 -i/inputs/k8s-tcagen2-inputs.yaml tcagen2
+ cm_hasany 'deployments?id=ves-tls'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=ves-tls&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-hv_ves-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-hv_ves-inputs.yaml
+ cfy deployments create -b hv-ves -i/inputs/k8s-hv_ves-inputs.yaml hv-ves
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-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
+ 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
/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
Creating new deployment from blueprint prh...
Creating new deployment from blueprint tcagen2...
Creating new deployment from blueprint hv-ves...
Creating new deployment from blueprint holmes_rules...
Creating new deployment from blueprint ves-tls...
Deployment created. The deployment's id is prh
+ cm_hasany 'node-instances?deployment_id=prh&state=uninitialized&state=deleted'
++ /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/node-instances?deployment_id=prh&state=uninitialized&state=deleted&_include=id'
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d prh install
Deployment created. The deployment's id is tcagen2
Deployment created. The deployment's id is hv-ves
Deployment created. The deployment's id is holmes_rules
Deployment created. The deployment's id is ves-tls
/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
+ 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'
+ 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
++ /bin/jq .metadata.pagination.total
+ cm_hasany 'node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ cm_hasany 'node-instances?deployment_id=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
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_rules install
Executing workflow `install` on deployment `prh` [timeout=900 seconds]
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d ves-tls install
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d hv-ves install
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d tcagen2 install
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
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
2021-04-30 02:19:20.839 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:19:20.845 CFY Installing deployment and workflow plugins
2021-04-30 02:19:20.944 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:20.959 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:22.202 LOG INFO: Installing plugin: k8s
Executing workflow `install` on deployment `holmes_rules` [timeout=900 seconds]
Executing workflow `install` on deployment `ves-tls` [timeout=900 seconds]
Executing workflow `install` on deployment `hv-ves` [timeout=900 seconds]
Executing workflow `install` on deployment `tcagen2` [timeout=900 seconds]
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
Deployment environment creation is pending...
2021-04-30 02:19:24.489 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:24.490 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:24.604 CFY Creating deployment work directory
2021-04-30 02:19:25.091 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-30 02:19:26.915 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:19:26.921 CFY Installing deployment and workflow plugins
2021-04-30 02:19:27.022 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:27.036 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:26.882 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:19:26.888 CFY Installing deployment and workflow plugins
2021-04-30 02:19:26.988 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:27.002 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:26.927 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:19:26.933 CFY Installing deployment and workflow plugins
2021-04-30 02:19:27.033 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:27.050 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:26.913 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:19:26.921 CFY Installing deployment and workflow plugins
2021-04-30 02:19:27.020 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:27.036 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:29.590 LOG INFO: Installing plugin: k8s
2021-04-30 02:19:29.584 LOG INFO: Installing plugin: pgaas
2021-04-30 02:19:29.371 LOG INFO: Installing plugin: k8s
2021-04-30 02:19:29.387 LOG INFO: Installing plugin: k8s
2021-04-30 02:19:33.062 CFY Starting 'install' workflow execution
2021-04-30 02:19:32.099 LOG INFO: Using existing installation of managed plugin: 692855b3-24ac-4d74-a2d0-971457181dc8 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:32.100 LOG INFO: Installing plugin: k8s
2021-04-30 02:19:31.874 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:31.875 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:31.989 CFY Creating deployment work directory
2021-04-30 02:19:32.318 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-30 02:19:31.792 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:31.794 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:31.908 CFY Creating deployment work directory
2021-04-30 02:19:32.181 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-30 02:19:31.801 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:31.802 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:31.916 CFY Creating deployment work directory
2021-04-30 02:19:33.476 CFY [prh_oukxae] Validating node instance before creation: nothing to do
2021-04-30 02:19:33.579 CFY [prh_oukxae] Precreating node instance: nothing to do
2021-04-30 02:19:33.695 CFY [prh_oukxae] Creating node instance
2021-04-30 02:19:32.894 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:19:32.895 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:19:32.899 CFY Creating deployment work directory
2021-04-30 02:19:33.197 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-30 02:19:34.035 CFY [prh_oukxae.create] Sending task 'k8splugin.create_for_components'
2021-04-30 02:19:41.489 CFY Starting 'install' workflow execution
2021-04-30 02:19:41.716 CFY Starting 'install' workflow execution
2021-04-30 02:19:43.404 CFY [ves_gpxyhl] Validating node instance before creation: nothing to do
2021-04-30 02:19:43.590 CFY [ves_gpxyhl] Precreating node instance: nothing to do
2021-04-30 02:19:44.558 CFY Starting 'install' workflow execution
2021-04-30 02:19:45.189 CFY [pgaasvm_z2565z] Validating node instance before creation: nothing to do
2021-04-30 02:19:45.295 CFY [pgaasvm_z2565z] Precreating node instance: nothing to do
2021-04-30 02:19:45.589 CFY [pgaasvm_z2565z] Creating node instance
2021-04-30 02:19:42.902 CFY [docker.tca_iw5ppq] Validating node instance before creation: nothing to do
2021-04-30 02:19:43.113 CFY [docker.tca_iw5ppq] Precreating node instance: nothing to do
2021-04-30 02:19:43.615 CFY [docker.tca_iw5ppq] Creating node instance
2021-04-30 02:19:42.278 CFY Starting 'install' workflow execution
2021-04-30 02:19:43.682 CFY [hv-ves_h8vjtq] Validating node instance before creation: nothing to do
2021-04-30 02:19:43.786 CFY [hv-ves_h8vjtq] Precreating node instance: nothing to do
2021-04-30 02:19:43.882 CFY [hv-ves_h8vjtq] Creating node instance
2021-04-30 02:19:44.133 CFY [ves_gpxyhl] Creating node instance
2021-04-30 02:19:44.361 CFY [ves_gpxyhl.create] Sending task 'k8splugin.create_for_components'
2021-04-30 02:19:43.849 CFY [docker.tca_iw5ppq.create] Sending task 'k8splugin.create_for_components'
2021-04-30 02:19:45.786 CFY [pgaasvm_z2565z.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-30 02:19:44.500 CFY [hv-ves_h8vjtq.create] Sending task 'k8splugin.create_for_components'
2021-04-30 02:19:56.294 LOG [ves_gpxyhl.create] INFO: Added config for dcae-ves-collector
2021-04-30 02:19:56.294 LOG [ves_gpxyhl.create] INFO: Done setting up: dcae-ves-collector
2021-04-30 02:19:59.090 CFY [ves_gpxyhl.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:19:56.294 LOG [docker.tca_iw5ppq.create] INFO: Added config for dcae-tcagen2
2021-04-30 02:19:56.294 LOG [docker.tca_iw5ppq.create] INFO: Done setting up: dcae-tcagen2
2021-04-30 02:19:59.186 CFY [docker.tca_iw5ppq.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:19:53.009 LOG [pgaasvm_z2565z.create] WARNING: create_database(holmes)
2021-04-30 02:19:55.740 LOG [hv-ves_h8vjtq.create] INFO: Added config for dcae-hv-ves-collector
2021-04-30 02:19:55.741 LOG [hv-ves_h8vjtq.create] INFO: Done setting up: dcae-hv-ves-collector
2021-04-30 02:19:59.526 CFY [hv-ves_h8vjtq.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:19:53.411 LOG [prh_oukxae.create] INFO: Added config for dcae-prh
2021-04-30 02:19:53.411 LOG [prh_oukxae.create] INFO: Done setting up: dcae-prh
2021-04-30 02:19:59.879 CFY [prh_oukxae.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:19:59.250 CFY [ves_gpxyhl] Node instance created
2021-04-30 02:19:59.321 CFY [ves_gpxyhl] Configuring node instance: nothing to do
2021-04-30 02:19:59.571 CFY [ves_gpxyhl] Starting node instance
2021-04-30 02:19:59.679 CFY [ves_gpxyhl.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:19:59.238 CFY [docker.tca_iw5ppq] Node instance created
2021-04-30 02:19:59.540 CFY [docker.tca_iw5ppq] Configuring node instance: nothing to do
2021-04-30 02:19:59.895 CFY [docker.tca_iw5ppq] Starting node instance
2021-04-30 02:20:00.271 CFY [docker.tca_iw5ppq.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:19:59.998 CFY [hv-ves_h8vjtq] Node instance created
2021-04-30 02:20:00.298 CFY [hv-ves_h8vjtq] Configuring node instance: nothing to do
2021-04-30 02:20:00.659 CFY [hv-ves_h8vjtq] Starting node instance
2021-04-30 02:20:00.897 CFY [hv-ves_h8vjtq.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:20:00.383 CFY [prh_oukxae] Node instance created
2021-04-30 02:20:00.544 CFY [prh_oukxae] Configuring node instance: nothing to do
2021-04-30 02:20:00.816 CFY [prh_oukxae] Starting node instance
2021-04-30 02:20:00.993 CFY [prh_oukxae.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:20:06.492 LOG [ves_gpxyhl.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_gpxyhl', '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-04-30 02:20:06.492 LOG [ves_gpxyhl.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:20:06.506 LOG [ves_gpxyhl.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:20:07.293 LOG [docker.tca_iw5ppq.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_iw5ppq', 'cfynode': u'docker.tca'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/logs/dcae-analytics-tca'}, 'ports': [u'9091:0'], 'k8s_location': u'central'}
2021-04-30 02:20:07.294 LOG [docker.tca_iw5ppq.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:20:07.304 LOG [docker.tca_iw5ppq.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:19:55.698 LOG [pgaasvm_z2565z.create] WARNING: All done
2021-04-30 02:20:08.707 CFY [pgaasvm_z2565z.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-30 02:20:08.296 LOG [hv-ves_h8vjtq.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_h8vjtq', 'cfynode': u'hv-ves'}, 'external_cert': {u'external_cert_directory': u'/etc/ves-hv/ssl', u'external_certificate_parameters': {u'common_name': u'dcae-hv-ves-collector', u'sans': u'dcae-hv-ves-collector:hv-ves-collector:hv-ves'}, u'cert_type': u'JKS', u'ca_name': u'RA', u'use_external_tls': False}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/var/log/ONAP/dcae-hv-ves-collector'}, 'ports': [u'6061:30222'], 'k8s_location': u'central'}
2021-04-30 02:20:08.296 LOG [hv-ves_h8vjtq.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:20:08.035 LOG [prh_oukxae.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_oukxae', '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-04-30 02:20:08.035 LOG [prh_oukxae.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:20:08.048 LOG [prh_oukxae.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:20:07.202 LOG [ves_gpxyhl.start] INFO: k8s deployment initiated successfully for dcae-ves-collector: {'services': ['dcae-ves-collector', 'xdcae-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-ves-collector'}
2021-04-30 02:20:07.202 LOG [ves_gpxyhl.start] INFO: Waiting up to 1800 secs for dcae-ves-collector to become ready
2021-04-30 02:20:07.617 LOG [docker.tca_iw5ppq.start] INFO: k8s deployment initiated successfully for dcae-tcagen2: {'services': ['dcae-tcagen2'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-tcagen2'}
2021-04-30 02:20:07.617 LOG [docker.tca_iw5ppq.start] INFO: Waiting up to 1800 secs for dcae-tcagen2 to become ready
2021-04-30 02:20:08.969 CFY [pgaasvm_z2565z] Node instance created
2021-04-30 02:20:09.125 CFY [pgaasvm_z2565z] Configuring node instance: nothing to do
2021-04-30 02:20:09.235 CFY [pgaasvm_z2565z] Starting node instance: nothing to do
2021-04-30 02:20:09.315 CFY [pgaasvm_z2565z] Poststarting node instance: nothing to do
2021-04-30 02:20:08.378 LOG [hv-ves_h8vjtq.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:20:08.496 LOG [hv-ves_h8vjtq.start] INFO: k8s deployment initiated successfully for dcae-hv-ves-collector: {'services': ['dcae-hv-ves-collector', 'xdcae-hv-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-hv-ves-collector'}
2021-04-30 02:20:08.497 LOG [hv-ves_h8vjtq.start] INFO: Waiting up to 1800 secs for dcae-hv-ves-collector to become ready
2021-04-30 02:20:08.163 LOG [prh_oukxae.start] INFO: k8s deployment initiated successfully for dcae-prh: {'services': ['dcae-prh'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-prh'}
2021-04-30 02:20:08.164 LOG [prh_oukxae.start] INFO: Waiting up to 1800 secs for dcae-prh to become ready
2021-04-30 02:20:09.419 CFY [pgaasvm_z2565z] Node instance started
2021-04-30 02:20:10.134 CFY [holmesrules_gvioxy] Validating node instance before creation: nothing to do
2021-04-30 02:20:10.204 CFY [holmesrules_gvioxy] Precreating node instance: nothing to do
2021-04-30 02:20:10.311 CFY [holmesrules_gvioxy] Creating node instance
2021-04-30 02:20:15.138 LOG [holmesrules_gvioxy.create] INFO: Added config for holmes-rule-mgmt
2021-04-30 02:20:15.138 LOG [holmesrules_gvioxy.create] INFO: Done setting up: holmes-rule-mgmt
2021-04-30 02:20:15.138 LOG [holmesrules_gvioxy.create] INFO: Done setting up: holmes-rule-mgmt
2021-04-30 02:20:16.987 CFY [holmesrules_gvioxy.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:20:17.177 CFY [holmesrules_gvioxy] Node instance created
2021-04-30 02:20:17.333 CFY [holmesrules_gvioxy] Configuring node instance: nothing to do
2021-04-30 02:20:17.403 CFY [holmesrules_gvioxy] Starting node instance
2021-04-30 02:20:17.761 CFY [holmesrules_gvioxy.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:20:21.983 LOG [holmesrules_gvioxy.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'7067e4c3ee6982f73b36d610159e40b47bdbcab91824a1940508e260158f100d'}, 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'7067e4c3ee6982f73b36d610159e40b47bdbcab91824a1940508e260158f100d'}, 'labels': {'cfydeployment': u'holmes_rules', 'cfynodeinstance': u'holmesrules_gvioxy', 'cfynode': u'holmesrules'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, 'resource_config': {u'requests': {u'cpu': u'250m', u'memory': u'256Mi'}, u'limits': {u'cpu': u'250m', u'memory': u'1024Mi'}}, 'volumes': [], 'log_info': {}, 'ports': [u'9101:0', u'9104:0'], 'k8s_location': u'central'}
2021-04-30 02:20:21.983 LOG [holmesrules_gvioxy.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:20:21.997 LOG [holmesrules_gvioxy.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:20:22.095 LOG [holmesrules_gvioxy.start] INFO: k8s deployment initiated successfully for holmes-rule-mgmt: {'services': ['holmes-rule-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-rule-mgmt'}
2021-04-30 02:20:22.096 LOG [holmesrules_gvioxy.start] INFO: Waiting up to 1800 secs for holmes-rule-mgmt to become ready
2021-04-30 02:21:17.601 LOG [hv-ves_h8vjtq.start] INFO: k8s deployment is ready for: dcae-hv-ves-collector
2021-04-30 02:21:17.601 LOG [hv-ves_h8vjtq.start] INFO: Done starting: dcae-hv-ves-collector
2021-04-30 02:21:21.618 CFY [hv-ves_h8vjtq.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:21:21.709 CFY [hv-ves_h8vjtq] Poststarting node instance: nothing to do
2021-04-30 02:21:21.944 CFY [hv-ves_h8vjtq] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-30 02:21:22.338 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment hv-ves
* Run 'cfy events list 763957d5-5ea4-41cc-a781-8205b7e2c2dd' to retrieve the execution's events/logs
2021-04-30 02:21:36.421 LOG [docker.tca_iw5ppq.start] INFO: k8s deployment is ready for: dcae-tcagen2
2021-04-30 02:21:36.422 LOG [docker.tca_iw5ppq.start] INFO: Done starting: dcae-tcagen2
2021-04-30 02:21:37.263 CFY [docker.tca_iw5ppq.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:21:37.370 CFY [docker.tca_iw5ppq] Poststarting node instance: nothing to do
2021-04-30 02:21:37.452 CFY [docker.tca_iw5ppq] Node instance started
2021-04-30 02:21:37.772 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment tcagen2
* Run 'cfy events list dbba6813-243f-4307-b996-5afa12eb93e7' to retrieve the execution's events/logs
2021-04-30 02:21:41.045 LOG [prh_oukxae.start] INFO: k8s deployment is ready for: dcae-prh
2021-04-30 02:21:41.045 LOG [prh_oukxae.start] INFO: Done starting: dcae-prh
2021-04-30 02:21:42.063 CFY [prh_oukxae.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
Execution ended, waiting 3 seconds for additional log messages
2021-04-30 02:21:42.181 CFY [prh_oukxae] Poststarting node instance: nothing to do
Execution ended, but no end log message received. Some logs might not have been displayed.
Finished executing workflow install on deployment prh
* Run 'cfy events list b4ce81e3-c631-441b-ad92-47e9ace1ad63' to retrieve the execution's events/logs
2021-04-30 02:22:52.235 LOG [ves_gpxyhl.start] INFO: k8s deployment is ready for: dcae-ves-collector
2021-04-30 02:22:52.235 LOG [ves_gpxyhl.start] INFO: Done starting: dcae-ves-collector
2021-04-30 02:22:55.644 CFY [ves_gpxyhl.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:22:55.685 CFY [ves_gpxyhl] Poststarting node instance: nothing to do
2021-04-30 02:22:55.765 CFY [ves_gpxyhl] Node instance started
2021-04-30 02:22:56.210 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment ves-tls
* Run 'cfy events list 50c3a042-6895-4431-ad76-1b2d7c074b83' to retrieve the execution's events/logs
2021-04-30 02:23:17.625 LOG [holmesrules_gvioxy.start] INFO: k8s deployment is ready for: holmes-rule-mgmt
2021-04-30 02:23:17.626 LOG [holmesrules_gvioxy.start] INFO: Done starting: holmes-rule-mgmt
2021-04-30 02:23:18.556 CFY [holmesrules_gvioxy.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
Execution ended, waiting 3 seconds for additional log messages
2021-04-30 02:23:18.594 CFY [holmesrules_gvioxy] Poststarting node instance: nothing to do
2021-04-30 02:23:18.802 CFY [holmesrules_gvioxy] Node instance started
2021-04-30 02:23:19.081 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_rules
* Run 'cfy events list 0e314ea4-4c99-4ea0-b08c-8242e118edb8' to retrieve the execution's events/logs
+ deploy holmes_engine k8s-holmes-engine.yaml k8s-holmes_engine-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=holmes_engine'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_engine&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b holmes_engine /blueprints/k8s-holmes-engine.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Uploading blueprint /blueprints/k8s-holmes-engine.yaml...
k8s-holmes-engine... |####################----------------------------| 41.41%
k8s-holmes-engine... |########################################--------| 82.83%
k8s-holmes-engine... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is holmes_engine
+ cm_hasany 'deployments?id=holmes_engine'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=holmes_engine&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-holmes_engine-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-holmes_engine-inputs.yaml
+ cfy deployments create -b holmes_engine -i/inputs/k8s-holmes_engine-inputs.yaml holmes_engine
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint holmes_engine...
Deployment created. The deployment's id is holmes_engine
+ cm_hasany 'node-instances?deployment_id=holmes_engine&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=holmes_engine&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_engine install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `holmes_engine` [timeout=900 seconds]
Deployment environment creation is pending...
2021-04-30 02:23:28.507 CFY Starting 'create_deployment_environment' workflow execution
2021-04-30 02:23:28.516 CFY Installing deployment and workflow plugins
2021-04-30 02:23:28.614 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-04-30 02:23:28.631 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-04-30 02:23:29.699 LOG INFO: Installing plugin: pgaas
2021-04-30 02:23:30.352 LOG INFO: Using existing installation of managed plugin: 692855b3-24ac-4d74-a2d0-971457181dc8 [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:23:30.352 LOG INFO: Installing plugin: k8s
2021-04-30 02:23:31.064 LOG INFO: Using existing installation of managed plugin: c04775b5-ea86-4412-83cd-54cffa9acd21 [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-04-30 02:23:31.065 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-04-30 02:23:31.129 CFY Creating deployment work directory
2021-04-30 02:23:31.408 CFY 'create_deployment_environment' workflow execution succeeded
2021-04-30 02:23:37.021 CFY Starting 'install' workflow execution
2021-04-30 02:23:37.585 CFY [pgaasvm_6v56bb] Validating node instance before creation: nothing to do
2021-04-30 02:23:37.694 CFY [pgaasvm_6v56bb] Precreating node instance: nothing to do
2021-04-30 02:23:37.942 CFY [pgaasvm_6v56bb] Creating node instance
2021-04-30 02:23:38.132 CFY [pgaasvm_6v56bb.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-04-30 02:23:42.605 LOG [pgaasvm_6v56bb.create] WARNING: create_database(holmes)
2021-04-30 02:23:48.047 CFY [pgaasvm_6v56bb.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-04-30 02:23:48.238 CFY [pgaasvm_6v56bb] Node instance created
2021-04-30 02:23:48.403 CFY [pgaasvm_6v56bb] Configuring node instance: nothing to do
2021-04-30 02:23:48.519 CFY [pgaasvm_6v56bb] Starting node instance: nothing to do
2021-04-30 02:23:48.596 CFY [pgaasvm_6v56bb] Poststarting node instance: nothing to do
2021-04-30 02:23:48.706 CFY [pgaasvm_6v56bb] Node instance started
2021-04-30 02:23:49.314 CFY [holmesengine_llkcrn] Validating node instance before creation: nothing to do
2021-04-30 02:23:56.540 LOG [holmesengine_llkcrn.create] INFO: Added config for holmes-engine-mgmt
2021-04-30 02:23:49.490 CFY [holmesengine_llkcrn] Creating node instance
2021-04-30 02:23:49.841 CFY [holmesengine_llkcrn.create] Sending task 'k8splugin.create_for_components'
2021-04-30 02:23:56.540 LOG [holmesengine_llkcrn.create] INFO: Added config for holmes-engine-mgmt
2021-04-30 02:23:56.541 LOG [holmesengine_llkcrn.create] INFO: Done setting up: holmes-engine-mgmt
2021-04-30 02:24:00.260 CFY [holmesengine_llkcrn.create] Task succeeded 'k8splugin.create_for_components'
2021-04-30 02:24:00.345 CFY [holmesengine_llkcrn] Node instance created
2021-04-30 02:24:00.651 CFY [holmesengine_llkcrn] Configuring node instance: nothing to do
2021-04-30 02:24:00.885 CFY [holmesengine_llkcrn] Starting node instance
2021-04-30 02:24:01.086 CFY [holmesengine_llkcrn.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:24:05.082 LOG [holmesengine_llkcrn.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'7067e4c3ee6982f73b36d610159e40b47bdbcab91824a1940508e260158f100d'}, 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'7067e4c3ee6982f73b36d610159e40b47bdbcab91824a1940508e260158f100d'}, 'labels': {'cfydeployment': u'holmes_engine', 'cfynodeinstance': u'holmesengine_llkcrn', '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-04-30 02:24:05.082 LOG [holmesengine_llkcrn.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-04-30 02:24:05.092 LOG [holmesengine_llkcrn.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-04-30 02:24:05.248 LOG [holmesengine_llkcrn.start] INFO: k8s deployment initiated successfully for holmes-engine-mgmt: {'services': ['holmes-engine-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-engine-mgmt'}
2021-04-30 02:24:05.249 LOG [holmesengine_llkcrn.start] INFO: Waiting up to 1800 secs for holmes-engine-mgmt to become ready
2021-04-30 02:25:10.242 LOG [holmesengine_llkcrn.start] INFO: k8s deployment is ready for: holmes-engine-mgmt
2021-04-30 02:25:10.243 LOG [holmesengine_llkcrn.start] INFO: Done starting: holmes-engine-mgmt
2021-04-30 02:25:11.159 CFY [holmesengine_llkcrn.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-04-30 02:25:11.267 CFY [holmesengine_llkcrn] Poststarting node instance: nothing to do
2021-04-30 02:25:11.345 CFY [holmesengine_llkcrn] Node instance started
Execution ended, waiting 3 seconds for additional log messages
2021-04-30 02:25:11.857 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_engine
* Run 'cfy events list 111004f8-afed-44b1-8ef7-01a1f9b8f54a' to retrieve the execution's events/logs
+ cfy deployments list
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Listing all deployments...
Deployments:
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| id | blueprint_id | created_at | updated_at | visibility | tenant_name | created_by | site_name |
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| pgaas_initdb | pgaas_initdb | 2021-04-30 02:18:40.518 | 2021-04-30 02:18:40.518 | tenant | default_tenant | admin | |
| prh | prh | 2021-04-30 02:19:18.103 | 2021-04-30 02:19:18.103 | tenant | default_tenant | admin | |
| tcagen2 | tcagen2 | 2021-04-30 02:19:18.492 | 2021-04-30 02:19:18.492 | tenant | default_tenant | admin | |
| hv-ves | hv-ves | 2021-04-30 02:19:18.518 | 2021-04-30 02:19:18.518 | tenant | default_tenant | admin | |
| holmes_rules | holmes_rules | 2021-04-30 02:19:18.705 | 2021-04-30 02:19:18.705 | tenant | default_tenant | admin | |
| ves-tls | ves-tls | 2021-04-30 02:19:18.802 | 2021-04-30 02:19:18.802 | tenant | default_tenant | admin | |
| holmes_engine | holmes_engine | 2021-04-30 02:23:26.459 | 2021-04-30 02:23:26.459 | tenant | default_tenant | admin | |
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
Showing 7 of 7 deployments
+ . /scripts/inventory.sh
++ INVENTORY=https://inventory:8080/dcae-service-types
++ OWNER=dcaeorch
++ COMPONENT=dcae
++ APPLICATION=DCAE
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-bbs-event-processor.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-bbs-event-processor.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-bbs-event-processor.yaml .yaml
++ flatten /blueprints/k8s-bbs-event-processor.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n'
++ echo '# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n'
+ echo '
{
"vnfTypes": [],
"owner": "dcaeorch",
"typeVersion": 2104300225,
"typeName": "k8s-bbs-event-processor",
"component": "dcae",
"application": "DCAE",
"blueprintTemplate": "# ============LICENSE_START====================================================
\n# =============================================================================
\n# Copyright (c) 2019 AT&T, NOKIA
\n# =============================================================================
\n# Licensed under the Apache License, Version 2.0 (the \"License\");
\n# you may not use this file except in compliance with the License.
\n# You may obtain a copy of the License at
\n#
\n# http://www.apache.org/licenses/LICENSE-2.0
\n#
\n# Unless required by applicable law or agreed to in writing, software
\n# distributed under the License is distributed on an \"AS IS\" BASIS,
\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\n# See the License for the specific language governing permissions and
\n# limitations under the License.
\n# ============LICENSE_END======================================================
\n
\ntosca_definitions_version: cloudify_dsl_1_3
\n
\nimports:
\n - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
\n - plugin:k8splugin?version=3.4.2
\n
\ninputs:
\n aai_enrichment_host:
\n type: string
\n default: \"aai.onap\"
\n aai_enrichment_port:
\n type: integer
\n default: 8443
\n aai_enrichment_protocol:
\n type: string
\n default: \"https\"
\n aai_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with AAI
\n default: true
\n tag_version:
\n type: string
\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.0.0\"
\n replicas:
\n type: integer
\n description: number of instances
\n default: 1
\n pnf_reregistration_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.PNF_UPDATE\"
\n cpe_authentication_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION\"
\n close_loop_url:
\n type: string
\n default: \"https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT\"
\n application_policy_version:
\n description: Policy version value for building CL events
\n type: string
\n default: \"1.0.0.5\"
\n application_cl_target_type:
\n description: Close Loop target type value for building CL events
\n type: string
\n default: \"VM\"
\n application_cl_event_status:
\n description: Close Loop event status value for building CL events
\n type: string
\n default: \"ONSET\"
\n application_cl_version:
\n description: Close Loop version value for building CL events
\n type: string
\n default: \"1.0.2\"
\n application_cl_target:
\n description: Close Loop target value for building CL events
\n type: string
\n default: \"vserver.vserver-name\"
\n application_cl_originator:
\n description: Close Loop originator value for building CL events
\n type: string
\n default: \"DCAE-BBS-ep\"
\n application_rereg_policy_scope:
\n description: Policy Scope value for building PNF relocation CL event
\n type: string
\n default: \"policyScopeReReg\"
\n application_rereg_cl_control_name:
\n description: Close Loop control name value for building PNF relocation CL event
\n type: string
\n default: \"clControlNameReReg\"
\n application_cpeAuth_policy_scope:
\n description: Policy Scope value for building CPE Authentication CL event
\n type: string
\n default: \"policyScopeCpeAuth\"
\n application_cpeAuth_cl_control_name:
\n description: Close Loop control name value for building CPE Authentication CL event
\n type: string
\n default: \"clControlNameCpeAuth\"
\n application_cbs_polling_interval_sec:
\n type: integer
\n default: 120
\n application_logging_level:
\n type: string
\n default: \"INFO\"
\n dmaap_username:
\n type: string
\n default: \"admin\"
\n dmaap_password:
\n type: string
\n default: \"admin\"
\n dmaap_consumer_id:
\n type: string
\n default: \"c12\"
\n dmaap_consumer_group:
\n type: string
\n default: \"OpenDcae-c12\"
\n dmaap_secure_enable_cert:
\n type: boolean
\n description: enable certificates-based connection with DMaaP
\n default: true
\n internal_port:
\n type: string
\n description: Internal port on which BBS-ep is exposed
\n default: \"8100\"
\n external_port:
\n type: string
\n description: External port on which BBS-ep is exposed
\n default: \"30413\"
\nnode_templates:
\n bbs-event-processor:
\n type: dcae.nodes.ContainerizedServiceComponent
\n properties:
\n application_config:
\n streams_subscribes:
\n pnf_reregistration:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: pnf_reregistration_url }
\n cpe_authentication:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: cpe_authentication_url }
\n streams_publishes:
\n close_loop:
\n type: message_router
\n aaf_username: { get_input: dmaap_username }
\n aaf_password: { get_input: dmaap_password }
\n dmaap_info:
\n topic_url: { get_input: close_loop_url }
\n dmaap.protocol: \"https\"
\n dmaap.contentType: \"application/json\"
\n dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
\n dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
\n dmaap.messageLimit: -1
\n dmaap.timeoutMs: -1
\n aai.host: { get_input: aai_enrichment_host }
\n aai.port: { get_input: aai_enrichment_port }
\n aai.protocol: { get_input: aai_enrichment_protocol }
\n aai.username: \"AAI\"
\n aai.password: \"AAI\"
\n aai.aaiIgnoreSslCertificateErrors: true
\n application.pipelinesPollingIntervalSec: 25
\n application.pipelinesTimeoutSec: 15
\n application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
\n application.policyVersion: { get_input: application_policy_version }
\n application.clTargetType: { get_input: application_cl_target_type }
\n application.clEventStatus: { get_input: application_cl_event_status }
\n application.clVersion: { get_input: application_cl_version }
\n application.clTarget: { get_input: application_cl_target }
\n application.clOriginator: { get_input: application_cl_originator }
\n application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
\n application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
\n application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
\n application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
\n application.reregistration.configKey: \"pnf_reregistration\"
\n application.cpeAuth.configKey: \"cpe_authentication\"
\n application.closeLoop.configKey: \"close_loop\"
\n application.loggingLevel: { get_input: application_logging_level }
\n application.ssl.keyStorePath: \"/opt/app/bbs-event-processor/etc/cert/cert.jks\"
\n application.ssl.keyStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/jks.pass\"
\n application.ssl.trustStorePath: \"/opt/app/bbs-event-processor/etc/cert/trust.jks\"
\n application.ssl.trustStorePasswordPath: \"/opt/app/bbs-event-processor/etc/cert/trust.pass\"
\n application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
\n application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
\n docker_config:
\n healthcheck:
\n endpoint: /heartbeat
\n interval: 180s
\n timeout: 5s
\n type: http
\n image:
\n { get_input: tag_version }
\n replicas: {get_input: replicas}
\n service_component_type: '\''bbs-event-processor'\''
\n log_info:
\n log_directory: \"/opt/app/bbs-event-processor/logs\"
\n tls_info:
\n cert_directory: '\''/opt/app/bbs-event-processor/etc/cert'\''
\n use_tls: true
\n interfaces:
\n cloudify.interfaces.lifecycle:
\n start:
\n inputs:
\n ports:
\n - concat: [{get_input: internal_port},\":\",{get_input: external_port}]
\n"
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1307 100 47 100 1260 227 6104 --:--:-- --:--:-- --:--:-- 6116
+ 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
++ 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-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": 2104300225,
"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: <