Closed rafaelmagu closed 1 month ago
Further context (and a recorded fix) -
The consul servers were running on Consul v1.10.1 | consul-template v0.34.0 while the client (zookeeper) had been upgraded to use Consul v1.19.2 | consul-template v0.39.2. After upgrading the consul servers to v1.19.2 the zookeeper consul-template issues have been resolved.
So this was a backwards compatibility issue.
When using
service "web|passing,warning"
in arange
loop, all catalog services are returned, instead of just the specific ones. This happens despite correct responses from both Consul CLI and the Consul API.Consul Template version
consul-template v0.39.1 (cc8f954)
Configuration
Command
Debug output
Debug output
Expected behavior
When rendered, the above template should yield a result similar to:
Actual behavior
Instead, we end up with many
server
entries, for all types of services (not just Zookeeper):Notes
If I run the Consul Template command with
-once
, it will correctly render the file as expected. With-once
removed, the file keeps being re-rendered with many extraserver
lines.Steps to reproduce
zookeeper
is present in the catalog in a warning or passing stateReferences