Skip to content
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

add ipvs kernel modules for kube-vip #612

Merged
merged 1 commit into from
Jan 25, 2023
Merged

add ipvs kernel modules for kube-vip #612

merged 1 commit into from
Jan 25, 2023

Conversation

ahgraber
Copy link
Contributor

if kube-vip cannot find ipvs kernel modules, it will crash-loop with errors (see kube-vip/kube-vip#506)

level=error msg="ensure IPVS kernel modules are loaded"
level=fatal msg="Error starting IPVS [netlink receive: no such file or directory]"

This PR loads ip_vs and ip_vs_rr and enables them at boot.

Signed-off-by: ahgraber ahgraber@ninerealmlabs.com

Signed-off-by: ahgraber <ahgraber@ninerealmlabs.com>
@onedr0p onedr0p merged commit f3b5425 into onedr0p:main Jan 25, 2023
@onedr0p
Copy link
Owner

onedr0p commented Jan 25, 2023

thanks!

@VoliKoN
Copy link

VoliKoN commented Mar 14, 2023

When using the ubuntu-22.04-minimal-cloudimg-amd64.img image, the kernel installed is linux-kvm which doesn't include the ip_vs and ip_vs_rr kernel modules. So this task fails with an error:

TASK [System Configuration (2) | Enable kernel modules now] *********************************************************************************************************************************
changed: [c1-node1] => (item=br_netfilter)
failed: [c1-node1] (item=ip_vs) => {"ansible_loop_var": "item", "changed": false, "item": "ip_vs", "msg": "modprobe: FATAL: Module ip_vs not found in directory /lib/modules/5.15.0-1029-kvm\n", "name": "ip_vs", "params": "", "rc": 1, "state": "present", "stderr": "modprobe: FATAL: Module ip_vs not found in directory /lib/modules/5.15.0-1029-kvm\n", "stderr_lines": ["modprobe: FATAL: Module ip_vs not found in directory /lib/modules/5.15.0-1029-kvm"], "stdout": "", "stdout_lines": []}
failed: [c1-node1] (item=ip_vs_rr) => {"ansible_loop_var": "item", "changed": false, "item": "ip_vs_rr", "msg": "modprobe: FATAL: Module ip_vs_rr not found in directory /lib/modules/5.15.0-1029-kvm\n", "name": "ip_vs_rr", "params": "", "rc": 1, "state": "present", "stderr": "modprobe: FATAL: Module ip_vs_rr not found in directory /lib/modules/5.15.0-1029-kvm\n", "stderr_lines": ["modprobe: FATAL: Module ip_vs_rr not found in directory /lib/modules/5.15.0-1029-kvm"], "stdout": "", "stdout_lines": []}

I fixed this by switching to generic kernel image, but maybe this should be documented somewhere.

@onedr0p
Copy link
Owner

onedr0p commented Mar 14, 2023

Thanks for reporting but the link to download Ubuntu on the README takes you to the full server ISO (not cloud or minimal) to download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants