-
Notifications
You must be signed in to change notification settings - Fork 679
failed: ipset v6.32: Element cannot be deleted from the set: it's not added #3296
Comments
This is very strange. NPC tried to delete Also, from the full log I see that the user hasn't created any NetworkPolicy, so can I assume that they do not use it? If yes, a quick fix could be to disable the weave-npc from starting when |
We did not see any evidence of another weave-npc. We checked a number of nodes, and on every one Agreed on the quick workaround; the cloud.weave.works launch generator has an option |
Is it reproducible? If yes, what is the kernel version (asking, as I can provide a small eBPF program which tracks insertions and deletions to ipset at the kernel level to see whether the entry got actually inserted). |
Seemed to happen on every node after a few hours. Kernel:
|
I wrote a program to go through the ipset lines in the full weave-npc log file and do all the create/add/del operations, and it didn't crash. Ran on Ubuntu 16.04 with 4.13 kernel. |
this seems like related to kernel issue https://bugzilla.netfilter.org/show_bug.cgi?id=1119 that is fixed > 4.11 |
Great find! |
Sure. I will add an exception. |
I don't think that we can work-around this way. According to the bug report, the problem is that |
Also, the problem seems to be introduced in the kernel 4.2 and fixed in the 4.11. So, the user's kernel |
So are you saying we can run into issue where there may not be any error but still as result of this issue, some entries can get evicted? Which seems even worse scenario |
Yep, removing entry A might evict entry B as well. |
if the kernel version is in affected range of Kernels, then resync the entries to expected set of entries. Fixes #3296 failed: ipset v6.32: Element cannot be deleted from the set: it's not added
if the kernel version is in affected range of Kernels, then resync the entries to expected set of entries. Kernel bug: https://bugzilla.netfilter.org/show_bug.cgi?id=1119 Fixes #3296 failed: ipset v6.32: Element cannot be deleted from the set: it's not added
if the kernel version is in affected range of Kernels, then resync the entries to expected set of entries. Kernel bug: https://bugzilla.netfilter.org/show_bug.cgi?id=1119 Fixes #3296 failed: ipset v6.32: Element cannot be deleted from the set: it's not added
if the kernel version is in affected range of Kernels, then resync the entries to expected set of entries. Kernel bug: https://bugzilla.netfilter.org/show_bug.cgi?id=1119 Fixes #3296 failed: ipset v6.32: Element cannot be deleted from the set: it's not added
Excerpt from log, focusing on one IP address:
It looks to me like it only added once and deleted once from that set.
The text was updated successfully, but these errors were encountered: