-
Notifications
You must be signed in to change notification settings - Fork 40.6k
fix ipvs_svc deletion #80942
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
fix ipvs_svc deletion #80942
Conversation
Hi @gongguan. Thanks for your PR. I'm waiting for a kubernetes 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/test-infra repository. |
/kind bug |
/sig network |
another question: |
there is a logical error in current code: |
/assign @andrewsykim |
/ok-to-test |
/priority important-soon |
It does, but for TCP it takes 15m for those endpoints to be gracefully terminated and so the virtual server doesn't delete for 15m as well. So I think either we delete the virtual server right away (this PR) or we decrease the graceful termination timeout to a lower value. |
@andrewsykim in the test I did, gracefultermination was not triggered at all (and weight remains at 1) so I suspect something is wrong in the handler Anyway, if we agree we can remove services without gracefultermination this is not important The PR looks good. @gongguan can you add a test for this specific scenario? (by fixing the test in |
@andrewsykim OK I think I know what happens: So the only way to trigger gracefulTermination for real servers on service deletion would be in |
Thanks for clarifying @lbernail!
IMO if a Service is deleted there's no reason to try graceful termination. I will ask some folks in SIG Network though to confirm if this shouldn't be the case.
Added a test case for this here #81309, PTAL :) /lgtm Thanks @gongguan! |
Thanks for adding the test! |
I just remember the context behind the graceful termination behavior: #71894 Because we now set |
/retest |
Thanks for @andrewsykim 's test. By the way, what else need to be done for me? |
Not much from here, PR should be merged by the bot shortly :). Thanks @gongguan! |
…80942-origin-release-1.15 Automated cherry pick of #80942: Fix a bug in the IPVS proxier where virtual servers are not
…80942-origin-release-1.14 Automated cherry pick of #80942: Fix a bug in the IPVS proxier where virtual servers are not
…80942-origin-release-1.13 Automated cherry pick of #80942: Fix a bug in the IPVS proxier where virtual servers are not
So how do I make sure this problem is solved now? In which version did the solution arrive? |
part of issues still exists, address bound in kube-ipvs0 will not be deleted in kubernetes1.18.0 |
SAME IN kubernetes1.23.5 |
Please open a new issue with the details included and assign it to me and @uablrek |
I can't reproduce this in v1.23.5. I tried;
The ClusterIP is removed from |
What type of PR is this?
What this PR does / why we need it:
In ipvs mode, when service deleted but rs(pod) exist, related ipvs rule and address bound in ipvs0 will not be deleted.
I think it's unreasonable that kubernetes-service deleted but the service ip is available(ipvs rule not deleted). When you create same service again, new virtual service(totally two ipvs virtual service) will proxy to the same rs, too. And the deleted service ip will exist on both ipvs rule and ipvs0 device.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: