+ curl http://consul:8500/v1/agent/services % 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 2 100 2 0 0 364 0 --:--:-- --:--:-- --:--:-- 400 ++ curl -Ss '{http://consul:8500}/v1/status/leader' + [[ "10.233.76.74:8300" != \"\" ]] + (( 6 )) + case $1 in + s=(${2//|/ }) + register_service cloudify_manager dcae-cloudify-manager.onap 443 + service='{"Node": "dcae", "Address": "dcae-cloudify-manager.onap", "Service": {"Service": "cloudify_manager", "Address": "dcae-cloudify-manager.onap", "Port": 443}}' + echo '{"Node":' '"dcae",' '"Address":' '"dcae-cloudify-manager.onap",' '"Service":' '{"Service":' '"cloudify_manager",' '"Address":' '"dcae-cloudify-manager.onap",' '"Port":' '443}}' {}{"Node": "dcae", "Address": "dcae-cloudify-manager.onap", "Service": {"Service": "cloudify_manager", "Address": "dcae-cloudify-manager.onap", "Port": 443}} + curl -v -X PUT --data-binary '{"Node": "dcae", "Address": "dcae-cloudify-manager.onap", "Service": {"Service": "cloudify_manager", "Address": "dcae-cloudify-manager.onap", "Port": 443}}' -H 'Content-Type: application/json' http://consul:8500/v1/catalog/register % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.233.74.252:8500... * Connected to consul (10.233.74.252) port 8500 (#0) > PUT /v1/catalog/register HTTP/1.1 > Host: consul:8500 > User-Agent: curl/7.78.0 > Accept: */* > Content-Type: application/json > Content-Length: 155 > } [155 bytes data] * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Type: application/json < Date: Mon, 20 Dec 2021 03:26:53 GMT < Content-Length: 4 < { [4 bytes data] 100 159 100 4 100 155 216 8394 --:--:-- --:--:-- --:--:-- 8833 * Connection #0 to host consul left intact + shift 2 + (( 4 )) + case $1 in + s=(${2//|/ }) + register_service inventory inventory.onap 8080 + service='{"Node": "dcae", "Address": "inventory.onap", "Service": {"Service": "inventory", "Address": "inventory.onap", "Port": 8080}}' + echo '{"Node":' '"dcae",' '"Address":' '"inventory.onap",' '"Service":' '{"Service":' '"inventory",' '"Address":' '"inventory.onap",' '"Port":' '8080}}' true{"Node": "dcae", "Address": "inventory.onap", "Service": {"Service": "inventory", "Address": "inventory.onap", "Port": 8080}} + curl -v -X PUT --data-binary '{"Node": "dcae", "Address": "inventory.onap", "Service": {"Service": "inventory", "Address": "inventory.onap", "Port": 8080}}' -H 'Content-Type: application/json' http://consul:8500/v1/catalog/register % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.233.74.252:8500... * Connected to consul (10.233.74.252) port 8500 (#0) > PUT /v1/catalog/register HTTP/1.1 > Host: consul:8500 > User-Agent: curl/7.78.0 > Accept: */* > Content-Type: application/json > Content-Length: 125 > } [125 bytes data] * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Type: application/json < Date: Mon, 20 Dec 2021 03:26:53 GMT < Content-Length: 4 < { [4 bytes data] 100 129 100 4 100 125 10 321 --:--:-- --:--:-- --:--:-- 332 * Connection #0 to host consul left intact + shift 2 + (( 2 )) + case $1 in + kv=(${2//|/ }) + put_key deployment_handler /dhconfig/config.json + curl -v -X PUT --data-binary @/dhconfig/config.json -H 'Content-Type: application/json' http://consul:8500/v1/kv/deployment_handler % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.233.74.252:8500... * Connected to consul (10.233.74.252) port 8500 (#0) > PUT /v1/kv/deployment_handler HTTP/1.1 > Host: consul:8500 > User-Agent: curl/7.78.0 > Accept: */* > Content-Type: application/json > Content-Length: 110 > } [110 bytes data] 100 110 0 0 100 110 0 544 --:--:-- --:--:-- --:--:-- 544* Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Type: application/json < Date: Mon, 20 Dec 2021 03:26:54 GMT < Content-Length: 4 < { [4 bytes data] 100 114 100 4 100 110 13 366 --:--:-- --:--:-- --:--:-- 378 * Connection #0 to host consul left intact + shift 2 + (( 0 )) truetrue