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

Update getvolumeslimit #1859

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

torredil
Copy link
Member

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

This PR:

  • Sets availableAttachments to a value of 1 in cases where it is calculated to be <= 0. This value is currently clamped to 0 when the undercounting behavior is observed as a result of the unreliable block device mappings count, which the scheduler treats as "infinity". Continuing to schedule stateful pods on instances which are already at capacity is very undesirable. Previously, cluster operators could observe the following error:
nodeinfomanager.go:566] Invalid attach limit value -1 cannot be added to CSINode object for "ebs.csi.aws.com"

which is more helpful. Reporting a value of 1 is safer when erring on the side of caution.

  • Reverts Remove block-device-mapping from attach limit #1843 for the upcoming December release. See PR discussions for more context. The double-counting of CSI-managed block devices remains an issue to be fixed in an upcoming patch release / monthly release.

What testing is done?

  • make test
  • Manual

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 11, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 11, 2023
Copy link

Code Coverage Diff

File Old Coverage New Coverage Delta
github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/cloud/metadata.go 85.7% 86.4% 0.6
github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/cloud/metadata_ec2.go 84.2% 84.1% -0.1
github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver/node.go 79.5% 79.8% 0.3

… limit

Signed-off-by: Eddie Torres <torredil@amazon.com>
Signed-off-by: Eddie Torres <torredil@amazon.com>
@torredil
Copy link
Member Author

cc: @jsafrane

@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 Dec 11, 2023
@ConnorJC3
Copy link
Contributor

/retest
/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 Dec 11, 2023
@k8s-ci-robot k8s-ci-robot merged commit 1aa09de into kubernetes-sigs:master Dec 11, 2023
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/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

4 participants