Skip to content
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

cilium-health: Fix setting of disable_ipv6 sysctl #32120

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

joamaki
Copy link
Contributor

@joamaki joamaki commented Apr 22, 2024

The disable_ipv6 sysctl setting is changed for the "cilium" veth interface inside the cilium health network namespace. For that we cannot use the normal sysctl API as that operates in the host network namespace. Instead we need to do a direct sysctl.

This fixes this sysctl health degradation which happens due to the sysctl setting happening on the wrong network namespace:

"Error":"could not open the sysctl file /host/proc/sys/net/ipv6/conf/cilium/disable_ipv6:
open /host/proc/sys/net/ipv6/conf/cilium/disable_ipv6: no such file or directory"

Fixes: 2079aa4 ("datapath/sysctl: Use generic reconciler for sysctl params")

Marking this as "release-note/misc" without a release note as this fixes an issue in an unreleased version
of Cilium.

@joamaki joamaki requested a review from pippolo84 April 22, 2024 11:53
@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 Apr 22, 2024
@joamaki joamaki added the release-note/misc This PR makes changes that have no direct user impact. label Apr 22, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 22, 2024
@joamaki
Copy link
Contributor Author

joamaki commented Apr 22, 2024

/test

Copy link
Member

@pippolo84 pippolo84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

The disable_ipv6 sysctl setting is changed for the "cilium" veth interface
inside the cilium health network namespace. For that we cannot use the normal
sysctl API as that operates in the host network namespace. Instead we need to
do a direct sysctl.

This fixes this sysctl health degradation which happens due to the sysctl
setting happening on the wrong network namespace:

  "Error":"could not open the sysctl file /host/proc/sys/net/ipv6/conf/cilium/disable_ipv6:
   open /host/proc/sys/net/ipv6/conf/cilium/disable_ipv6: no such file or directory"

Fixes: 2079aa4 ("datapath/sysctl: Use generic reconciler for sysctl params")
Signed-off-by: Jussi Maki <jussi@isovalent.com>
@joamaki joamaki force-pushed the pr/joamaki/fix-health-disable-ipv6 branch from 38e4822 to 62a4e83 Compare April 24, 2024 08:01
@joamaki joamaki marked this pull request as ready for review April 24, 2024 11:23
@joamaki joamaki requested a review from a team as a code owner April 24, 2024 11:23
@joamaki joamaki requested a review from nebril April 24, 2024 11:23
@joamaki
Copy link
Contributor Author

joamaki commented Apr 24, 2024

/test

Copy link
Member

@nebril nebril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@joamaki joamaki enabled auto-merge April 25, 2024 06:57
@joamaki joamaki added this pull request to the merge queue Apr 25, 2024
@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 25, 2024
Merged via the queue into cilium:main with commit 65ba271 Apr 25, 2024
64 checks passed
@joamaki joamaki deleted the pr/joamaki/fix-health-disable-ipv6 branch April 25, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants