-
Notifications
You must be signed in to change notification settings - Fork 807
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 support for io2 Block Express volumes #1409
Conversation
/hold for reviews Me and @torredil manually tested, this is good for review. |
/lgtm |
cc: @rdpsin |
/lgtm Can we also confirm that setting IOPS greater than 64K on non-bx instances will return an error? (Tbf, I don't see why not, but would still like to confirm). |
FYI, it'd be useful to add some details in the commit message for posterity. |
Thanks. /lgtm |
@rdpsin there's no way to know at the time of creation what type of instance the volume will be attached to. so it will be created, but fail to attach to instances that do not support block express. Unfortunately the error message is somewhat poor ( |
I see. This can potentially lead to leaked resources. As long as we are explicit in our docs, I guess it should be fine. Can you add this? |
175f0f8
to
9a8f104
Compare
03088a5
to
6b7732c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline and decided against instance type validation using metadata during volume mounting to:
- Avoid introducing new dependency on metadata. Long-term, we want to move to a world where metadata is an entirely optional dependency and not a requirement on both the controller & node.
- Avoid being fragile to changes by requiring a CSI driver update when/if EBS supports block express on other instance types. It would be best to rely on the EBS api as source of truth. The downside here is that setting IOPS > 64K on non-bx supported instances results in
failed, expected device to be attached but was detaching
which is not very helpful.
Manually tested, these changes lgtm.
io2 Block Express, which io2 volumes automatically get upgraded to on certain instance types, has a higher iops limit than normal io2 volumes Signed-off-by: Connor Catlett <[email protected]>
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/unhold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorJC3, torredil 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 |
Signed-off-by: Connor Catlett [email protected]