Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CSI-276): allow unpublish even if publish failed with stale file …
…handle (#356) ### TL;DR Improved error handling and logging in the NodeServer implementation. ### What changed? - Added handling for stale NFS mounts in `NodeUnpublishVolume`. ### How to test? 1. Provision a snapshot-backed PVC and attach it to node on a 2.5.0-beta version of CSI plugin. You might hit a "stale file handle" error that causes the pod to not be able to access the volume contents. In such case, deletion of the pod will fail either. 2. Upgrade the plugin to latest version 3. Unpublish the volume by terminating the pod. Ensure that the PVC is deleted ### Why make this change? These changes ensure that pods with mis-attached PVCs (on version 2.5.0-beta2, 2.5.0-beta) may be detached and pods can be terminated. Without the fix, a node reboot might be required to remove the malfunctioning pods.
- Loading branch information