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
[release-4.13] OCPBUGS-23014: Netpol retryFramework cleanup #1957
[release-4.13] OCPBUGS-23014: Netpol retryFramework cleanup #1957
Conversation
namespace and pod handlers need different commands to be cleaned up. we used to call RemovePodHandler for both namespace and pod handlers Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com> (cherry picked from commit ef362a8)
We used to pass oc.stopChan to the retryFramework for network policy handlers, but that means that retry loop for failed objects will not be stopped on network policy delete, therefore leaking goroutines. Create getChildStopChan function to pass stop signal both on oc and network policy delete. Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com> (cherry picked from commit 5d6b136) Conflicts: go-controller/pkg/ovn/network_controller_policy_event_handler.go go-controller/pkg/ovn/pod_selector_address_set.go go-controller/pkg/ovn/pod_selector_address_set_test.go go-controller/pkg/ovn/policy.go apply base_network_controller_policy.go changes to policy.go. newNetpolRetryFramework doesn't exist, create newRetryFrameworkWithParametersAndStopChan instead
Commit 5d6b136 added child stop channels to stop the network policy handlers independently from the network controller when the policy is deleted while also stopping them if the network controller is stopped. Unfortunately when both things happen at the same time, one of those events will end up attempting to close a closed channel which will panic. Introduce a CancelableContext utility that will wrap a cancelable context that can be chained to achieve the same effect. Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com> (cherry picked from commit 30f005f) Conflicts: go-controller/pkg/ovn/base_network_controller.go go-controller/pkg/ovn/default_network_controller.go go-controller/pkg/ovn/pod_selector_address_set.go go-controller/pkg/ovn/policy.go go-controller/pkg/ovn/secondary_layer2_network_controller.go go-controller/pkg/ovn/secondary_layer3_network_controller.go go-controller/pkg/util/sync.go Simple conflict to merge non-exsiitng in 4.13 fields
@npinaeva: This pull request references Jira Issue OCPBUGS-23014, 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. |
/jira refresh |
@npinaeva: This pull request references Jira Issue OCPBUGS-23014, which is valid. 6 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 kubernetes/test-infra repository. |
/retest-required |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcaamano, npinaeva 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 |
/label cherry-pick-approved |
@npinaeva: 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/test-infra repository. I understand the commands that are listed here. |
/retest-required |
81e7ebc
into
openshift:release-4.13
@npinaeva: Jira Issue OCPBUGS-23014: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-23014 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. |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-ovn-kubernetes-base-container-v4.13.0-202312071433.p0.g81e7ebc.assembly.stream for distgit ovn-kubernetes-base. |
Fix included in accepted release 4.13.0-0.nightly-2023-12-07-160307 |
Upstream: ovn-org/ovn-kubernetes#3703 + ovn-org/ovn-kubernetes@30f005f#diff-0b82ad568a45217e5458d7e3153a8ad9550d662bc639137bb265cefb0d440b45
was done as a part of 4.14 development.
had some merge conflicts, requires a review.