-
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
"error":"keys: failed to verify client certificate: x509: certificate has expired or is not yet valid" #15740
Comments
Hey @Tejaswini5327, thanks for raising this issue. To help us look into this are you able to provide the configuration you are using for etcd in relation to certificates and please briefly outline the procedure you used to copy the new certificates to the pods? |
Hey @jmhbnz, I met other issue when kubeadm alpha certs renew all, Then I had copy the new certificates to the other two etcd node, See log had many tls connect error as fellow. CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED CERTIFICATE AUTHORITY EXPIRES RESIDUAL TIME EXTERNALLY MANAGED [master node] 192.16.0.1 etcd log |
Closing this support issue as information requested above has not been provided, and there has been no updates for approximately a month. @Tejaswini5327 for any future support requests please create a github discussion instead of a bug issue. Refer https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/triage_issues.md#support-requests @prometheus-tao please create a separate github discussion for support, or a new bug report filling in the template if you believe you have found a bug, along with clear steps to reproduce it. |
What happened?
We have 3 member etcd cluster. All of the 3 pods have expired certificates then we are getting certficate expired logs which is expected because ETCD has expired certificates. After sometime we are placing correct valid certificates in all of the pods of ETCD. But in all etcd pods , we still see the following error messages getting printed in logs.
{"level":"warn","ts":"2023-04-18T07:04:23.473Z","caller":"embed/config_logging.go:169","msg":"rejected connection","remote-addr":"192.168.22.126:37830","server-name":"etcd.zragsai","error":"keys: failed to verify client certificate: x509: certificate has expired or is not yet valid: current time 2023-04-18T07:04:23Z is after 2023-04-18T07:04:06Z"}
{"level":"warn","ts":"2023-04-18T07:04:52.552Z","caller":"embed/config_logging.go:169","msg":"rejected connection","remote-addr":"192.168.211.110:40310","server-name":"etcd.zragsai","error":"keys: failed to verify client certificate: x509: certificate has expired or is not yet valid: current time 2023-04-18T07:04:52Z is after 2023-04-18T07:04:06Z"}
{"level":"warn","ts":"2023-04-18T07:04:53.558Z","caller":"embed/config_logging.go:169","msg":"rejected connection","remote-addr":"192.168.211.110:40376","server-name":"etcd.zragsai","error":"keys: failed to verify client certificate: x509: certificate has expired or is not yet valid: current time 2023-04-18T07:04:53Z is after 2023-04-18T07:04:06Z"}
{"level":"warn","ts":"2023-04-18T07:07:28.609Z","caller":"embed/config_logging.go:169","msg":"rejected connection","remote-addr":"10.117.148.205:17702","server-name":"etcd.zragsai","error":"keys: failed to verify client certificate: x509: certificate has expired or is not yet valid: current time 2023-04-18T07:07:28Z is after 2023-04-18T07:04:06Z"}
Now we want to ask one question is, even when we place valid certificates in etcd pods still why certificate expiry error messages are coming in all of the etcd pods.
What did you expect to happen?
No certificate expiry log should be seen in any of the pods after renewal of certificates.
How can we reproduce it (as minimally and precisely as possible)?
The certificate error logs are printed even after the renewal of certificates.
Anything else we need to know?
No response
Etcd version (please run commands below)
bash-4.4$ etcd --version
etcd Version: 3.5.5
Git SHA: 19002cf
Go Version: go1.16.15
Go OS/Arch: linux/amd64
bash-4.4$ etcdctl version
etcdctl version: 3.5.5
API version: 3.5
Etcd configuration (command line flags or environment variables)
paste your configuration here
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output
The text was updated successfully, but these errors were encountered: