Skip to content
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

Better error reporting #1753

Open
ritazh opened this issue Feb 12, 2025 · 0 comments
Open

Better error reporting #1753

ritazh opened this issue Feb 12, 2025 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ritazh
Copy link
Member

ritazh commented Feb 12, 2025

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

When driver is failing to initialize, additional logs would be helpful.

e.g. this log output indicates the rest mapper initialization failed, could be due to a network issue on the node causing the driver unable to talk to the kube-apiserver.

k logs secrets-store-csi-driver-windows -n kube-system -c secrets-store
I0206 00:04:40.450395 5564 exporter.go:35] "initializing metrics backend" backend="prometheus"
E0206 00:05:02.650206 5564 main.go:167] "failed to start manager" err="could not create RESTMapper from config"
E0206 00:05:02.650206 5564 main.go:85] "unrecoverable error encountered" err="could not create RESTMapper from config"

What did you expect to happen:

Additional logs including The driver is unable to communicate with the kube-apiserver. Check network connectivity etc would be helpful.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

The error above is returned by https://github.com/kubernetes-sigs/controller-runtime. Evaluate to see if we need to upgrade to a newer version.

Which provider are you using:
[e.g. Azure Key Vault, HashiCorp Vault, etc. Have you checked out the provider's repo for more help?]

AKV

Environment:

  • Secrets Store CSI Driver version: (use the image tag):
  • Kubernetes version: (use kubectl version):
@ritazh ritazh added the kind/bug Categorizes issue or PR as related to a bug. label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant