-
Notifications
You must be signed in to change notification settings - Fork 136
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-33294: Reuse node-subnet from cache if exists #2163
OCPBUGS-33294: Reuse node-subnet from cache if exists #2163
Conversation
This PR is to return an already allocated subnet instead of creating a new one if a combination of subnet and node name already exists in the cache. This PR is to stop multiple allocation of node-subnet from ClusterNetwork CIDR for any node if addition of 'k8s.ovn.org/node-subnets' annotation gets delayed but does not reach default BackOff[1] time limit for retry framework and meanwhile syncNodeNetworkAnnotations[2] gets executed multiple times. JIRA: https://issues.redhat.com/browse/OCPBUGS-25733 [1] - https://github.com/kubernetes/client-go/blob/v0.26.1/util/retry/util.go#L38 [2] - https://github.com/ovn-org/ovn-kubernetes/blob/master/go-controller/pkg/clustermanager/node/node_allocator.go#L178 Signed-off-by: Arnab Ghosh <arnabghosh89@gmail.com> (cherry picked from commit afe0b64)
@arghosh93: This pull request references Jira Issue OCPBUGS-33294, 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 openshift-eng/jira-lifecycle-plugin repository. |
Hi @arghosh93. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
/jira refresh |
@pperiyasamy: This pull request references Jira Issue OCPBUGS-33294, 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 openshift-eng/jira-lifecycle-plugin repository. |
/ok-to-test |
/retest-required |
1 similar comment
/retest-required |
/jira refresh |
@tssurya: This pull request references Jira Issue OCPBUGS-33294, 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 openshift-eng/jira-lifecycle-plugin repository. |
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
/approve
/label bacport-risk-assessed
/label backport-risk-assessed |
@tssurya: The label(s) 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-sigs/prow repository. |
/retest-required |
/label cherry-pick-approved |
/cherry-pick release-4.14 |
@abhat: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you. 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-sigs/prow repository. |
/retest-required |
/jira refresh |
@abhat: This pull request references Jira Issue OCPBUGS-33294, 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira cherry-pick release-4.14 |
/jira cherrypick OCPBUGS-33294 |
@abhat: Jira Issue OCPBUGS-33294 has been cloned as Jira Issue OCPBUGS-34076. 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. |
@arghosh93: This pull request references Jira Issue OCPBUGS-34076, 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 openshift-eng/jira-lifecycle-plugin repository. |
/retitle OCPBUGS-33294: Reuse node-subnet from cache if exists |
@arghosh93: This pull request references Jira Issue OCPBUGS-33294, 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@abhat: This pull request references Jira Issue OCPBUGS-33294, which is valid. 7 validation(s) were run on this bug
Requesting review from QA contact: 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. |
@arghosh93: The following tests 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 |
25a771d
into
openshift:release-4.15
@arghosh93: Jira Issue OCPBUGS-33294: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-33294 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 openshift-eng/jira-lifecycle-plugin repository. |
@abhat: new pull request created: #2177 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-sigs/prow repository. |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-ovn-kubernetes-base-container-v4.15.0-202405221005.p0.g25a771d.assembly.stream.el9 for distgit ovn-kubernetes-base. |
Fix included in accepted release 4.15.0-0.nightly-2024-05-22-165653 |
This PR is to return an already allocated subnet instead of creating a new one if a combination of subnet and node name already exists in the cache.
This PR is to stop multiple allocation of node-subnet from ClusterNetwork CIDR for any node if addition of
'k8s.ovn.org/node-subnets' annotation gets delayed but does not reach default BackOff[1] time limit for retry framework and meanwhile syncNodeNetworkAnnotations[2] gets executed multiple times.
JIRA: https://issues.redhat.com/browse/OCPBUGS-25733
[1] - https://github.com/kubernetes/client-go/blob/v0.26.1/util/retry/util.go#L38
[2] - https://github.com/ovn-org/ovn-kubernetes/blob/master/go-controller/pkg/clustermanager/node/node_allocator.go#L178
Signed-off-by: Arnab Ghosh arnabghosh89@gmail.com
(cherry picked from commit afe0b64)
- What this PR does and why is it needed
- Special notes for reviewers
- How to verify it
- Description for the changelog