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

fix(CSI-270): filesystem-backed volumes cannot be deleted due to stale NFS permissions #344

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Sep 26, 2024

TL;DR

Enhanced NFS support, improved error handling, and added filesystem deletion safeguards.

What changed?

  • Added EnsureNoNfsPermissionsForFilesystem function to remove NFS permissions before filesystem deletion.
  • Improved error handling and logging in various functions.
  • Updated NodeUnpublishVolume to remove the target path if it exists but is not a Weka mount.
  • Implemented NodeStageVolume and NodeUnstageVolume as unimplemented features.
  • Enhanced volume deletion process to handle NFS permissions.
  • Updated documentation links and fixed minor typos.

How to test?

  1. Test NFS-related operations, especially filesystem deletion with NFS permissions.
  2. Verify error handling in various scenarios, particularly during volume operations.
  3. Check the behavior of NodeUnpublishVolume when the target path exists but is not a Weka mount.
  4. Ensure NodeStageVolume and NodeUnstageVolume return unimplemented status.
  5. Test volume deletion process, particularly with NFS transport.

Why make this change?

These changes improve the robustness of the CSI driver, particularly when using NFS transport. They address potential issues with filesystem deletion when NFS permissions are present and enhance error handling and logging for better diagnostics. The updates also align the driver with expected CSI behavior for certain operations.

Copy link

graphite-app bot commented Sep 26, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (09/26/24)

1 reviewer was added to this PR based on Sergey Berezansky's automation.

@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch 7 times, most recently from 9b93534 to 62384c3 Compare September 27, 2024 10:05
@sergeyberezansky sergeyberezansky changed the base branch from sergey/add-nfs-sanity to sergey/override-nfs-target-ips September 27, 2024 10:05
@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch from 62384c3 to c0ad603 Compare September 27, 2024 10:30
@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch 2 times, most recently from a7995be to 865370d Compare September 27, 2024 12:27
Copy link
Collaborator Author

sergeyberezansky commented Sep 27, 2024

Merge activity

  • Sep 27, 8:57 AM EDT: @sergeyberezansky started a stack merge that includes this pull request via Graphite.
  • Sep 27, 9:07 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 27, 9:09 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 27, 9:14 AM EDT: @sergeyberezansky merged this pull request with Graphite.

@sergeyberezansky sergeyberezansky changed the base branch from sergey/override-nfs-target-ips to graphite-base/344 September 27, 2024 12:58
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/344 to dev September 27, 2024 13:05
@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch from 865370d to a89fce2 Compare September 27, 2024 13:06
@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch from a89fce2 to 28837a9 Compare September 27, 2024 13:08
@sergeyberezansky sergeyberezansky merged commit a2cab52 into dev Sep 27, 2024
9 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/delete-nfs-perms-on-fs-delete branch September 29, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant