-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consul template doesn't renew Vault token and quits after 12 attempts #1161
Comments
Reading around, I now realize that the "lease" consul-template is talking about is about leases related to dynamic secrets. In my case, the secret itself is static. I don't need to renew its lease. I just need consul-template to refresh the connection token. |
Anybody? |
Would love to have an update on this too! |
I am hitting this as well with 0.19.5 In my case i can see the token being renewed but the error, and the backoff, is still being printed
After the 12th error consul-template dies and kubernetes restart it |
Seems like this and #1224 are related. |
Thanks @catsby, this is indeed fixed. |
Update the consul-image to the 0.24.1-alpine. In the previous versions, there was a bug that caused issues with token renewal. Which could result in a pod/container crash loop. Reference: hashicorp/consul-template#1161
Update the consul-image to the 0.24.1-alpine. In the previous versions, there was a bug that caused issues with token renewal. Which could result in a pod/container crash loop. Reference: hashicorp/consul-template#1161
Consul Template version
consul-template v0.19.5 (57b6c71)
Configuration
Command
./consul-template -log-level trace -config cfg.hcl -template "in.tpl:out.txt"
Debug output
https://gist.github.com/gerases/0b272ce919f7dc4f20d08376b3f99f55
Expected behavior
I issued a token with a TTL of 10 minutes. I thought consul-template would refresh the Vault token. Refreshing the token manually does work and the token is renewable.
The trace messages are a bit confusing:
Was the token renewed or not? Looking at the token properties, I see that it gets renewed by ~2 mins each time.
Actual behavior
Consul-template quits after 12 attempts though the token does seem to get refreshed by ~2 mins each of the 12 times.
The text was updated successfully, but these errors were encountered: