8000 iptables: Fatal when IPv6 is enabled but corresponding kernel modules are missing by vadorovsky · Pull Request #18941 · cilium/cilium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

iptables: Fatal when IPv6 is enabled but corresponding kernel modules are missing #18941

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

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

vadorovsky
Copy link
Member
@vadorovsky vadorovsky commented Feb 25, 2022

Before this change, when Cilium was running with --enable-ipv6 option,
we were only logging a warning, but then the rest of iptables.go module
was inserting ip6tables rules anyway. That resulted in errors, because
inserting such rules is impossible without IPv6 netfilter presence in
the kernel.

This change fixes that by a fatal error in situation when IPv6 is
enabled in Cilium, but not supported by the kernel. In such situations,
users should either disable IPv6 in Cilium or load the needed kernel
modules.

Fixes: #18904
Signed-off-by: Michal Rostecki vadorovsky@gmail.com

Fatal when IPv6 is enabled but corresponding kernel modules are missing

@vadorovsky vadorovsky requested review from a team and YutaroHayakawa February 25, 2022 11:40
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 25, 2022
@pchaigno
Copy link
Member

Fatal error when IPv6 is enabled, but cannot be used

Maybe this would be better worded as a full sentence?

Fatal when IPv6 is enabled but corresponding kernel modules are missing.

@pchaigno pchaigno added feature/ipv6 Relates to IPv6 protocol support kind/bug This is a bug in the Cilium logic. needs-backport/1.11 release-note/bug This PR fixes an issue in a previous release of Cilium. labels Feb 26, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Feb 26, 2022
@vadorovsky
Copy link
Member Author

@pchaigno Fixed the commit message. Thanks!

@pchaigno
Copy link
Member

@vadorovsky Oh, sorry. The previous commit title was fine (and fit within the character limit). I meant to suggest changing the release note :)

@vadorovsky vadorovsky changed the title iptables: Fatal error when IPv6 is enabled, but cannot be used iptables: Fatal when IPv6 is enabled but corresponding kernel modules are missing Feb 28, 2022
@vadorovsky
Copy link
Member Author

@pchaigno I had an intention to change it also in release notes and PR title, but seems like lack of coffee made me to not do it. Fixed now. :)

@github-actions

This comment was marked as resolved.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Apr 2, 2022
@pchaigno pchaigno removed the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Apr 2, 2022
@pchaigno
Copy link
Member
pchaigno commented Apr 4, 2022

@vadorovsky Could you please rebase? Many tests are failing because the PR branch is pretty old.

@pchaigno pchaigno added the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Apr 4, 2022
… are missing

Before this change, when Cilium was running with --enable-ipv6 option,
we were only logging a warning, but then the rest of iptables.go module
was inserting ip6tables rules anyway. That resulted in errors, because
inserting such rules is impossible without IPv6 netfilter presence in
the kernel.

This change fixes that by a fatal error in situation when IPv6 is
enabled in Cilium, but not supported by the kernel. In such situations,
users should either disable IPv6 in Cilium or load the needed kernel
modules.

Fixes: cilium#18904
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
@vadorovsky
Copy link
Member Author

sorry for doing it so late

@pchaigno
Copy link
Member
pchaigno commented Apr 15, 2022

No problem.

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 15, 2022
@pchaigno pchaigno removed the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Apr 15, 2022
@tklauser tklauser merged commit 976e1c0 into cilium:master Apr 19, 2022
@tklauser tklauser added backport-pending/1.11 backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed needs-backport/1.11 labels Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. feature/ipv6 Relates to IPv6 protocol support kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datapath: Inconsistency between IPv4 and IPv6 iptables rules propagation
4 participants
0