Project

General

Profile

Actions

action #50855

closed

[functional][y][timeboxed:12h] Explore possibilities to have automated test with half-baked network

Added by riafarov almost 5 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
SUSE QA - Milestone 26
Start date:
2019-04-29
Due date:
% Done:

0%

Estimated time:

Description

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.

Acceptance criteria

  1. Feasibility is explored
  2. Follow-up task is created, depending on the outcome, or it's properly communicated that this is not possible ATM
Actions #1

Updated by JERiveraMoya almost 5 years ago

  • Due date changed from 2019-05-21 to 2019-06-04
Actions #2

Updated by riafarov almost 5 years ago

  • Subject changed from [functional][y][timeboxed:6h] Explore possibilities to have automated test with half-baked network to [functional][y][timeboxed:12h] Explore possibilities to have automated test with half-baked network
Actions #3

Updated by riafarov almost 5 years ago

  • Status changed from New to Workable
Actions #4

Updated by riafarov almost 5 years ago

  • Due date changed from 2019-06-04 to 2019-07-09
  • Target version changed from Milestone 25 to Milestone 26

No capacity.

Actions #5

Updated by riafarov almost 5 years ago

  • Due date changed from 2019-07-09 to 2019-07-30

No capacity.

Actions #6

Updated by JERiveraMoya over 4 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.

Actions #7

Updated by JERiveraMoya over 4 years ago

  • Status changed from Workable to In Progress
Actions #8

Updated by JERiveraMoya over 4 years ago

tc is available in SLE-12-SP5 and SLE-15-SP1.

Actions #9

Updated by JERiveraMoya over 4 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 sch_netem.ko. tc seems to works modifying ping on the machine for example.

Actions #10

Updated by JERiveraMoya over 4 years ago

  • Status changed from In Progress to Feedback

Using 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 tc works.

Actions #13

Updated by JERiveraMoya over 4 years ago

  • Status changed from Feedback to Resolved
Actions #14

Updated by okurz over 2 years ago

  • Due date deleted (2019-07-30)
Actions

Also available in: Atom PDF