sch_netem kernel module missing for network emulation (tc netem) #6033
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
The exact command to reproduce the issue:
Application based: Run a container like debian in priviledged mode in a pod and one pod that uses the netem network emulation linux tool, in my case pumba. Pumba has no effect trying to mess with the network of the debian container. Pumba uses netem.
modprobe: Try to run
minikube ssh
and thenmodprobe -n sch_netem
, which says netem module is missing.With netem on a priviledged debian container in minikube: Get a bash in the debian container and try to modify the eth0 virtual interface by changing
qdisc
tonetem loss
(which is essentially what pumba does). The command istc qdisc add dev eth0 root netem loss random 100%
.A related issue, and the environment in which I found out this is not working, is described here. This is a minikube specific issue, as it works with other kubeadm based clusters and GKE and others. It also works locally on a laptop just with docker images.
The full output of the command that failed:
modprobe -n sch_netem
->modprobe: FATAL: Module sch_netem not found in directory /lib/modules/4.19.76
tc qdisc add dev eth0 root netem loss random 100
->invalid qdisc name
The operating system version:
commit: 792dbf9
Additional info
I just wanted to let you know this issue exists. Maybe we can do something about it, as minikube is a great environment for starting with chaos engineering, and not being able to mess with the network (in this way) is a big drawback. Also it took me quite some time to figure this out, as I had no access to other clusters :D.
The text was updated successfully, but these errors were encountered: