-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Enabling authentication causes noisy logs for every /readyz call #18244
Comments
Right now the basic auth tokens that are deleted after `--auth-token-ttl` cause info-level logs to be emitted. Change this to debug. This helps with the issue at etcd-io#18244 where calling `/readyz` frequently pollutes the etcd server logs with this log message. Fixes etcd-io#18244.
Thanks @ahmetb for reporting this issue. etcd/server/etcdserver/api/etcdhttp/health.go Line 429 in 04082b7
@serathius does it make sense to log the msg of |
Sounds good. |
@ahmetb, can you help backporting the fix to |
@ivanvc requires org member permissions, if you have them, please rerun the command on the PR. |
Ah, we used to do backports manually; we recently enabled the cherrypick plugin. Let me give it a try, but if it needs manual intervention, I don't think I'm allowed to work on top of that branch. |
Right now the basic auth tokens that are deleted after `--auth-token-ttl` cause info-level logs to be emitted. Change this to debug. This helps with the issue at etcd-io#18244 where calling `/readyz` frequently pollutes the etcd server logs with this log message. Fixes etcd-io#18244. Signed-off-by: Ahmet Alp Balkan <[email protected]>
@ahmetb, can you open a PR to update 3.5's CHANGELOG with the backport? |
Discussed during sig-etcd triage meeting. Closing as complete as |
Right now the basic auth tokens that are deleted after `--auth-token-ttl` cause info-level logs to be emitted. Change this to debug. This helps with the issue at etcd-io#18244 where calling `/readyz` frequently pollutes the etcd server logs with this log message. Fixes etcd-io#18244. Signed-off-by: Ahmet Alp Balkan <[email protected]>
Right now the basic auth tokens that are deleted after `--auth-token-ttl` cause info-level logs to be emitted. Change this to debug. This helps with the issue at etcd-io#18244 where calling `/readyz` frequently pollutes the etcd server logs with this log message. Fixes etcd-io#18244. Signed-off-by: Ahmet Alp Balkan <[email protected]>
Bug report criteria
What happened?
We run etcd with authentication enabled, we have a service discovery system that frequently polls the
/readyz
HTTP endpoint on etcd server. For every/readyz
request, etcd prints two log statements saying"deleted a simple token"
. Example output:Combined with the fact that our service discovery system polls this endpoint every 5 seconds, practically this statement single handedly emits most of the logs we get out of etcd.
What did you expect to happen?
No logs at the default level for something inconsequential like this.
How can we reproduce it (as minimally and precisely as possible)?
Run etcd server on a macOS terminal
In another terminal window, add a user, then enable authentication
Make a few successive /readyz queries back to back
Wait 5 seconds, and observe logs are flooded with this:
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
(shortened the TTL to illustrate the problem).
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Not applicable.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: