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-276): allow unpublish even if publish failed with stale file handle #356

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Oct 8, 2024

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.

Copy link

graphite-app bot commented Oct 8, 2024

Graphite Automations

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

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

Copy link
Collaborator Author

sergeyberezansky commented Oct 8, 2024

Merge activity

  • Oct 8, 11:10 AM EDT: @sergeyberezansky started a stack merge that includes this pull request via Graphite.
  • Oct 8, 12:02 PM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 8, 12:04 PM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 8, 12:24 PM EDT: @sergeyberezansky merged this pull request with Graphite.

@sergeyberezansky sergeyberezansky changed the base branch from sergey/permit-all-nfs-versions to graphite-base/356 October 8, 2024 15:38
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/356 to dev October 8, 2024 16:00
@sergeyberezansky sergeyberezansky force-pushed the sergey/allow-unpublish-on-stale-file-handle branch from a467681 to 9bfc8e4 Compare October 8, 2024 16:01
@sergeyberezansky sergeyberezansky force-pushed the sergey/allow-unpublish-on-stale-file-handle branch from 9bfc8e4 to 5dd547a Compare October 8, 2024 16:03
@sergeyberezansky sergeyberezansky merged commit cf3a1bc into dev Oct 8, 2024
12 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/allow-unpublish-on-stale-file-handle branch October 15, 2024 17:35
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