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

Remove premature CreateVolume error if requested IOPS is below minimum #1883

Conversation

AndrewSirenko
Copy link
Contributor

Is this a bug fix or adding new feature?
Bug fix

What is this PR about? / Why do we need it?
EBS CSI Driver will let EC2 CreateVolume enforce minimum IOPS values instead of enforcing the hardcoded minimum limits in cloud.go (Unless allowAutoIOPSPerGBIncrease is set).

Note: This is a volume-type agnostic version of PR #1879, as requested by EBS CSI Driver team.

Pro:

Con:

  • Extra CreateVolume calls are made to EC2 API for misconfigured io1/io2 PVCs (potentially endless unless an infeasable PVC status is added to CreateVolume similar to how it was added for Update ControllerModifyVolume Status API #4298). This could increase chance of EC2 throttling, but can be solved at the Kubernetes + CSI level via infeasable PVC parameter.

See #1879

What testing is done?
make test, Manual testing

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 2, 2024
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 2, 2024
Copy link

github-actions bot commented Jan 2, 2024

Code Coverage Diff

This PR does not change the code coverage

@AndrewSirenko AndrewSirenko force-pushed the remove-minimum-iops-validation branch from f57bf3d to 190f526 Compare January 2, 2024 23:07
@AndrewSirenko
Copy link
Contributor Author

/retest

pkg/cloud/cloud.go Show resolved Hide resolved
pkg/cloud/cloud.go Show resolved Hide resolved
Copy link
Member

@torredil torredil left a comment

Choose a reason for hiding this comment

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

/lgtm

pkg/cloud/cloud_test.go Show resolved Hide resolved
pkg/cloud/cloud_test.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 3, 2024
@AndrewSirenko AndrewSirenko force-pushed the remove-minimum-iops-validation branch from 190f526 to 7e8ec74 Compare January 10, 2024 17:44
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 10, 2024
@AndrewSirenko
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 10, 2024
Copy link
Member

@torredil torredil left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 10, 2024
@ConnorJC3
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ConnorJC3

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2024
@k8s-ci-robot k8s-ci-robot merged commit 095c143 into kubernetes-sigs:master Jan 10, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants