Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1986445

Summary: [iproute-tc]No distribution data for normal (/usr/lib/tc//normal.dist: No such file or directory)
Product: Red Hat Enterprise Linux 8 Reporter: xmu
Component: iprouteAssignee: Andrea Claudi <aclaudi>
Status: CLOSED ERRATA QA Contact: xmu
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: aclaudi, atragler, jiji, mshi, network-qe
Target Milestone: betaKeywords: Regression, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iproute-5.12.0-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:37:07 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:
Embargoed:

Description xmu 2021-07-27 14:45:47 UTC
Description of problem:

[root@ ~]# rpm -qa | grep iproute-tc
iproute-tc-5.12.0-1.el8.x86_64
[root@ ~]# ip netns add test
[root@ ~]# ip -net test link add type dummy
[root@ ~]# ip -net test link set dummy0 up
[root@ ~]# ip netns exec test tc qdisc add dev dummy0 root handle 1:0 prio
[root@ ~]# ip netns exec test tc qdisc add dev dummy0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal
No distribution data for normal (/usr/lib/tc//normal.dist: No such file or directory) <<<<< fail
[root@ ~]# ip netns exec test tc qdisc
qdisc prio 1: dev dummy0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1


Version-Release number of selected component (if applicable):
iproute-tc-5.12.0-1.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1.
ip netns add test
ip -net test link add type dummy
ip -net test link set dummy0 up
ip netns exec test tc qdisc add dev dummy0 root handle 1:0 prio
ip netns exec test tc qdisc add dev dummy0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal

2.
3.

Actual results:
[root@ ~]# ip netns exec test tc qdisc add dev dummy0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal
No distribution data for normal (/usr/lib/tc//normal.dist: No such file or directory)
[root@ ~]#

Expected results:
[root@ ~]# ip netns exec test tc qdisc add dev dummy0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal
[root@ ~]#

Additional info:
pass with iproute-tc-5.9.0-4.el8.x86_64.rpm

Comment 1 Andrea Claudi 2021-08-11 15:58:41 UTC
This is due to a change in %{_libdir} directory from /usr/lib to /usr/lib64. It can be addressed setting the TC_LIB_DIR environment variable to /usr/lib64/tc.
Mingyu, can you please consider to set itm and qa_ack+ on this? I can make sure this environment variable is set at iproute-tc install-time.

Comment 5 xmu 2021-08-19 08:07:57 UTC
Verified the case pass with  RHEL-8.6.0-20210817.1( iproute-tc-5.12.0-3.el8.x86_64 and kernel-4.18.0-331.el8)

test case: /kernel/networking/tcp/bugs/epoll_write_event_missing_bz1386136 
beaker job: https://beaker.engineering.redhat.com/recipes/10516541#task130671830

: [ 03:20:05 ] :: [  BEGIN   ] :: Running 'dnf install -y iproute-tc'
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:10:13 ago on Thu 19 Aug 2021 03:09:52 AM EDT.
Package iproute-tc-5.12.0-3.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'dnf install -y iproute-tc' (Expected 0, got 0)
:: [ 03:20:06 ] :: [  BEGIN   ] :: Running 'tc qdisc add dev ens5f0 root handle 1:0 prio'
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'tc qdisc add dev ens5f0 root handle 1:0 prio' (Expected 0, got 0)
:: [ 03:20:06 ] :: [  BEGIN   ] :: Running 'tc qdisc add dev ens5f0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal'
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'tc qdisc add dev ens5f0 parent 1:3 handle 30: netem delay 10ms 5ms distribution normal' (Expected 0, got 0)
:: [ 03:20:06 ] :: [  BEGIN   ] :: Running 'tc filter add dev ens5f0 protocol ip parent 1:0 prio 3 u32 match ip dst 192.168.1.20/32 flowid 1:3'
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'tc filter add dev ens5f0 protocol ip parent 1:0 prio 3 u32 match ip dst 192.168.1.20/32 flowid 1:3' (Expected 0, got 0)
:: [ 03:20:06 ] :: [  BEGIN   ] :: Running 'tc qdisc show dev ens5f0'
qdisc prio 1: root refcnt 8 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc netem 30: parent 1:3 limit 1000 delay 10ms  5ms
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'tc qdisc show dev ens5f0' (Expected 0, got 0)
:: [ 03:20:06 ] :: [  BEGIN   ] :: Running 'tc filter show dev ens5f0'
filter parent 1: protocol ip pref 3 u32 chain 0 
filter parent 1: protocol ip pref 3 u32 chain 0 fh 800: ht divisor 1 
filter parent 1: protocol ip pref 3 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:3 not_in_hw 
  match c0a80114/ffffffff at 16
:: [ 03:20:06 ] :: [   PASS   ] :: Command 'tc filter show dev ens5f0' (Expected 0, got 0)

Comment 6 xmu 2021-09-13 07:42:37 UTC
Hi Andrea,
 The case fail again on the latest Distro, RHEL-8.6.0-20210902.0(iproute-tc-5.12.0-3.el8.x86_64 and kernel-4.18.0-339.el8)
 Run the commands, fail only at the first time, and then run them again, pass.
 Could you help check?

beaker job:
https://beaker.engineering.redhat.com/recipes/10638318#task131872728,task131872729

 Thanks
Xiumei Mu

Comment 7 Andrea Claudi 2021-09-13 19:04:45 UTC
Hi Xiumei, I suspect this is due to the fact that iproute-tc is installed just before the test.
Can you please try to execute "export TC_LIB_DIR=/usr/lib64/tc" before the first test and see if it passes, too?

Comment 8 xmu 2021-10-15 08:10:04 UTC
(In reply to Andrea Claudi from comment #7)
> Hi Xiumei, I suspect this is due to the fact that iproute-tc is installed
> just before the test.
> Can you please try to execute "export TC_LIB_DIR=/usr/lib64/tc" before the
> first test and see if it passes, too?

Andrea,
 sorry for the late reply, your workaround works. Thanks.

Comment 10 errata-xmlrpc 2021-11-09 19:37:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (iproute bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4389