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.37...
* Connected to consul-server (10.233.76.37) 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: Sat, 22 May 2021 02:32:15 GMT
< Content-Length: 4
<
{ [data not shown]
100 124 100 4 100 120 24 727 --:--:-- --:--:-- --:--:-- 731
* 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.37...
* Connected to consul-server (10.233.76.37) 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: Sat, 22 May 2021 02:32:15 GMT
< Content-Length: 4
<
{ [data not shown]
100 1518 100 4 100 1514 8 3281 --:--:-- --:--:-- --:--:-- 3284
* Connection #0 to host consul-server left intact
+ trap - ERR
+ set +e
+ deploy pgaas_initdb k8s-pgaas-initdb.yaml k8s-pgaas-initdb-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b pgaas_initdb /blueprints/k8s-pgaas-initdb.yaml
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
truetrueUploading blueprint /blueprints/k8s-pgaas-initdb.yaml...
k8s-pgaas-initdb.... |####################----------------------------| 41.42%
k8s-pgaas-initdb.... |########################################--------| 82.84%
k8s-pgaas-initdb.... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is pgaas_initdb
+ cm_hasany 'deployments?id=pgaas_initdb'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=pgaas_initdb&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-pgaas-initdb-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-pgaas-initdb-inputs.yaml
+ cfy deployments create -b pgaas_initdb -i/inputs/k8s-pgaas-initdb-inputs.yaml pgaas_initdb
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint pgaas_initdb...
Deployment created. The deployment's id is pgaas_initdb
+ cm_hasany 'node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=pgaas_initdb&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d pgaas_initdb install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `pgaas_initdb` [timeout=900 seconds]
Deployment environment creation is in progress...
2021-05-22 02:32:22.103 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:32:22.109 CFY Installing deployment and workflow plugins
2021-05-22 02:32:22.208 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:32:22.223 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:32:23.163 LOG INFO: Installing plugin: pgaas
2021-05-22 02:32:23.806 LOG INFO: Using existing installation of managed plugin: d2e922cc-c28c-46d3-b6e9-5bd90595511b [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:32:23.807 LOG INFO: Installing plugin: ssh_keyshare
2021-05-22 02:32:31.167 CFY Starting 'install' workflow execution
2021-05-22 02:32:31.695 CFY [sharedsshkey_pgrs_mydpjc] Validating node instance before creation: nothing to do
2021-05-22 02:32:31.792 CFY [sharedsshkey_pgrs_mydpjc] Precreating node instance: nothing to do
2021-05-22 02:32:32.048 CFY [sharedsshkey_pgrs_mydpjc] Creating node instance
2021-05-22 02:32:32.155 CFY [sharedsshkey_pgrs_mydpjc.create] Sending task 'sshkeyshare.keyshare_plugin.generate'
2021-05-22 02:32:36.770 CFY [sharedsshkey_pgrs_mydpjc.create] Task succeeded 'sshkeyshare.keyshare_plugin.generate'
2021-05-22 02:32:37.057 CFY [sharedsshkey_pgrs_mydpjc] Node instance created
2021-05-22 02:32:37.160 CFY [sharedsshkey_pgrs_mydpjc] Configuring node instance: nothing to do
2021-05-22 02:32:37.273 CFY [sharedsshkey_pgrs_mydpjc] Starting node instance: nothing to do
2021-05-22 02:32:37.377 CFY [sharedsshkey_pgrs_mydpjc] Poststarting node instance: nothing to do
2021-05-22 02:32:42.645 LOG [pgaas_cluster_pu2adq.create] WARNING: add_pgaas_cluster() invoked
2021-05-22 02:32:42.645 LOG [pgaas_cluster_pu2adq.create] WARNING: add_pgaas_cluster() invoked
2021-05-22 02:32:38.395 CFY [pgaas_cluster_pu2adq] Creating node instance
2021-05-22 02:32:42.645 LOG [pgaas_cluster_pu2adq.create] WARNING: add_pgaas_cluster() invoked
2021-05-22 02:32:42.942 LOG [pgaas_cluster_pu2adq.create] WARNING: All done
2021-05-22 02:32:50.774 CFY [pgaas_cluster_pu2adq.create] Task succeeded 'pgaas.pgaas_plugin.add_pgaas_cluster'
2021-05-22 02:32:50.977 CFY [pgaas_cluster_pu2adq] Node instance created
Execution ended, waiting 3 seconds for additional log messages
2021-05-22 02:32:51.045 CFY [pgaas_cluster_pu2adq] Configuring node instance: nothing to do
2021-05-22 02:32:51.152 CFY [pgaas_cluster_pu2adq] Starting node instance: nothing to do
2021-05-22 02:32:51.261 CFY [pgaas_cluster_pu2adq] Poststarting node instance: nothing to do
2021-05-22 02:32:51.342 CFY [pgaas_cluster_pu2adq] Node instance started
2021-05-22 02:32:51.783 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment pgaas_initdb
* Run 'cfy events list 2c3da8b6-35d5-466b-a610-4fea128d452f' 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'
++ 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'
+ deploy prh k8s-prh.yaml k8s-prh-inputs.yaml
+ set +e
+ cm_hasany 'blueprints?id=prh'
++ /bin/jq .metadata.pagination.total
+ deploy holmes_rules k8s-holmes-rules.yaml k8s-holmes_rules-inputs.yaml
+ deploy hv-ves k8s-hv-ves.yaml k8s-hv_ves-inputs.yaml
+ set +e
+ set +e
+ cm_hasany 'blueprints?id=hv-ves'
+ cm_hasany 'blueprints?id=holmes_rules'
++ 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'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=ves-tls&_include=id'
++ /bin/jq .metadata.pagination.total
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=prh&_include=id'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/blueprints?id=holmes_rules&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b ves-tls /blueprints/k8s-ves.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b prh /blueprints/k8s-prh.yaml
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ cfy blueprints upload -b 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 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-tcagen2.yaml...
k8s-prh.yaml |#######################---------------------------------| 41.44%
k8s-prh.yaml |##############################################----------| 82.87%Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-prh.yaml |########################################################| 100.0%
k8s-tcagen2.yaml |######################------------------------------| 41.42%
k8s-tcagen2.yaml |###########################################---------| 82.85%
k8s-tcagen2.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%Uploading blueprint /blueprints/k8s-ves.yaml...
k8s-hv-ves.yaml |######################-------------------------------| 41.43%
k8s-hv-ves.yaml |############################################---------| 82.85%
k8s-hv-ves.yaml |#####################################################| 100.0%
k8s-ves.yaml |#######################---------------------------------| 41.44%
k8s-ves.yaml |##############################################----------| 82.88%
k8s-ves.yaml |########################################################| 100.0%
Blueprint uploaded. The blueprint's id is tcagen2
+ cm_hasany 'deployments?id=tcagen2'
++ /bin/jq .metadata.pagination.total
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/deployments?id=tcagen2&_include=id'
Blueprint uploaded. The blueprint's id is prh
Blueprint uploaded. The blueprint's id is hv-ves
+ 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
+ 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
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-tcagen2-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-tcagen2-inputs.yaml
+ cfy deployments create -b tcagen2 -i/inputs/k8s-tcagen2-inputs.yaml tcagen2
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-hv_ves-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-hv_ves-inputs.yaml
+ cfy deployments create -b hv-ves -i/inputs/k8s-hv_ves-inputs.yaml hv-ves
Blueprint uploaded. The blueprint's id is ves-tls
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-prh-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-prh-inputs.yaml
+ cfy deployments create -b prh -i/inputs/k8s-prh-inputs.yaml prh
+ cm_hasany 'deployments?id=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
Blueprint uploaded. The blueprint's id is holmes_rules
+ 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-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
+ COUNT=0
+ (( 0 > 0 ))
+ return 1
+ INPUTS=
+ '[' -n k8s-holmes_rules-inputs.yaml ']'
+ INPUTS=-i/inputs/k8s-holmes_rules-inputs.yaml
+ cfy deployments create -b holmes_rules -i/inputs/k8s-holmes_rules-inputs.yaml holmes_rules
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint tcagen2...
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Creating new deployment from blueprint hv-ves...
Creating new deployment from blueprint prh...
Creating new deployment from blueprint ves-tls...
Creating new deployment from blueprint holmes_rules...
Deployment created. The deployment's id is tcagen2
+ cm_hasany 'node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=tcagen2&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d tcagen2 install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Deployment created. The deployment's id is hv-ves
Executing workflow `install` on deployment `tcagen2` [timeout=900 seconds]
+ cm_hasany 'node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=hv-ves&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
Deployment environment creation is pending...
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d hv-ves install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Deployment created. The deployment's id is prh
+ cm_hasany 'node-instances?deployment_id=prh&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=prh&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
Deployment created. The deployment's id is holmes_rules
Deployment created. The deployment's id is ves-tls
+ cm_hasany 'node-instances?deployment_id=holmes_rules&state=uninitialized&state=deleted'
++ curl -Ss -H 'Tenant: default_tenant' --user admin:UmH7vbj6 --cacert /certs/cacert.pem 'https://dcae-cloudify-manager:443/api/v3.1/node-instances?deployment_id=holmes_rules&state=uninitialized&state=deleted&_include=id'
++ /bin/jq .metadata.pagination.total
+ cm_hasany 'node-instances?deployment_id=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
Executing workflow `install` on deployment `hv-ves` [timeout=900 seconds]
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d prh install
Deployment environment creation is pending...
+ COUNT=1
+ (( 1 > 0 ))
+ return 0
+ cfy executions start -d ves-tls install
+ COUNT=2
+ (( 2 > 0 ))
+ return 0
+ cfy executions start -d holmes_rules install
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Executing workflow `install` on deployment `prh` [timeout=900 seconds]
Executing workflow `install` on deployment `ves-tls` [timeout=900 seconds]
Deployment environment creation is pending...
Executing workflow `install` on deployment `holmes_rules` [timeout=900 seconds]
Deployment environment creation is pending...
Deployment environment creation is pending...
2021-05-22 02:33:07.855 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:33:07.859 CFY Installing deployment and workflow plugins
2021-05-22 02:33:07.959 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:09.541 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:33:09.547 CFY Installing deployment and workflow plugins
2021-05-22 02:33:09.646 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:10.251 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:33:10.256 CFY Installing deployment and workflow plugins
2021-05-22 02:33:10.357 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:10.370 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:11.140 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:33:11.148 CFY Installing deployment and workflow plugins
2021-05-22 02:33:11.246 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:11.264 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:11.444 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:33:11.451 CFY Installing deployment and workflow plugins
2021-05-22 02:33:11.550 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:11.565 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:08.030 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:11.351 LOG INFO: Installing plugin: k8s
2021-05-22 02:33:09.680 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:13.932 LOG INFO: Installing plugin: k8s
2021-05-22 02:33:14.353 LOG INFO: Installing plugin: k8s
2021-05-22 02:33:15.167 LOG INFO: Installing plugin: k8s
2021-05-22 02:33:15.246 LOG INFO: Installing plugin: pgaas
2021-05-22 02:33:14.256 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:14.257 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:14.346 CFY Creating deployment work directory
2021-05-22 02:33:14.745 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:33:16.147 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:16.148 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:16.156 CFY Creating deployment work directory
2021-05-22 02:33:16.461 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:16.463 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:16.577 CFY Creating deployment work directory
2021-05-22 02:33:16.963 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:33:16.946 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:16.947 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:17.062 CFY Creating deployment work directory
2021-05-22 02:33:17.344 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:33:17.069 LOG INFO: Using existing installation of managed plugin: d2e922cc-c28c-46d3-b6e9-5bd90595511b [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:17.070 LOG INFO: Installing plugin: k8s
2021-05-22 02:33:17.806 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:33:17.807 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:33:17.871 CFY Creating deployment work directory
2021-05-22 02:33:18.135 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:33:16.636 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:33:19.948 CFY Starting 'install' workflow execution
2021-05-22 02:33:20.510 CFY [docker.tca_0zzc3v] Validating node instance before creation: nothing to do
2021-05-22 02:33:20.602 CFY [docker.tca_0zzc3v] Precreating node instance: nothing to do
2021-05-22 02:33:20.705 CFY [docker.tca_0zzc3v] Creating node instance
2021-05-22 02:33:21.158 CFY [docker.tca_0zzc3v.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:33:27.062 CFY Starting 'install' workflow execution
2021-05-22 02:33:25.149 CFY Starting 'install' workflow execution
2021-05-22 02:33:26.451 CFY [prh_vdqxlb] Validating node instance before creation: nothing to do
2021-05-22 02:33:26.662 CFY [prh_vdqxlb] Precreating node instance: nothing to do
2021-05-22 02:33:25.551 CFY Starting 'install' workflow execution
2021-05-22 02:33:26.661 CFY [ves_7t1oom] Validating node instance before creation: nothing to do
2021-05-22 02:33:26.772 CFY [ves_7t1oom] Precreating node instance: nothing to do
2021-05-22 02:33:27.353 CFY [ves_7t1oom] Creating node instance
2021-05-22 02:33:25.850 CFY Starting 'install' workflow execution
2021-05-22 02:33:27.074 CFY [pgaasvm_vlajt7] Validating node instance before creation: nothing to do
2021-05-22 02:33:27.176 CFY [pgaasvm_vlajt7] Precreating node instance: nothing to do
2021-05-22 02:33:27.948 CFY [hv-ves_oky48n] Validating node instance before creation: nothing to do
2021-05-22 02:33:28.053 CFY [hv-ves_oky48n] Precreating node instance: nothing to do
2021-05-22 02:33:28.155 CFY [hv-ves_oky48n] Creating node instance
2021-05-22 02:33:28.513 CFY [hv-ves_oky48n.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:33:26.751 CFY [prh_vdqxlb] Creating node instance
2021-05-22 02:33:27.330 CFY [prh_vdqxlb.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:33:27.573 CFY [ves_7t1oom.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:33:27.480 CFY [pgaasvm_vlajt7] Creating node instance
2021-05-22 02:33:27.999 CFY [pgaasvm_vlajt7.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-05-22 02:33:32.774 LOG [pgaasvm_vlajt7.create] WARNING: create_database(holmes)
2021-05-22 02:33:37.236 LOG [hv-ves_oky48n.create] INFO: Added config for dcae-hv-ves-collector
2021-05-22 02:33:37.236 LOG [prh_vdqxlb.create] INFO: Added config for dcae-prh
2021-05-22 02:33:37.236 LOG [ves_7t1oom.create] INFO: Added config for dcae-ves-collector
2021-05-22 02:33:37.236 LOG [ves_7t1oom.create] INFO: Done setting up: dcae-ves-collector
2021-05-22 02:33:38.138 CFY [ves_7t1oom.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:33:35.060 LOG [pgaasvm_vlajt7.create] WARNING: All done
2021-05-22 02:33:37.349 CFY [pgaasvm_vlajt7.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-05-22 02:33:37.617 CFY [pgaasvm_vlajt7] Node instance created
2021-05-22 02:33:37.791 CFY [pgaasvm_vlajt7] Configuring node instance: nothing to do
2021-05-22 02:33:36.960 LOG [docker.tca_0zzc3v.create] INFO: Added config for dcae-tcagen2
2021-05-22 02:33:36.961 LOG [docker.tca_0zzc3v.create] INFO: Done setting up: dcae-tcagen2
2021-05-22 02:33:37.890 CFY [docker.tca_0zzc3v.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:33:38.177 CFY [docker.tca_0zzc3v] Node instance created
2021-05-22 02:33:37.236 LOG [hv-ves_oky48n.create] INFO: Done setting up: dcae-hv-ves-collector
2021-05-22 02:33:37.934 CFY [hv-ves_oky48n.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:33:37.995 CFY [hv-ves_oky48n] Node instance created
2021-05-22 02:33:38.383 CFY [hv-ves_oky48n] Configuring node instance: nothing to do
2021-05-22 02:33:38.934 CFY [hv-ves_oky48n] Starting node instance
2021-05-22 02:33:39.280 CFY [hv-ves_oky48n.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:33:37.236 LOG [prh_vdqxlb.create] INFO: Done setting up: dcae-prh
2021-05-22 02:33:38.435 CFY [prh_vdqxlb.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:33:38.948 CFY [prh_vdqxlb] Node instance created
2021-05-22 02:33:39.060 CFY [prh_vdqxlb] Configuring node instance: nothing to do
2021-05-22 02:33:39.584 CFY [prh_vdqxlb] Starting node instance
2021-05-22 02:33:39.762 CFY [prh_vdqxlb.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:33:38.180 CFY [ves_7t1oom] Node instance created
2021-05-22 02:33:38.470 CFY [ves_7t1oom] Configuring node instance: nothing to do
2021-05-22 02:33:38.578 CFY [ves_7t1oom] Starting node instance
2021-05-22 02:33:39.433 CFY [ves_7t1oom.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:33:37.866 CFY [pgaasvm_vlajt7] Starting node instance: nothing to do
2021-05-22 02:33:37.975 CFY [pgaasvm_vlajt7] Poststarting node instance: nothing to do
2021-05-22 02:33:38.060 CFY [pgaasvm_vlajt7] Node instance started
2021-05-22 02:33:39.171 CFY [holmesrules_slq8y3] Validating node instance before creation: nothing to do
2021-05-22 02:33:39.349 CFY [holmesrules_slq8y3] Precreating node instance: nothing to do
2021-05-22 02:33:39.775 CFY [holmesrules_slq8y3] Creating node instance
2021-05-22 02:33:39.911 CFY [holmesrules_slq8y3.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:33:38.379 CFY [docker.tca_0zzc3v] Configuring node instance: nothing to do
2021-05-22 02:33:39.038 CFY [docker.tca_0zzc3v] Starting node instance
2021-05-22 02:33:39.430 CFY [docker.tca_0zzc3v.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:33:48.046 LOG [hv-ves_oky48n.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_oky48n', 'cfynode': u'hv-ves'}, 'external_cert': {u'ca_name': u'RA', u'external_certificate_parameters': {u'common_name': u'dcae-hv-ves-collector', u'sans': u'dcae-hv-ves-collector:hv-ves-collector:hv-ves'}, u'cert_type': u'JKS', u'external_cert_directory': u'/etc/ves-hv/ssl', u'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-05-22 02:33:48.161 LOG [ves_7t1oom.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_7t1oom', 'cfynode': u'ves'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'dcae-ves-collector', u'sans': u'dcae-ves-collector:ves-collector:ves'}, u'cert_type': u'JKS', u'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/VESCollector/logs'}, 'ports': [u'8080:0', u'8443:30417'], 'k8s_location': u'central'}
2021-05-22 02:33:48.230 LOG [ves_7t1oom.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:33:48.065 LOG [docker.tca_0zzc3v.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_0zzc3v', 'cfynode': u'docker.tca'}, 'external_cert': {u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'ca_name': u'RA', u'use_external_tls': False}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/logs/dcae-analytics-tca'}, 'ports': [u'9091:0'], 'k8s_location': u'central'}
2021-05-22 02:33:48.131 LOG [docker.tca_0zzc3v.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:33:48.047 LOG [hv-ves_oky48n.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:33:48.059 LOG [hv-ves_oky48n.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:33:48.486 LOG [hv-ves_oky48n.start] INFO: k8s deployment initiated successfully for dcae-hv-ves-collector: {'services': ['dcae-hv-ves-collector', 'xdcae-hv-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-hv-ves-collector'}
2021-05-22 02:33:48.486 LOG [hv-ves_oky48n.start] INFO: Waiting up to 1800 secs for dcae-hv-ves-collector to become ready
2021-05-22 02:33:48.038 LOG [prh_vdqxlb.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_vdqxlb', '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'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/external'}, 'resource_config': {}, 'volumes': [], 'log_info': {u'log_directory': u'/opt/app/prh/logs'}, 'ports': [u'8100:0'], 'k8s_location': u'central'}
2021-05-22 02:33:48.038 LOG [prh_vdqxlb.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:33:48.049 LOG [prh_vdqxlb.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:33:48.432 LOG [prh_vdqxlb.start] INFO: k8s deployment initiated successfully for dcae-prh: {'services': ['dcae-prh'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-prh'}
2021-05-22 02:33:48.432 LOG [prh_vdqxlb.start] INFO: Waiting up to 1800 secs for dcae-prh to become ready
2021-05-22 02:33:48.245 LOG [ves_7t1oom.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:33:48.506 LOG [ves_7t1oom.start] INFO: k8s deployment initiated successfully for dcae-ves-collector: {'services': ['dcae-ves-collector', 'xdcae-ves-collector'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-ves-collector'}
2021-05-22 02:33:48.506 LOG [ves_7t1oom.start] INFO: Waiting up to 1800 secs for dcae-ves-collector to become ready
2021-05-22 02:33:49.264 LOG [holmesrules_slq8y3.create] INFO: Added config for holmes-rule-mgmt
2021-05-22 02:33:49.264 LOG [holmesrules_slq8y3.create] INFO: Done setting up: holmes-rule-mgmt
2021-05-22 02:33:50.957 CFY [holmesrules_slq8y3.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:33:50.995 CFY [holmesrules_slq8y3] Node instance created
2021-05-22 02:33:51.282 CFY [holmesrules_slq8y3] Configuring node instance: nothing to do
2021-05-22 02:33:51.388 CFY [holmesrules_slq8y3] Starting node instance
2021-05-22 02:33:48.143 LOG [docker.tca_0zzc3v.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:33:48.447 LOG [docker.tca_0zzc3v.start] INFO: k8s deployment initiated successfully for dcae-tcagen2: {'services': ['dcae-tcagen2'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-dcae-tcagen2'}
2021-05-22 02:33:48.447 LOG [docker.tca_0zzc3v.start] INFO: Waiting up to 1800 secs for dcae-tcagen2 to become ready
2021-05-22 02:33:51.729 CFY [holmesrules_slq8y3.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:33:55.588 LOG [holmesrules_slq8y3.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'94df6d32f73f70ead8dacb31c768be4693332a4e47ea2bf019085f9381f1c74b'}, 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'94df6d32f73f70ead8dacb31c768be4693332a4e47ea2bf019085f9381f1c74b'}, 'labels': {'cfydeployment': u'holmes_rules', 'cfynodeinstance': u'holmesrules_slq8y3', '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'ca_name': u'RA', u'external_cert_directory': u'/opt/app/dcae-certificate/external'}, 'resource_config': {u'requests': {u'cpu': u'250m', u'memory': u'256Mi'}, u'limits': {u'cpu': u'250m', u'memory': u'1024Mi'}}, 'volumes': [], 'log_info': {}, 'ports': [u'9101:0', u'9104:0'], 'k8s_location': u'central'}
2021-05-22 02:33:55.589 LOG [holmesrules_slq8y3.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:33:55.602 LOG [holmesrules_slq8y3.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:33:55.685 LOG [holmesrules_slq8y3.start] INFO: k8s deployment initiated successfully for holmes-rule-mgmt: {'services': ['holmes-rule-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-rule-mgmt'}
2021-05-22 02:33:55.686 LOG [holmesrules_slq8y3.start] INFO: Waiting up to 1800 secs for holmes-rule-mgmt to become ready
2021-05-22 02:35:04.625 LOG [docker.tca_0zzc3v.start] INFO: k8s deployment is ready for: dcae-tcagen2
2021-05-22 02:35:04.625 LOG [docker.tca_0zzc3v.start] INFO: Done starting: dcae-tcagen2
2021-05-22 02:35:05.749 CFY [docker.tca_0zzc3v.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:35:05.866 CFY [docker.tca_0zzc3v] Poststarting node instance: nothing to do
Execution ended, waiting 3 seconds for additional log messages
2021-05-22 02:35:06.676 LOG [hv-ves_oky48n.start] INFO: k8s deployment is ready for: dcae-hv-ves-collector
2021-05-22 02:35:06.676 LOG [hv-ves_oky48n.start] INFO: Done starting: dcae-hv-ves-collector
2021-05-22 02:35:05.946 CFY [docker.tca_0zzc3v] Node instance started
2021-05-22 02:35:06.270 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment tcagen2
* Run 'cfy events list 99e1b721-6f93-46d6-829a-eb0a72c4dad1' to retrieve the execution's events/logs
2021-05-22 02:35:08.378 CFY [hv-ves_oky48n.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:35:08.488 CFY [hv-ves_oky48n] Poststarting node instance: nothing to do
2021-05-22 02:35:08.559 CFY [hv-ves_oky48n] Node instance started
2021-05-22 02:35:08.993 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment hv-ves
* Run 'cfy events list 7033995a-3aad-4772-9222-d85beea03297' to retrieve the execution's events/logs
2021-05-22 02:35:23.186 LOG [prh_vdqxlb.start] INFO: k8s deployment is ready for: dcae-prh
2021-05-22 02:35:23.187 LOG [prh_vdqxlb.start] INFO: Done starting: dcae-prh
2021-05-22 02:35:23.803 CFY [prh_vdqxlb.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:35:23.913 CFY [prh_vdqxlb] Poststarting node instance: nothing to do
2021-05-22 02:35:24.156 CFY [prh_vdqxlb] Node instance started
2021-05-22 02:35:24.447 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment prh
* Run 'cfy events list 24641727-85ef-41fa-8b63-044eb44106cb' to retrieve the execution's events/logs
2021-05-22 02:35:35.539 LOG [ves_7t1oom.start] INFO: k8s deployment is ready for: dcae-ves-collector
2021-05-22 02:35:35.539 LOG [ves_7t1oom.start] INFO: Done starting: dcae-ves-collector
2021-05-22 02:35:36.171 CFY [ves_7t1oom.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:35:36.255 CFY [ves_7t1oom] Poststarting node instance: nothing to do
2021-05-22 02:35:36.454 CFY [ves_7t1oom] Node instance started
2021-05-22 02:35:36.629 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment ves-tls
* Run 'cfy events list 15c9669d-5860-48d3-be4e-7d051c1bee31' to retrieve the execution's events/logs
2021-05-22 02:35:50.941 LOG [holmesrules_slq8y3.start] INFO: k8s deployment is ready for: holmes-rule-mgmt
2021-05-22 02:35:50.941 LOG [holmesrules_slq8y3.start] INFO: Done starting: holmes-rule-mgmt
2021-05-22 02:35:51.730 CFY [holmesrules_slq8y3.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:35:51.808 CFY [holmesrules_slq8y3] Poststarting node instance: nothing to do
2021-05-22 02:35:52.001 CFY [holmesrules_slq8y3] Node instance started
2021-05-22 02:35:52.274 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_rules
* Run 'cfy events list 7c2140cf-c93f-4832-a93e-4f315c6de896' 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 in progress...
2021-05-22 02:36:00.774 CFY Starting 'create_deployment_environment' workflow execution
2021-05-22 02:36:00.780 CFY Installing deployment and workflow plugins
2021-05-22 02:36:00.878 CFY Sending task 'cloudify_agent.operations.install_plugins'
2021-05-22 02:36:00.894 CFY Task started 'cloudify_agent.operations.install_plugins'
2021-05-22 02:36:01.847 LOG INFO: Installing plugin: pgaas
2021-05-22 02:36:02.479 LOG INFO: Using existing installation of managed plugin: d2e922cc-c28c-46d3-b6e9-5bd90595511b [package_name: pgaas, package_version: 1.3.0, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:36:02.480 LOG INFO: Installing plugin: k8s
2021-05-22 02:36:03.147 LOG INFO: Using existing installation of managed plugin: e0579738-fc6f-49d6-8199-785e0fcfed5c [package_name: k8splugin, package_version: 3.4.2, supported_platform: linux_x86_64, distribution: centos, distribution_release: core]
2021-05-22 02:36:03.148 CFY Task succeeded 'cloudify_agent.operations.install_plugins'
2021-05-22 02:36:03.213 CFY Creating deployment work directory
2021-05-22 02:36:03.482 CFY 'create_deployment_environment' workflow execution succeeded
2021-05-22 02:36:09.571 CFY Starting 'install' workflow execution
2021-05-22 02:36:10.147 CFY [pgaasvm_d7rdeh] Validating node instance before creation: nothing to do
2021-05-22 02:36:10.224 CFY [pgaasvm_d7rdeh] Precreating node instance: nothing to do
2021-05-22 02:36:10.331 CFY [pgaasvm_d7rdeh] Creating node instance
2021-05-22 02:36:10.684 CFY [pgaasvm_d7rdeh.create] Sending task 'pgaas.pgaas_plugin.create_database'
2021-05-22 02:36:13.372 LOG [pgaasvm_d7rdeh.create] WARNING: create_database(holmes)
2021-05-22 02:36:14.551 CFY [pgaasvm_d7rdeh.create] Task succeeded 'pgaas.pgaas_plugin.create_database'
2021-05-22 02:36:14.585 CFY [pgaasvm_d7rdeh] Node instance created
2021-05-22 02:36:14.891 CFY [pgaasvm_d7rdeh] Configuring node instance: nothing to do
2021-05-22 02:36:14.994 CFY [pgaasvm_d7rdeh] Starting node instance: nothing to do
2021-05-22 02:36:15.100 CFY [pgaasvm_d7rdeh] Poststarting node instance: nothing to do
2021-05-22 02:36:15.208 CFY [pgaasvm_d7rdeh] Node instance started
2021-05-22 02:36:15.687 CFY [holmesengine_ztc1nj] Validating node instance before creation: nothing to do
2021-05-22 02:36:15.794 CFY [holmesengine_ztc1nj] Precreating node instance: nothing to do
2021-05-22 02:36:15.904 CFY [holmesengine_ztc1nj] Creating node instance
2021-05-22 02:36:16.241 CFY [holmesengine_ztc1nj.create] Sending task 'k8splugin.create_for_components'
2021-05-22 02:36:21.621 LOG [holmesengine_ztc1nj.create] INFO: Added config for holmes-engine-mgmt
2021-05-22 02:36:21.622 LOG [holmesengine_ztc1nj.create] INFO: Done setting up: holmes-engine-mgmt
2021-05-22 02:36:22.309 CFY [holmesengine_ztc1nj.create] Task succeeded 'k8splugin.create_for_components'
2021-05-22 02:36:22.392 CFY [holmesengine_ztc1nj] Node instance created
2021-05-22 02:36:22.563 CFY [holmesengine_ztc1nj] Configuring node instance: nothing to do
2021-05-22 02:36:22.668 CFY [holmesengine_ztc1nj] Starting node instance
2021-05-22 02:36:22.925 CFY [holmesengine_ztc1nj.start] Sending task 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:36:26.257 LOG [holmesengine_ztc1nj.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'94df6d32f73f70ead8dacb31c768be4693332a4e47ea2bf019085f9381f1c74b'}, 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'94df6d32f73f70ead8dacb31c768be4693332a4e47ea2bf019085f9381f1c74b'}, 'labels': {'cfydeployment': u'holmes_engine', 'cfynodeinstance': u'holmesengine_ztc1nj', 'cfynode': u'holmesengine'}, 'external_cert': {u'use_external_tls': False, u'external_certificate_parameters': {u'common_name': u'', u'sans': u''}, u'cert_type': u'P12', u'external_cert_directory': u'/opt/app/dcae-certificate/external', u'ca_name': u'RA'}, 'resource_config': {u'requests': {u'cpu': u'500m', u'memory': u'256Mi'}, u'limits': {u'cpu': u'500m', u'memory': u'1024Mi'}}, 'volumes': [], 'log_info': {}, 'ports': [u'9102:0'], 'k8s_location': u'central'}
2021-05-22 02:36:26.258 LOG [holmesengine_ztc1nj.start] INFO: Passing k8sconfig: {'filebeat': {u'config_map': u'onap-dcae-filebeat-configmap', u'config_path': u'/usr/share/filebeat/filebeat.yml', u'log_path': u'/var/log/onap', u'image': u'docker.elastic.co/beats/filebeat:5.5.0', u'data_path': u'/usr/share/filebeat/data', u'config_subpath': u'filebeat.yml'}, 'truststore_merger': {u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-post-processor:2.1.1'}, 'cbs': {'base_url': 'https://config-binding-service:10443/service_component_all'}, 'external_cert': {u'country': u'US', u'truststore_password': u'secret', u'cert_secret_name': u'oom-cert-service-client-tls-secret', u'state': u'California', u'organizational_unit': u'ONAP', u'location': u'San-Francisco', u'timeout': u'30000', u'keystore_password': u'secret', u'organization': u'Linux-Foundation', u'request_url': u'https://oom-cert-service:8443/v1/certificate/', u'image_tag': u'nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-client:2.1.1'}, 'default_k8s_location': u'central', 'tls': {u'component_cert_dir': u'/opt/dcae/cacert', u'cert_path': u'/opt/app/osaaf', u'image': u'nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0', u'ca_cert_configmap': u'onap-dcae-bootstrap-dcae-cacert', u'component_ca_cert_path': u'/opt/dcae/cacert/cacert.pem'}, 'consul_host': 'consul-server:8500', 'consul_dns_name': u'consul-server.onap', 'max_wait': 1800, 'image_pull_secrets': [u'onap-docker-registry-key'], 'namespace': u'onap'}
2021-05-22 02:36:26.271 LOG [holmesengine_ztc1nj.start] INFO: Creating init container: TLS
* [nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0]
2021-05-22 02:36:26.382 LOG [holmesengine_ztc1nj.start] INFO: k8s deployment initiated successfully for holmes-engine-mgmt: {'services': ['holmes-engine-mgmt'], 'namespace': u'onap', 'location': u'central', 'deployment': 'dep-holmes-engine-mgmt'}
2021-05-22 02:36:26.382 LOG [holmesengine_ztc1nj.start] INFO: Waiting up to 1800 secs for holmes-engine-mgmt to become ready
2021-05-22 02:37:29.085 LOG [holmesengine_ztc1nj.start] INFO: k8s deployment is ready for: holmes-engine-mgmt
2021-05-22 02:37:29.085 LOG [holmesengine_ztc1nj.start] INFO: Done starting: holmes-engine-mgmt
2021-05-22 02:37:29.878 CFY [holmesengine_ztc1nj.start] Task succeeded 'k8splugin.create_and_start_container_for_components'
2021-05-22 02:37:29.947 CFY [holmesengine_ztc1nj] Poststarting node instance: nothing to do
2021-05-22 02:37:30.180 CFY [holmesengine_ztc1nj] Node instance started
2021-05-22 02:37:30.506 CFY 'install' workflow execution succeeded
Finished executing workflow install on deployment holmes_engine
* Run 'cfy events list 32b89908-31c1-4ce1-8f13-5f22ca8de217' to retrieve the execution's events/logs
+ cfy deployments list
/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
Listing all deployments...
Deployments:
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| id | blueprint_id | created_at | updated_at | visibility | tenant_name | created_by | site_name |
+---------------+---------------+--------------------------+--------------------------+------------+----------------+------------+-----------+
| pgaas_initdb | pgaas_initdb | 2021-05-22 02:32:19.884 | 2021-05-22 02:32:19.884 | tenant | default_tenant | admin | |
| tcagen2 | tcagen2 | 2021-05-22 02:33:03.447 | 2021-05-22 02:33:03.447 | tenant | default_tenant | admin | |
| hv-ves | hv-ves | 2021-05-22 02:33:03.927 | 2021-05-22 02:33:03.927 | tenant | default_tenant | admin | |
| prh | prh | 2021-05-22 02:33:03.965 | 2021-05-22 02:33:03.965 | tenant | default_tenant | admin | |
| ves-tls | ves-tls | 2021-05-22 02:33:04.266 | 2021-05-22 02:33:04.266 | tenant | default_tenant | admin | |
| holmes_rules | holmes_rules | 2021-05-22 02:33:04.360 | 2021-05-22 02:33:04.360 | tenant | default_tenant | admin | |
| holmes_engine | holmes_engine | 2021-05-22 02:35:58.725 | 2021-05-22 02:35:58.725 | 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": 2105220237,
"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 178 4789 --:--:-- --:--:-- --:--:-- 4809
+ for BP in '/blueprints/*.yaml'
+ upload_service_type /blueprints/k8s-datafile.yaml /certs/cacert.pem
+ '[' /certs/cacert.pem ']'
+ TLSCURL='--cacert /certs/cacert.pem'
+ create_service_type /blueprints/k8s-datafile.yaml
+ curl --cacert /certs/cacert.pem -X POST -H 'Content-Type: application/json' -d @- https://inventory:8080/dcae-service-types
++ date +%y%m%d%I%M
++ basename /blueprints/k8s-datafile.yaml .yaml
++ flatten /blueprints/k8s-datafile.yaml
+++ sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$/\\n/g'
+++ tr -d '\n'
++ FLAT='\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <>\n type: data_router\n dmaap.ftpesConfig.keyCert: /opt/app/datafile/config/cert.jks\n dmaap.ftpesConfig.keyPasswordPath: /opt/app/datafile/config/jks.pass\n dmaap.ftpesConfig.trustedCa: /opt/app/datafile/config/trust.jks\n dmaap.ftpesConfig.trustedCaPasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.enableDmaapCertAuth: true\n dmaap.security.keyStorePasswordPath: /opt/app/datafile/etc/cert/p12.pass\n dmaap.security.keyStorePath: /opt/app/datafile/etc/cert/cert.p12\n dmaap.security.trustStorePasswordPath: /opt/app/datafile/etc/cert/trust.pass\n dmaap.security.trustStorePath: /opt/app/datafile/etc/cert/trust.jks\n dmaap.dmaapConsumerConfiguration.consumerGroup:\n get_input: consumer_group\n dmaap.dmaapConsumerConfiguration.consumerId:\n get_input: consumer_id\n dmaap.dmaapConsumerConfiguration.timeoutMs: -1\n sftp.security.strictHostKeyChecking: true\n streams_subscribes:\n dmaap_subscriber:\n type: message_router\n dmaap_info:\n topic_url: { concat: ['\''https://message-router:3905/events/'\'',{ get_input: topic_name }] }\n docker_config:\n healthcheck:\n interval: 15s\n timeout: 1s\n type: http\n endpoint: /heartbeat\n ports:\n - concat: [\"8100\", {get_input: external_port}]\n - concat: [\"8433\", {get_input: external_port}]\n image:\n get_input: tag_version\n service_component_type: datafile-collector\n log_info:\n log_directory:\n get_input: log_directory\n replicas:\n get_input: replicas\n streams_publishes:\n - name: feed0\n location:\n get_input: PM_MEAS_FILES_feed0_location\n type: data_router\n tls_info:\n cert_directory:\n get_input: cert_directory\n use_tls:\n get_input: use_tls\n resource_config:\n limits:\n cpu:\n get_input: datafile-collector_cpu_limit\n memory:\n get_input: datafile-collector_memory_limit\n requests:\n cpu:\n get_input: datafile-collector_cpu_request\n memory:\n get_input: datafile-collector_memory_request\n relationships:\n - type: dcaegen2.relationships.publish_files\n target: feed0\n feed0:\n type: dcaegen2.nodes.Feed\n properties:\n feed_name:\n get_input: feed0_name\n useExisting: true\n'
++ echo '\n#description: Docker application to collect log file from PNF\n#blueprint_version: 1.0.0\n---\ntosca_definitions_version: cloudify_dsl_1_3\ndescription: Docker application to collect log file from PNF\nimports:\n- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\n- plugin:k8splugin?version=3.4.2\n- plugin:dmaap?version=1.5.0\ninputs:\n PM_MEAS_FILES_feed0_location:\n type: string\n default: \"loc00\"\n cert_directory:\n type: string\n default: \"/opt/app/datafile/etc/cert/\"\n datafile-collector_cpu_limit:\n type: string\n default: \"250m\"\n datafile-collector_cpu_request:\n type: string\n default: \"250m\"\n datafile-collector_memory_limit:\n type: string\n default: \"512Mi\"\n datafile-collector_memory_request:\n type: string\n default: \"512Mi\"\n envs:\n default: {}\n external_port:\n type: string\n default: \":0\"\n feed0_name:\n type: string\n default: \"bulk_pm_feed\"\n topic_name:\n type: string\n default: \"unauthenticated.VES_NOTIFICATION_OUTPUT\"\n consumer_group:\n type: string\n default: \"OpenDcae-c12\"\n consumer_id:\n type: string\n default: \"C12\"\n log_directory:\n type: string\n default: \"/var/log/ONAP\"\n replicas:\n type: integer\n description: number of instances\n default: 1\n tag_version:\n type: string\n default: \"nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.4.3\"\n use_tls:\n type: boolean\n default: true\nnode_templates:\n datafile-collector:\n type: dcae.nodes.ContainerizedServiceComponentUsingDmaap\n interfaces:\n cloudify.interfaces.lifecycle:\n start:\n inputs:\n envs:\n get_input: envs\n properties:\n application_config:\n service_calls: []\n streams_publishes:\n PM_MEAS_FILES:\n dmaap_info: <