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-269): nfsmount mountPoint may be incorrect in certain cases #345

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Sep 27, 2024

TL;DR

Improved NFS mount handling, error reporting, and refcount management.

What changed?

  • Enhanced NFS mount logging and error handling
  • Improved refcount management for NFS mounts
  • Updated ControllerExpandVolume to return NotFound instead of Internal error
  • Removed unused locateMountIP method from interfaces
  • Added retry mechanism for NFS mounts
  • Implemented mount point removal after successful unmount
  • Refactored LogActiveMounts and gcInactiveMounts methods

How to test?

  1. Test NFS mount operations with various scenarios (successful mounts, failed mounts, retries)
  2. Verify correct refcount management by mounting and unmounting volumes multiple times
  3. Test ControllerExpandVolume with non-existent volumes
  4. Verify mount point removal after unmounting
  5. Check logs for improved error reporting and mount status information

Why make this change?

These changes aim to improve the reliability and robustness of NFS mount operations, provide better error handling and reporting, and enhance the overall stability of the CSI driver. The refactored refcount management and mount tracking should lead to more accurate resource management and prevent potential issues with stale mounts.

Copy link

graphite-app bot commented Sep 27, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (09/27/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 from c0ad603 to a7995be Compare September 27, 2024 11:50
@sergeyberezansky sergeyberezansky force-pushed the sergey/refcount-logic-fix-nfs branch from d052835 to 17b3135 Compare September 27, 2024 11:51
@sergeyberezansky sergeyberezansky force-pushed the sergey/delete-nfs-perms-on-fs-delete branch from a7995be to 865370d Compare September 27, 2024 12:27
@sergeyberezansky sergeyberezansky force-pushed the sergey/refcount-logic-fix-nfs branch from 17b3135 to 7358d79 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:16 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 27, 9:17 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 27, 9:23 AM EDT: @sergeyberezansky merged this pull request with Graphite.

@sergeyberezansky sergeyberezansky changed the base branch from sergey/delete-nfs-perms-on-fs-delete to graphite-base/345 September 27, 2024 13:06
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/345 to dev September 27, 2024 13:14
@sergeyberezansky sergeyberezansky force-pushed the sergey/refcount-logic-fix-nfs branch from 7358d79 to cf1f59a Compare September 27, 2024 13:15
@sergeyberezansky sergeyberezansky force-pushed the sergey/refcount-logic-fix-nfs branch from cf1f59a to fe2dd1e Compare September 27, 2024 13:17
@sergeyberezansky sergeyberezansky merged commit cb63780 into dev Sep 27, 2024
9 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/refcount-logic-fix-nfs 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