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
OCPBUGS-4185: Fix nodeService.getVolumesLimit() adding more instance #213
OCPBUGS-4185: Fix nodeService.getVolumesLimit() adding more instance #213
Conversation
This commit fixes the `getVolumesLimit` function. Previously, the volume limit for Nitro instances was based off of a regex. This regex is insufficient for the wide variety of Nitro instances that AWS supports today. Nitro instances share attachments with ENIs and NVMe instance stores. The number of attached ENIs is queried through IMDS, against the `network/interfaces/macs` endpoint. The number of already attached block devices is also queried through IMDS, against the `block-device-mapping` endpoint. Currently, IMDS does not provide a way to query NVMe instance store volumes. So, all instances that support NVMe instance stores are listed in `pkg/cloud/volume_limits.go` This commit also added more tests to cover various scenarios.
@gnufied: No Bugzilla bug is referenced in the title of this pull request. In response to this:
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. |
@gnufied: No Bugzilla bug is referenced in the title of this pull request. In response to this:
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. |
@gnufied: This pull request references Jira Issue OCPBUGS-4185, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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. |
@gnufied: No Bugzilla bug is referenced in the title of this pull request. In response to this:
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. |
/jira refresh |
@gnufied: An error was encountered converting bugzilla URL https://issues.redhat.com/browse/OCPBUGS-3775 to an ID for bug OCPBUGS-4185 on the Jira server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details. Full error message.
strconv.Atoi: parsing "https://issues.redhat.com/browse/OCPBUGS-3775": invalid syntax
Please contact an administrator to resolve this issue, then request a bug refresh with In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied 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 |
/jira refresh |
@gnufied: This pull request references Jira Issue OCPBUGS-4185, which is invalid:
Comment In response to this:
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. |
/jira refresh |
@gnufied: This pull request references Jira Issue OCPBUGS-4185, which is valid. The bug has been moved to the POST state. 6 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (wduan@redhat.com), skipping review request. In response to this:
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. |
@gnufied: all tests passed! Full PR test history. Your PR dashboard. 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. |
/lgtm |
/label cherry-pick-approved |
@gnufied: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-4185 has been moved to the MODIFIED state. In response to this:
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. |
This commit fixes the
getVolumesLimit
function.Previously, the volume limit for Nitro instances was based off of a regex. This regex is insufficient for the wide variety of Nitro instances that AWS supports today.
Nitro instances share attachments with ENIs and NVMe instance stores.
The number of attached ENIs is queried through IMDS, against the
network/interfaces/macs
endpoint.The number of already attached block devices is also queried through IMDS, against the
block-device-mapping
endpoint.Currently, IMDS does not provide a way to query NVMe instance store volumes. So, all instances that support NVMe instance stores are listed in
pkg/cloud/volume_limits.go
This commit also added more tests to cover various scenarios.