Bug 1383519

Summary: Is the iproute package missing support for netem ?
Product: [Fedora] Fedora Reporter: Leif Hedstrom <leif>
Component: iprouteAssignee: Phil Sutter <psutter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: psimerda, psutter, rvokal, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-10 23:08:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Leif Hedstrom 2016-10-10 22:30:57 UTC
I'm trying to setup some traffic shaping (using tc qdisc), but it's failing like this:

[root@haddock leif]# strace -e open tc qdisc add dev eno1 root netem delay 200ms
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libelf.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/proc/net/psched", O_RDONLY)      = 3
open("//usr/lib64/tc//q_netem.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
RTNETLINK answers: No such file or directory


There is a man-page for tc-netem, which shows basically the same command as above in the synopsis.

qdisc seems properly setup (I think, not an expert on this area):

[root@haddock leif]# tc qdisc
qdisc noqueue 0: dev lo root refcnt 2
qdisc fq_codel 0: dev eno1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn


The package does not seem to provide a q_netem.so shared library:

[root@haddock leif]# rpm -q -l iproute | grep lib
/usr/lib64/tc
/usr/lib64/tc/experimental.dist
/usr/lib64/tc/m_ipt.so
/usr/lib64/tc/m_xt.so
/usr/lib64/tc/normal.dist
/usr/lib64/tc/pareto.dist
/usr/lib64/tc/paretonormal.dist
/usr/lib64/tc/q_atm.so

Comment 1 Leif Hedstrom 2016-10-10 22:52:14 UTC
Oh, this seems like a red-herring, I'm missing the kernel-modules-extra-4.7.6-200.fc24.x86_64  package.

Sorry.