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 condition on iopspergb key being mandatory for io1 volumes #1590

Merged

Conversation

surian
Copy link
Contributor

@surian surian commented May 4, 2023

Condition on iopsPerGB key being mandatory for io1 volumes introduced by #767 is irrelevant and should be removed as it's possible to create a io1 volume by specifying the desired number of iops.

$ aws ec2 create-volume --availability-zone eu-west-3a --iops 1337 --size 100 --volume-type io1
{
    "AvailabilityZone": "eu-west-3a",
    "CreateTime": "2023-05-04T12:30:04+00:00",
    "Encrypted": false,
    "Size": 100,
    "SnapshotId": "",
    "State": "creating",
    "VolumeId": "vol-0cba6d099003264f2",
    "Iops": 1337,
    "Tags": [],
    "VolumeType": "io1",
    "MultiAttachEnabled": false
}

The documentation updated by #1409 is also already mentioning that iopPerGB or iops can be used for io1 volumes but it's today impossible to use the iops key because of this condition.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 4, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: surian / name: Christophe-Alexandre Ferriol (b3f6c6c)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label May 4, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @surian!

It looks like this is your first PR to kubernetes-sigs/aws-ebs-csi-driver 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/aws-ebs-csi-driver has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 4, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @surian. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 4, 2023
@torredil
Copy link
Member

torredil commented May 4, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 4, 2023
@surian
Copy link
Contributor Author

surian commented May 9, 2023

/retest

@ConnorJC3
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2023
@@ -1521,45 +1521,6 @@ func TestCreateVolume(t *testing.T) {
checkExpectedErrorCode(t, err, codes.Aborted)
},
},
{
name: "fail with missing iopsPerGB parameter",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test to check for success when using io1/io2 volume with no iopsPerGb parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added 2 tests (one for io1, one for io2) to check for success when iops parameter is used instead of iopspergb.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed 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. labels May 15, 2023
@surian
Copy link
Contributor Author

surian commented May 15, 2023

/retest

@surian surian requested a review from rdpsin May 15, 2023 11:14
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2023
@ConnorJC3
Copy link
Contributor

/retest

flaky test

Could you please squash your commits? Other than that, this PR looks good to me as written.

@rdpsin
Copy link
Contributor

rdpsin commented May 18, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rdpsin

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 May 18, 2023
@ConnorJC3
Copy link
Contributor

/hold

needs squash

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 18, 2023
@surian surian force-pushed the remove_constraint_io1_volume branch from 9abe444 to 0f78b72 Compare May 19, 2023 13:53
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 19, 2023
@surian
Copy link
Contributor Author

surian commented May 19, 2023

Could you please squash your commits? Other than that, this PR looks good to me as written.

Done 👍

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.

Thanks!
/unhold

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels May 19, 2023
@k8s-ci-robot k8s-ci-robot merged commit 771e745 into kubernetes-sigs:master May 19, 2023
9 of 10 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants