-
Notifications
You must be signed in to change notification settings - Fork 40
OCPBUGS-66346: [release-4.16] Fix capacity calculation #195
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-66346: [release-4.16] Fix capacity calculation #195
Conversation
The previous capacity calculation incorrectly only counted CloudPrivateIPConfigs that had the status set. This is racy and can lead to artificially reduced capacity. Fix it by accounting for all CloudPrivateIPConfigs that are or were assigned to the matching node. Change the calculation in openstack to only consider IPs that were assigned to the port by using `allowed_address_pairs`. Conflicts: pkg/cloudprovider/cloudprovider.go Signed-off-by: Patryk Diak <pdiak@redhat.com> (cherry picked from commit 0739734) Signed-off-by: Patryk Diak <pdiak@redhat.com> (cherry picked from commit f0e5761) (cherry picked from commit 7230ff4)
To avoid the following error being returned when trying to add/remove multiple IPs at once: err: googleapi: Error 412: Invalid fingerprint. From the docs: The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date. Signed-off-by: Patryk Diak <pdiak@redhat.com> (cherry picked from commit 55a735a) (cherry picked from commit da6528b) (cherry picked from commit 84f8e6d)
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
/jira cherry-pick OCPBUGS-66132 |
|
@kyrtapz: Jira Issue OCPBUGS-66132 has been cloned as Jira Issue OCPBUGS-66346. Will retitle bug to link to clone. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@kyrtapz: This pull request references Jira Issue OCPBUGS-66346, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by @huiran0826 |
|
@huiran0826: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
ricky-rav
left a comment
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.
/LGTM
|
/label backport-risk-assessed |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyrtapz, ricky-rav 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 |
|
@kyrtapz: The following test failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
|
/retest-required |
b3854cc
into
openshift:release-4.16
|
@kyrtapz: Jira Issue Verification Checks: Jira Issue OCPBUGS-66346 Jira Issue OCPBUGS-66346 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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 openshift-eng/jira-lifecycle-plugin repository. |
Conflicts:
pkg/cloudprovider/cloudprovider.go