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

gha: cleanup stale AWS-CNI iptables rules in EKS tunnel workflow #2045

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

giorio94
Copy link
Member

Extend the eks-tunnel script to additionally flush the stale AWS-CNI iptables rules left by the aws-node DaemonSet, which break host to pod connectivity. Using the cleanup commands from the documentation 1.

For #2035.

Extend the eks-tunnel script to additionally flush the stale AWS-CNI
iptables rules left by the aws-node DaemonSet, which break host to pod
connectivity. Using the cleanup commands from the documentation [1].

[1]: https://github.com/cilium/cilium/blob/cc2051eec0ba5e57842d8a7d4b4b33f31b12509f/Documentation/installation/k8s-install-helm.rst?plain=1#L208-L211

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 temporarily deployed to ci October 16, 2023 06:27 — with GitHub Actions Inactive
@giorio94
Copy link
Member Author

Link to successful run: https://github.com/cilium/cilium-cli/actions/runs/6529848997/job/17728137356?pr=2045
Dropping the temporary commit.

@giorio94 giorio94 marked this pull request as ready for review October 16, 2023 11:39
@giorio94 giorio94 requested a review from a team as a code owner October 16, 2023 11:39
@giorio94 giorio94 requested a review from nebril October 16, 2023 11:39
@giorio94 giorio94 temporarily deployed to ci October 16, 2023 11:39 — with GitHub Actions Inactive
Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

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

I thought we already did that 🤔

@nebril
Copy link
Member

nebril commented Oct 17, 2023

This should be done by this post-start cilium Daemonset hook: https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium/files/agent/poststart-eni.bash

Should we update this script to also remove AWS-CONNMARK-CHAIN rules?

@giorio94 ^^

@giorio94
Copy link
Member Author

This should be done by this post-start cilium Daemonset hook: https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium/files/agent/poststart-eni.bash

Should we update this script to also remove AWS-CONNMARK-CHAIN rules?

@giorio94 ^^

I don't know the details of the poststart-eni script, but makes definitely sense to me (it is very easy to miss the documentation and hit this issue). I edited this workflow because from a quick look at cilium/cilium#25804 it seemed that the script was not always executed.

Even if we extend the poststart-eni.bash script, I guess we'll still need this change for the moment, until a new release is cut.

@giorio94
Copy link
Member Author

it seemed that the script was not always executed.

Just double-checked, and it is not run when running on EKS in tunnel mode, because eni.mode is not set.

/cc @nebril

@giorio94
Copy link
Member Author

AKS failure is unrelated, marking ready to merge

@giorio94 giorio94 added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 18, 2023
@joestringer
Copy link
Member

This seems like it's fixing CI, but isn't the same problem true in production systems?

@giorio94
Copy link
Member Author

This seems like it's fixing CI, but isn't the same problem true in production systems?

Unfortunately yes. More info in cilium/cilium#25804

@joestringer
Copy link
Member

Ah right. I was gonna comment that this should be fine as long as we document that this is temporary code to work around a bug in Cilium. But I see that the code comment already references that open item. Sure, let's merge this to keep things moving, then we can revisit how to approach that issue for a longer term fix.

@joestringer joestringer merged commit bbebbfa into main Oct 18, 2023
18 of 19 checks passed
@joestringer joestringer deleted the pr/giorio94/gha-eks-tunnel branch October 18, 2023 17:34
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants