[functional][y][timeboxed:12h] Explore possibilities to have automated test with half-baked network
See motivation in the parent ticket.
Before we start actually doing something we should check what are possibilities, as it's not easy to simulate half-baked network in the installer.
We got scenario with offline installation, so we should explore possibilities if we can block network packets coming from and to the VM.
- Feasibility is explored
- Follow-up task is created, depending on the outcome, or it's properly communicated that this is not possible ATM
#6 Updated by JERiveraMoya over 2 years ago
- Assignee set to JERiveraMoya
tc works in the installed system
tc qdisc change dev enp1s0 root netem loss 70% 25% creating big troubles for example to loading some web pages.
Using install console on installation and running previous command I got:
"Error: Specified qdisc not found" and if I try to modprobe the module I got:
modprobe: FATAL: Module sch_netem not found in directory /lib/modules/5.2.1.-1-default.
I found that the package providing the traffic tool:
rpm -qf /usr/sbin/tc =>
iproute2-5.1-1.4.x86_64 but on that point in the installation there is not zypper to be used. I noticed also that in
/lib/modules/5.1.16-1-default/ on installation there is no folder named
kernel that is present in the installed system, therefore
/lib/modules/5.1.16-1-default/kernel/net/sched/sch_netem.ko is not available.
#9 Updated by JERiveraMoya over 2 years ago
After the the first screen of the installer appears and switching to terminal (not with startshell=1 in boot options due to there is not network on that point) I managed to load the kernel module copying file
sch_netem from a VM with the same Kernel version with insmod
tc seems to works modifying
ping on the machine for example.
#10 Updated by JERiveraMoya over 2 years ago
- Status changed from In Progress to Feedback
startshell=1 ifcfg=*=dhcp we can star shell from the beginning with network available to get the file, but
tc tools does not work on that phase. In fact if we exit that shell to start automatically installation, we can check that the module in that phase in not loaded and when loaded again