Bug 1678079 - openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch ovs-tcpdump does not work
Summary: openvswitch2.11-test-2.11.0-0.20190129gitd3a10db.el8fdb.noarch ovs-tcpdump do...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch2.11
Version: FDB 18.11
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Timothy Redaelli
QA Contact: Hekai Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-18 03:22 UTC by Hekai Wang
Modified: 2022-11-09 09:19 UTC (History)
7 users (show)

Fixed In Version: openvswitch2.11-2.11.0-2.el8fdn
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-09 08:47:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-106 0 None None None 2022-11-09 09:19:16 UTC

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 .


Note You need to log in before you can comment on or make changes to this bug.