Open uablrek opened 1 year ago
This is output on a statically linked kernel where ipvs is configured:
# moby-example
WARN[0000] Running modprobe ip_vs failed with message: `modprobe: WARNING: Module ip_vs not found in directory /lib/modules/6.0.0`, error: exit status 1
2022/12/23 18:22:09 ipvs.New did NOT give an error!!
2022/12/23 18:22:09 handle.GetServices did NOT give an error!!
Please drop the "WARN". To use a statically linked kernel is not an "odd thing". When using moby/ipvs in a system that tries to use structured logging, printouts like this from a library is an annoyance.
Is this project still active?
@thaJeztah, can you help see this problem
I use you example, slightly modified;
And run on a kernel where ipvs is not configured. Output:
So, that ipvs can't be loaded is obviously noted, but even so err==nil is returned.
This is a serious bug, which enforces weird work-arounds do detect if ipvs can be used:
https://github.com/Nordix/kubernetes/blob/68d78c89eccf2d2f381033c836472d53f3ba41c9/pkg/proxy/ipvs/proxier.go#L692-L694