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

Unable to get klog.V(x) logs from k8s.io/mount-utils even cli flag --v=5 is set. #1369

Closed
yizha opened this issue Aug 31, 2022 · 0 comments · Fixed by #1370
Closed

Unable to get klog.V(x) logs from k8s.io/mount-utils even cli flag --v=5 is set. #1369

yizha opened this issue Aug 31, 2022 · 0 comments · Fixed by #1370
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@yizha
Copy link

yizha commented Aug 31, 2022

/kind bug

What happened?
Unable to get klog.V(x) logs from k8s.io/mount-utils even cli flag --v=5 is set.

What you expected to happen?
After setting --v=5 logs we should be able to see all V(x) logs from k8s.io/mount-utils.

How to reproduce it (as minimally and precisely as possible)?

  1. Modify the ebs-csi-node daemonset, for the ebs-plugin container change/add cli flag --v=5, wait until all ebs-csi-node pods are restarted.
  2. Restart a deployment (or statefulset) which mounting an ebs volume through the csi driver.
  3. Find the ebs-csi-node pod on the same node of the pod from previous step, check its ebs-plugin container logs, cannot find any V(x) logs from k8s.io/mount-utils.

Anything else we need to know?:
In cmd/options.go, it is initialized with klog but k8s.io/mount-utils uses klog/v2, I am not an expect but doesn't that mean klog/v2 is not initialized and the level is the default value (0) even cli flag --v=5 is set?

Environment

  • Kubernetes version (use kubectl version): v1.20
  • Driver version: v1.9.0
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 31, 2022
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

Successfully merging a pull request may close this issue.

2 participants