Skip to content

fix(csi-s3/issue-340): improve volume unmount reliability#413

Open
MattPOlson wants to merge 1 commit intodatashim-io:masterfrom
MattPOlson:fix/issue-340
Open

fix(csi-s3/issue-340): improve volume unmount reliability#413
MattPOlson wants to merge 1 commit intodatashim-io:masterfrom
MattPOlson:fix/issue-340

Conversation

@MattPOlson
Copy link

  • Make NodeUnpublishVolume idempotent by checking mount status before unmounting
  • Ensure fuse process cleanup occurs even if unmount operation fails
  • Improve error handling and logging during unmount operations

This prevents errors when kubelet retries unmounting already-unmounted
volumes and ensures orphaned fuse processes are properly cleaned up.

The changes address two key issues:

  1. nodeserver.go:168 - Added check to prevent errors on retry attempts
  2. mounter.go:66 - Improved error handling to ensure fuse process cleanup happens regardless of unmount success

  - Make NodeUnpublishVolume idempotent by checking mount status before unmounting
  - Ensure fuse process cleanup occurs even if unmount operation fails
  - Improve error handling and logging during unmount operations

  This prevents errors when kubelet retries unmounting already-unmounted
  volumes and ensures orphaned fuse processes are properly cleaned up.

  The changes address two key issues:
  1. nodeserver.go:168 - Added check to prevent errors on retry attempts
  2. mounter.go:66 - Improved error handling to ensure fuse process cleanup happens regardless of unmount success

Signed-off-by: Matt Olson <ucf.molson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant