Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1678079

Summary: openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch ovs-tcpdump does not work
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Hekai Wang <hewang>
Component: openvswitch2.11Assignee: Timothy Redaelli <tredaelli>
Status: CLOSED CURRENTRELEASE QA Contact: Hekai Wang <hewang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: FDB 18.11CC: ctrautma, jhsiao, jiqiu, kzhang, pvauter, qding, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch2.11-2.11.0-2.el8fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-09 08:47:30 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 Hekai Wang 2019-02-18 03:22:33 UTC
Description of problem:
ovs-tcpdump does not work on rhel8 in package openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch

with below track info 

Traceback (most recent call last):
  File "/usr/bin/ovs-tcpdump", line 488, in <module>
    main()
  File "/usr/bin/ovs-tcpdump", line 454, in main
    mirror_select_all)
UnboundLocalError: local variable 'mirror_select_all' referenced before assignment





Version-Release number of selected component (if applicable):

[root@dell-per730-54 ~]# rpm -qf /usr/bin/ovs-tcpdump 
openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch

[root@dell-per730-54 ~]# rpm -ql openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch


/usr/bin/ovs-pcap
/usr/bin/ovs-tcpdump
/usr/bin/ovs-tcpundump
/usr/lib/python3.6/site-packages/ovstest
/usr/lib/python3.6/site-packages/ovstest/__init__.py
/usr/lib/python3.6/site-packages/ovstest/__pycache__
/usr/lib/python3.6/site-packages/ovstest/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/args.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/args.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/rpcserver.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/rpcserver.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/tcp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/tcp.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/tests.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/tests.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/udp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/udp.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/vswitch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/ovstest/__pycache__/vswitch.cpython-36.pyc
/usr/lib/python3.6/site-packages/ovstest/args.py
/usr/lib/python3.6/site-packages/ovstest/rpcserver.py
/usr/lib/python3.6/site-packages/ovstest/tcp.py
/usr/lib/python3.6/site-packages/ovstest/tests.py
/usr/lib/python3.6/site-packages/ovstest/udp.py
/usr/lib/python3.6/site-packages/ovstest/util.py
/usr/lib/python3.6/site-packages/ovstest/vswitch.py
/usr/share/man/man1/ovs-pcap.1.gz
/usr/share/man/man1/ovs-tcpundump.1.gz
/usr/share/man/man8/ovs-tcpdump.8.gz
[root@dell-per730-54 ~]# vim /usr/bin/ovs-tcpdump 
[root@dell-per730-54 ~]# vim /usr/bin/ovs-tcpdump 
[root@dell-per730-54 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.0 Beta (Ootpa)
[root@dell-per730-54 ~]# uname -r
4.18.0-69.el8.test.x86_64
[root@dell-per730-54 ~]# uname -a
Linux dell-per730-54.rhts.eng.pek2.redhat.com 4.18.0-69.el8.test.x86_64 #1 SMP Fri Feb 15 23:33:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per730-54 ~]# 


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jiying Qiu 2019-02-27 06:56:19 UTC
rhel7 version not work well too.
# rpm -qa |grep openvswitch 
openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el7fdp.noarch
openvswitch2.11-2.11.0-0.20190129gitd3a10db.el7fdp.x86_64
python-openvswitch2.11-2.11.0-0.20190129gitd3a10db.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-10.el7fdp.noarch

# ovs-tcpdump -i dpdk0 -nne
Traceback (most recent call last):
  File "/usr/bin/ovs-tcpdump", line 488, in <module>
    main()
  File "/usr/bin/ovs-tcpdump", line 454, in main
    mirror_select_all)
UnboundLocalError: local variable 'mirror_select_all' referenced before assignment

Comment 4 Hekai Wang 2019-04-08 05:36:23 UTC
[root@dell-per730-54 ~]# rpm -qa | grep openv
openvswitch2.11-2.11.0-4.el8fdp.x86_64
python3-openvswitch2.11-2.11.0-4.el8fdp.x86_64
openvswitch2.11-test-2.11.0-4.el8fdp.noarch
openvswitch-selinux-extra-policy-1.0-11.el8fdp.noarch
[root@dell-per730-54 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.0 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.0"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.0 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.0:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.0"
[root@dell-per730-54 ~]# 

With This version 
It work fine .