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

pkg/datapath: Remove defunct --single-cluster-route flag #29221

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

gandro
Copy link
Member

@gandro gandro commented Nov 16, 2023

This commit removes the single-cluster-route flag. Contrary to it's description, it never installed a cluster-wide route for cilium_host. Instead, it installed a route for the local alloc CIDR (aka local PodCIDR), virtually identical to the (enabled by default) enable-local-node-route. The only difference being that single-cluster-route sets the MTU. This means that the flag (which has not been referenced anywhere in the last four years) likely never worked as described.

Marco Iorio (@giorio94) recently tested the flag and found that the flag (when enabled) breaks node-to-pod and nodeport traffic. In addition, since the route conflicts with the local node route, we also found that the "single cluster route" was in fact overwritten by the "local node route". The only other effect the flag has is that it disables per-node routes, but those are needed for node-to-pod traffic.

Removal has already been discussed two years ago. Given that the flag has remained broken ever since and there have not been any bug reports at all, it is assumed that no one is actually using it. It is also not documented anywhere outside of the cmdref. Therefore, it is removed without prior deprecation.

This commit removes the `single-cluster-route` flag. Contrary to it's
description, it never [1] installed a cluster-wide route for
`cilium_host`. Instead, it installed a route for the local alloc CIDR
(aka local PodCIDR), virtually identical to the (enabled by default)
`enable-local-node-route`. The only difference being that
`single-cluster-route` sets the MTU. This means that the flag (which has
not been referenced anywhere in the last four years) likely never worked
as described.

Marco Iorio recently tested the flag and found that the flag (when
enabled) breaks node-to-pod and nodeport traffic. In addition, since the
route conflicts with the local node route, we also found that the
"single cluster route" was in fact overwritten by the "local node
route". The only other effect the flag has is that it disables per-node
routes, but those are needed for node-to-pod traffic.

Removal has already been discussed two years ago [1]. Given that the
flag has remained broken ever since and there have not been any bug
reports at all, it is assumed that no one is actually using it. It is
also not documented anywhere outside of the cmdref. Therefore, it is
removed without prior deprecation.

[1] cilium#18426

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. area/daemon Impacts operation of the Cilium daemon. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. labels Nov 16, 2023
@gandro gandro requested review from a team as code owners November 16, 2023 10:28
Copy link
Member

@giorio94 giorio94 left a comment

Choose a reason for hiding this comment

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

Thanks!

@gandro
Copy link
Member Author

gandro commented Nov 16, 2023

/test

Copy link
Contributor

@lambdanis lambdanis left a comment

Choose a reason for hiding this comment

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

docs ok

Copy link
Member

@mhofstetter mhofstetter left a comment

Choose a reason for hiding this comment

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

cilium/cli ✔️

@gandro gandro removed the request for review from asauber November 20, 2023 10:42
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@qmonnet qmonnet removed the request for review from jibi November 20, 2023 10:52
@gandro gandro merged commit 53fa581 into cilium:main Nov 20, 2023
62 checks passed
@maintainer-s-little-helper maintainer-s-little-helper bot added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants