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

CSI: fix handling of garbage collected node in node unpublish #12350

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

tgross
Copy link
Member

@tgross tgross commented Mar 22, 2022

Fixes #12346 (ref #12346 (comment))

When a node is garbage collected, we assume that the volume is no
longer attached to it and ignore the ErrUnknownNode error. But we
used errors.Is to check for a wrapped error, and RPC flattens the
errors during serialization. This results in an error check that works
in automated testing but not in real clusters. Use a string contains
check instead.

@tgross tgross changed the title csi: fix handling of garbage collected node in node unpublish CSI: fix handling of garbage collected node in node unpublish Mar 22, 2022
When a node is garbage collected, we assume that the volume is no
longer attached to it and ignore the `ErrUnknownNode` error. But we
used `errors.Is` to check for a wrapped error, and RPC flattens the
errors during serialization. This results in an error check that works
in automated testing but not in real clusters. Use a string contains
check instead.
@tgross tgross force-pushed the b-csi-unknown-node-err-handling branch from 7938142 to 8084e33 Compare March 22, 2022 17:04
@vercel vercel bot temporarily deployed to Preview – nomad March 22, 2022 17:04 Inactive
@tgross tgross added stage/needs-backporting backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line type/bug theme/storage labels Mar 22, 2022
@tgross tgross added backport/1.1 and removed backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line labels Mar 22, 2022
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tgross tgross merged commit 73afdea into main Mar 22, 2022
@tgross tgross deleted the b-csi-unknown-node-err-handling branch March 22, 2022 19:40
@lgfa29 lgfa29 added backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line labels Apr 19, 2022
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
When a node is garbage collected, we assume that the volume is no
longer attached to it and ignore the `ErrUnknownNode` error. But we
used `errors.Is` to check for a wrapped error, and RPC flattens the
errors during serialization. This results in an error check that works
in automated testing but not in real clusters. Use a string contains
check instead.
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
When a node is garbage collected, we assume that the volume is no
longer attached to it and ignore the `ErrUnknownNode` error. But we
used `errors.Is` to check for a wrapped error, and RPC flattens the
errors during serialization. This results in an error check that works
in automated testing but not in real clusters. Use a string contains
check instead.
@shoenig shoenig mentioned this pull request Jun 2, 2022
@tgross tgross added this to the 1.3.0 milestone Aug 23, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line theme/storage type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSI error releasing volume claims
3 participants