calico: Calico incompatible ipset protocol version (again)
Expected Behavior
Calico’s use of ipset should be as broadly compatible as possible.
Current Behavior
Calico v3.26.3 crashloops on Fedora CoreOS hosts now:
felix/ipsets.go 569: Bad return code from 'ipset list'. error=exit status 1 family="inet" stderr="ipset v7.11: Kernel and userspace incompatible: settype hash:ip with revision 6 not supported by userspace."
This is similar to an issue that happened a few years ago. https://github.com/projectcalico/calico/issues/5011
Possible Solution
Before, Calico wasn’t shipping a new enough ipset, but here the versions do seem to match.
sudo podman run --rm --privileged -it --net=host calico/node:v3.26.3 ipset --version
ipset v7.11, protocol version: 7
kube-proxy:
kubectl exec -it kube-proxy-rjf56 -n kube-system -- ipset --version
ipset v7.17, protocol version: 7
So I’m not sure why Calico calls to ipset see incompatible versions.
Steps to Reproduce (for bugs)
Your Environment
- Calico version: v3.26.3
- Orchestrator version (e.g. kubernetes, mesos, rkt): Kubernetes v1.29.0
- Operating System and version: Fedora CoreOS 39.20231119.3.0
- Kernel: 6.5.11
- kube-proxy IPVS mode
- Link to your project (optional): https://github.com/poseidon/typhoon
Notably, on a Flatcar Linux node (5.15 kernel, much older) I don’t see this issue.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Update Calico from v2.26.3 to v2.27.2 * Calico update fixes https://github.com/projectcalico/calico/issues/8372 — committed to poseidon/terraform-render-bootstrap by dghubble 3 years ago
- Update Calico from v3.26.3 to v3.27.2 * Update fixes Calico incompatibility with Fedora CoreOS Rel: https://github.com/projectcalico/calico/issues/8372 — committed to poseidon/typhoon by dghubble 3 years ago
- Update Calico from v3.26.3 to v3.27.2 * Update fixes Calico incompatibility with Fedora CoreOS Rel: https://github.com/projectcalico/calico/issues/8372 — committed to poseidon/typhoon by dghubble 3 years ago
I am using the latest version v3.27.3 - I’ll raise another issue
Thanks
@msilcher I don’t have an exact date, but most likely mid Feb it should be released.
I plan to do a full upgrade from k8s 1.28.x to 1.29 using the test image to se if everything runs smooth afterwards. Probably I’ll be able to do this tomorrow or the day after. I’ll report back once I did.
Glad to hear it, @msilcher, @mazdakn has fixed this by only ever reading our own IP sets. Should be more robust in future since we should never try to list kube-proxy’s IP set.
So far so good, no errors seen on calico-node pod. Other containers that depend on calico services that were failing before are working fine now! I’ll do some more testing later but it looks promising.
I think ipset is just annoyingly loose with its protocol version. The version gets revved per-ipset-type bu the tool only reports the higher version it supports. We’ll just need to upgrade ipset to match.