By type
+ 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 666 0 --:--:-- --:--:-- --:--:-- 666
++ curl -Ss '{http://consul:8500}/v1/status/leader'
{}{"Node": "dcae", "Address": "dcae-cloudify-manager.onap", "Service": {"Service": "cloudify_manager", "Address": "dcae-cloudify-manager.onap", "Port": 443}}
+ [[ "10.242.72.12: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}}'
+ 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.242.226.199:8500...
* Connected to consul (10.242.226.199) port 8500 (#0)
> PUT /v1/catalog/register HTTP/1.1
> Host: consul:8500
> User-Agent: curl/7.69.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 155
>
} [155 bytes data]
* upload completely sent off: 155 out of 155 bytes
100 155 0 0 100 155 0 128 0:00:01 0:00:01 --:--:-- 128
100 155 0 0 100 155 0 70 0:00:02 0:00:02 --:--:-- 70
100 155 0 0 100 155 0 48 0:00:03 0:00:03 --:--:-- 48
100 155 0 0 100 155 0 36 0:00:04 0:00:04 --:--:-- 36* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Mon, 16 Aug 2021 23:17:30 GMT
< Content-Length: 4
<
{ [4 bytes data]
100 159 0 4 100 155 0 35 0:00:04 0:00:04 --:--:-- 36
* 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.242.186.5:8500...
* Connected to consul (10.242.186.5) port 8500 (#0)
> PUT /v1/catalog/register HTTP/1.1
> Host: consul:8500
> User-Agent: curl/7.69.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 125
>
} [125 bytes data]
* upload completely sent off: 125 out of 125 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Mon, 16 Aug 2021 23:17:31 GMT
< Content-Length: 4
<
{ [4 bytes data]
100 129 100 4 100 125 68 2155 --:--:-- --:--:-- --:--:-- 2224
* 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.242.186.5:8500...
* Connected to consul (10.242.186.5) port 8500 (#0)
> PUT /v1/kv/deployment_handler HTTP/1.1
> Host: consul:8500
> User-Agent: curl/7.69.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 110
>
} [110 bytes data]
* upload completely sent off: 110 out of 110 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Mon, 16 Aug 2021 23:17:31 GMT
< Content-Length: 4
<
{ [4 bytes data]
100 114 100 4 100 110 173 4782 --:--:-- --:--:-- --:--:-- 4956
* Connection #0 to host consul left intact
+ shift 2
+ (( 0 ))
truetrue