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: add grpc retries to client controller RPCs #7549

Merged
merged 3 commits into from
Mar 30, 2020
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented Mar 30, 2020

Fixes #6863

The CSI Specification defines various gRPC Errors and how they may be retried. After auditing all our CSI RPC callas in #6863 (comment), this changeset:

  • adds retries and backoffs to the where they were needed but not implemented
  • annotates those CSI RPCs that do not need retries so that we don't wonder whether it's been left off accidentally
  • added a timeout and cancellation context to the Probe call, which didn't have one.

tgross added 3 commits March 30, 2020 14:37
Add grpc retries with backoff to `ControllerPublishVolume`,
`ControllerUnpublishVolume`, and `VolumeValidateCapabilities`.
// as fatal.
// In the future, we can provide more useful error messages based on
// different types of error. For error documentation see:
// https://github.com/container-storage-interface/spec/blob/4731db0e0bc53238b93850f43ab05d9355df0fd9/spec.md#nodestagevolume-errors
Copy link
Member Author

Choose a reason for hiding this comment

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

ref #7424 for where this extra info went

Copy link
Contributor

@langmartin langmartin left a comment

Choose a reason for hiding this comment

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

This looks good! My only concern was the missing data, I added a comment to #7424 about getting ResourceExhausted back to the CSIVolume struct.

@tgross tgross merged commit ffa13ad into master Mar 30, 2020
@tgross tgross deleted the b-csi-grpc-retries branch March 30, 2020 20:26
@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 Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically Retry Retriable RPC failures to CSI Plugins
2 participants