-
Notifications
You must be signed in to change notification settings - Fork 670
weave-kube crash: ipset v7.2: Set cannot be destroyed: it is in use by a kernel component #3816
Comments
Thanks for the detailed report. Most of the places that weave/prog/weave-kube/launch.sh Line 51 in 11d75b2
Could you print out the list of all ipsets after it has run, failed, and printed the error? |
weave-kube-test is indeed there:
If I run |
OK, so somehow when you run the Two hypotheses: (a) the difference is in the binary (b) the difference is in the timing. Could you try running the sequence of 9 commands from the launch script as a script on the host, to see if it ever fails that way? And if it fails, can you still succeed with the single You said switching to iptables-legacy makes a difference - does that change the above? Does it change the You can repeat the experiment inside the Weave container:
|
The difference appears to be timing. I tried a few times on the host and normally the first
I get no error when running with |
Great, thanks for helping drill into this. I wish I knew more about how this all works inside the kernel. Maybe we can extend the launch script to retry the |
https://www.reddit.com/r/linuxquestions/comments/gnwrk9/new_race_condition_in_iptables/ looks similar. I found some threads refering to |
I've hacked the YAML to work around this. So far it's working OK, but I'll let you know if I run into any other issues.
|
…essivas, em caso de falha no processo de inicialização, conforme weaveworks/weave#3816
…essivas, em caso de falha no processo de inicialização, conforme weaveworks/weave#3816
hey everyone; i also noticed there's another issue opened for the same problem: |
The issue still persists. Any working solution? |
@bboreham Should we merge the "sleep" workaround if we don't have an idea how to solve it? It has been surprisingly stable for me, I don't think I've seen the error since adding the sleep. |
I'm still getting the same error with Centos 8 worker node and "Ubuntu 20.04.1 LTS" master node. If I add sleep then only one weave pod on both nodes are coming up. If I use latest weave yml then weave network is meeting the desired state on master node but on worker centos 8 node it's crashing with "ipset v7.2: Set cannot be destroyed: it is in use by a kernel component" |
It's working now. I tried by adding sleep, but didn't work. So I reverted my changes and left. After so many restarts it's working. I'm not sure what was the issue and how it fixed. |
Closed by #3882 |
Configuração do weaves versão 2.6.5 com alteração para tentativas suc… …essivas, em caso de falha no processo de inicialização, conforme weaveworks/weave#3816
What happened?
weave-kube is crashing with:
How to reproduce it?
I installed Weave with nftables on minikube + kubernetes 1.17, IIRC it initially appeared to work but Weave started failing. If I switch to iptables-legacy, the issue goes away, but returns if I switch to nftables, reboot, and recreate the cluster.
Then install weave with the following settings:
Anything else we need to know?
Debugging steps tried to no avail:
sudo ipset list -o save | cut -d' ' -f2 | sudo xargs -n 1 ipset destroy
This seems similar to #2915, but the crash comes from weave-kube rather than weave-npc.
I plan to try reimaging the machine, let me know if there's anything I should do to debug first.
Versions:
Logs:
Network:
The text was updated successfully, but these errors were encountered: