Closed dylanmei closed 8 years ago
Tags have been getting lost when registering tasks that also include discovery info.
tags=test
Before the change (with some fields omitted)
$ curl -s consul:8500/v1/catalog/service/elasticsearch | jq . [{ "Node": "mesos-follower-1", "ServiceName": "elasticsearch", "ServiceTags": [ "CLIENT_PORT" ], "ServicePort": 9200 }, { "Node": "mesos-follower-1", "ServiceName": "elasticsearch", "ServiceTags": [ "TRANSPORT_PORT" ], "ServicePort": 9300 }]
After the change, notice test is included in ServiceTags.
test
ServiceTags
$ curl -s consul:8500/v1/catalog/service/elasticsearch | jq . [{ "Node": "mesos-follower-1", "ServiceName": "elasticsearch", "ServiceTags": [ "test", "CLIENT_PORT" ], "ServicePort": 9200 }, { "Node": "mesos-follower-1", "ServiceName": "elasticsearch", "ServiceTags": [ "test", "TRANSPORT_PORT" ], "ServicePort": 9300 }]
Looks good. Thanks!
Awesome. Cheers!
Tags have been getting lost when registering tasks that also include discovery info.
Before-and-after example
tags=test
Before the change (with some fields omitted)
After the change, notice
test
is included inServiceTags
.