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

Sometimes Kubelet keeps retrying volume unmount causing excessive logs #166

Open
mugdha-adhav opened this issue Feb 11, 2025 · 0 comments
Open
Assignees
Labels
work-in-progress Someone is working on this already

Comments

@mugdha-adhav
Copy link
Collaborator

mugdha-adhav commented Feb 11, 2025

Background

Sometimes kubelet gets stuck in a loop trying to unmount a volume by calling NodeUnpublishVolume(). This causes excessive error logs to be generated by kubelet.

Suggested approaches

  1. Improve/fix error handling in NodeUnpublishVolume function.
  2. Add synchronicity in unmount calls using locks, mutexes or by tracking inFlight requests.

Additional information

The error message looks something like -

kubelet: E0108 07:04:50.385776 4499 reconciler_common.go:169] "operationExecutor.UnmountVolume failed (controllerAttachDetachEnabled true) for volume \"xyz\" (UniqueName: \"kubernetes.io/csi/3a735360-c5b8-4eb5-8f4d-c8191e76bb9b-xyz\") pod \"3a735360-c5b8-4eb5-8f4d-c8191e76bb9b\" (UID: \"3a735360-c5b8-4eb5-8f4d-c8191e76bb9b\") : UnmountVolume.NewUnmounter failed for volume \"xyz\" (UniqueName: \"kubernetes.io/csi/3a735360-c5b8-4eb5-8f4d-c8191e76bb9b-xyz\") pod \"3a735360-c5b8-4eb5-8f4d-c8191e76bb9b\" (UID: \"3a735360-c5b8-4eb5-8f4d-c8191e76bb9b\") : kubernetes.io/csi: unmounter failed to load volume data file [/var/lib/kubelet/pods/3a735360-c5b8-4eb5-8f4d-c8191e76bb9b/volumes/kubernetes.io<del>csi/xyz/mount]: kubernetes.io/csi: failed to open volume data file [/var/lib/kubelet/pods/3a735360-c5b8-4eb5-8f4d-c8191e76bb9b/volumes/kubernetes.io</del>csi/xyz/vol_data.json]: open /var/lib/kubelet/pods/3a735360-c5b8-4eb5-8f4d-c8191e76bb9b/volumes/kubernetes.io~csi/xyz/vol_data.json: no such file or directory"

Related kubelet issue: kubernetes/kubernetes#116847 (comment)

@mugdha-adhav mugdha-adhav self-assigned this Feb 11, 2025
@mugdha-adhav mugdha-adhav added the work-in-progress Someone is working on this already label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress Someone is working on this already
Projects
None yet
Development

No branches or pull requests

1 participant