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
Removing MicroK8s sometimes leaves iptables rules behind #3092
Comments
Thank you for reporting this @knkski and for diving into this issue. We could try to update the remove [1] hook to include your recommendation. I hope I will have news for you soon. [1] https://github.com/canonical/microk8s/blob/master/snap/hooks/remove |
Hi @knkski, we just merged a fix on our removal hook. It should be available on latest/edge within the day. If you have time it would be great if you told us if it works for you. Thanks. |
Hi, this is still a problem for me in Grepping the ip tables shows plenty rules being left over still after removing the snap. |
This is a problem for me with microk8s Post remove, if I diff sudo iptables -S > iptables_microk8s_pre_remove
sudo snap remove microk8s --purge
sudo iptables -S > iptables_microk8s_post_remove
diff iptables_microk8s* I get no diff |
actually after stopping and purging, the iptables config file itself was intact, however the rules weren't applied, a reboot fixed it. For context, I got here from
Originally posted by @HMPerson1 in microsoft/vscode-remote-release#1870 (comment) I believe microk8s iptables rules were breaking vscode-server |
I had a MicroK8s instance that was running some services on port 80. After running
sudo snap remove microk8s --purge
to remove it, I was unable to have anything else running on port 80. As an example, I would run this:Which would result in this:
After poking around a bit, I found that there were some iptables rules left behind, even though MicroK8s had been uninstalled:
I then ran these commands to remove the rules:
And running
sudo python -m http.server 80
started working again. This only happens sometimes, and I haven't found a cause for it. I did find this bit of documentation that saysMaybe this chain should be explicitly deleted on snap removal?
The text was updated successfully, but these errors were encountered: