You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Vault agent injector pod had restarted, for reasons that we don't know yet, and the new replacement that came up immediately began spamming the logs with:
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002300Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002353Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002409Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002454Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002514Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002530Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002567Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002581Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002623Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002669Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002717Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002756Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002815Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002859Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.002892Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003173Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003214Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003227Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003288Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003339Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003401Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003441Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003451Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003514Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003557Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003604Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003643Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003704Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003756Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003791Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003838Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003882Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003928Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003969Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.003979Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004022Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004068Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004117Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004188Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004233Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004280Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004319Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004329Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004356Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004408Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004465Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004517Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004570Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004616Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004670Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004715Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004768Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004807Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004834Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004886Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004929Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004987Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005027Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005037Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005082Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005128Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005179Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005218Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005237Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005308Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005360Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005377Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005424Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005473Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005503Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005566Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005629Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005660Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005694Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005734Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005756Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005804Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005868Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005932Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.005968Z"}
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.006031Z"}
This caused pods to fail to come up because vault agent injector was unresponsive due to the error above. We were able to fix this issue by forcibly restarting the vault agent injector pod.
To Reproduce
I'm not sure how to reproduce; this is the first time we're seeing this issue.
Other useful info to include: kubectl describe deployment <app> and kubectl describe replicaset <app> output.
Expected behavior
When the vault agent injector restarts, and fails due to {"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004280Z"}
It shouldn't infinitely spam that message as fast as possible. If it fails to load the TLS keypair, it might make sense to have it fail its health checks so that it doesn't keep running.
Environment
Kubernetes version: EKS 1.26
vault-k8s version: 1.2.1
Additional context
We're currently looking for additional information right now, we'll post more as we find out more.
We do make use of cert-manager to provide the tls certs to vault-agent-injector
Before the previously working vault agent injector had exited with exit code 2 , before restarting into this bad state.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Vault agent injector pod had restarted, for reasons that we don't know yet, and the new replacement that came up immediately began spamming the logs with:
This caused pods to fail to come up because vault agent injector was unresponsive due to the error above. We were able to fix this issue by forcibly restarting the vault agent injector pod.
To Reproduce
I'm not sure how to reproduce; this is the first time we're seeing this issue.
Application deployment:
Other useful info to include:
kubectl describe deployment <app>
andkubectl describe replicaset <app>
output.Expected behavior
When the vault agent injector restarts, and fails due to
{"@level":"warn","@message":"Could not load TLS keypair: tls: failed to find any PEM data in certificate input. Trying again...","@module":"handler.certwatcher","@timestamp":"2023-06-15T20:38:43.004280Z"}
It shouldn't infinitely spam that message as fast as possible. If it fails to load the TLS keypair, it might make sense to have it fail its health checks so that it doesn't keep running.
Environment
Additional context
We're currently looking for additional information right now, we'll post more as we find out more.
We do make use of cert-manager to provide the tls certs to vault-agent-injector
Before the previously working vault agent injector had exited with exit code 2 , before restarting into this bad state.
The text was updated successfully, but these errors were encountered: