-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 the auto iptables detection if ip_tables.ko preloaded on RHEL/CentOS 8 #7111
Fix the auto iptables detection if ip_tables.ko preloaded on RHEL/CentOS 8 #7111
Conversation
bf58af5
to
b292088
Compare
Hi @caseydavenport @song-jiang , can you please take a look ? Thanks, I think it's make a sense. 😄 |
HI @mazdakn, would you please review the PR :-) |
@yankay sure, I'll review it in the next few days. |
Thank you very much |
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.
Using the hints seems sensible but I don't think we should change the defaulting behaviour if no hints are detected. I notice that a bunch of the error tests have been flipped to default to nft now, for example but I'd expect that if iptbales-nft
fails (presumably because we're on a kernel with no nftables support!) then we should default to legacy mode.
b292088
to
b390e1e
Compare
Thank you very much @fasaxc , Would you please review it again :-) |
/sem-approve |
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. Noticed there was a change to a couple of existing tests due to the removal of the
if legacyLines >= 10
thanks that's OK now that nft is widely adopted
Thank you very much for the review :-) |
Hi @fasaxc , ci/semaphoreci/pr is falling, Does this affect the PR merge? What else is needed to merge into this PR? Thanks. |
b390e1e
to
8ab77d3
Compare
/sem-approve |
Thanks@mazdakn @fasaxc @mgleung @cyclinder for the PR review :-) |
…rigin-release-v3.25 Automated cherry pick of #7111: Fix the auto iptables detection if ip_tables.ko preloaded on RHEL/CentOS 8
Description
The auto iptables detection logic is updated by the Kubernetes KEP 3178 , the 'iptables-wrapper' can decide which iptables backend to use based on which one kubelet used.
So that the issue can be fixed by the new 'iptables-wrapper' logic. The PR is to update it with the new logic:
from:
https://github.com/kubernetes-sigs/iptables-wrappers/blob/v1/iptables-wrapper-installer.sh#L130
to:
https://github.com/kubernetes-sigs/iptables-wrappers/blob/master/iptables-wrapper-installer.sh#L107
Some additional information:
Related issues/PRs
fixes #2322
fixes #3709
Todos
Release Note
Reminder for the reviewer
cherry-pick-candidate
: This PR should be cherry-picked to an earlier release. For bug fixes only.