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

Add 15 second rate limit to CreateSnapshot #1659

Closed

Conversation

ConnorJC3
Copy link
Contributor

Is this a bug fix or adding new feature?

Bug fix

What is this PR about? / Why do we need it?

See #1608
See kubernetes-csi/external-snapshotter#778

Adds a 15 second rate limit to CreateSnapshot when the failure originates from CreateSnapshot in cloud (i.e. the error likely originates from the AWS API).

This prevents the driver from getting stuck in an infinite loop if snapshot creation fails, where it will indefinately retry creating a snapshot and continue to receive an error because it is going too fast.

What testing is done?

Manual/CI/Inflight already has unit tests

See kubernetes-sigs#1608
See kubernetes-csi/external-snapshotter#778

Adds a 15 second rate limit to CreateSnapshot when the failure
originates from CreateSnapshot in cloud (i.e. the error likely
originates from the AWS API).

This prevents the driver from getting stuck in an infinite loop if
snapshot creation fails, where it will indefinately retry creating a
snapshot and continue to receive an error because it is going too fast.

Signed-off-by: Connor Catlett <conncatl@amazon.com>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from connorjc3. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from gtxu and rdpsin June 26, 2023 18:26
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 26, 2023
@k8s-ci-robot
Copy link
Contributor

@ConnorJC3: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-aws-ebs-csi-driver-test-e2e-external-eks-windows 56c9407 link false /test pull-aws-ebs-csi-driver-test-e2e-external-eks-windows

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hanyuel
Copy link
Contributor

hanyuel commented Jun 28, 2023

The change in this PR is identical to #1611 . What was the reason we need a new PR?

@hanyuel
Copy link
Contributor

hanyuel commented Jun 28, 2023

The change in this PR is identical to #1611 . What was the reason we need a new PR?

Never mind. I figured out it's because both are merging from the same branch.

@ConnorJC3
Copy link
Contributor Author

To give more context, #1611 was created on a previous version of this change, but this methodology differs so drastically from the version that @rdpsin reviewed in #1611 that I figured starting fresh with a new PR was the appropriate choice.

This PR supersedes and replaces #1611.

@torredil
Copy link
Member

torredil commented Jul 3, 2023

This PR can be closed now that kubernetes-csi/external-snapshotter#871 has (hopefully) been fixed.

@ConnorJC3
Copy link
Contributor Author

/close

@k8s-ci-robot
Copy link
Contributor

@ConnorJC3: Closed this PR.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants