Bug 1813252

Summary: dpdk-devel needs rdma-core-devel and libmnl-devel on x86_64
Product: Red Hat Enterprise Linux 8 Reporter: Timothy Redaelli <tredaelli>
Component: dpdkAssignee: Timothy Redaelli <tredaelli>
Status: CLOSED ERRATA QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: kazen, ovs-qe
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dpdk-19.11.1-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 04:02:06 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 Timothy Redaelli 2020-03-13 11:37:09 UTC
dpdk-devel needs rdma-core-devel and libmnl-devel on x86_64 for Mellanox PMDs.

Test: build ovs 2.13 from git with --with-dpdk

Comment 3 Jean-Tsung Hsiao 2020-07-16 01:18:03 UTC
(In reply to Timothy Redaelli from comment #0)
> dpdk-devel needs rdma-core-devel and libmnl-devel on x86_64 for Mellanox
> PMDs.
> 
> Test: build ovs 2.13 from git with --with-dpdk

Please let me how to "build ovs 2.13 from git with --with-dpdk"
Thanks!
Jean

Comment 4 Timothy Redaelli 2020-07-27 16:40:30 UTC
You need to install dpdk-devel and dpdk from dpdk-19.11.2-1.el8 (see the errata https://errata.devel.redhat.com/advisory/55958) and then launch the following commands:

sudo dnf build-dep openvswitch2.13
git clone -b v2.13.0 --depth 1 https://github.com/openvswitch/ovs.git
cd ovs
./boot.sh && ./configure --with-dpdk && make -j$(nproc)

Comment 5 Jean-Tsung Hsiao 2020-07-27 19:18:29 UTC
Hi Tim,
Get Error --- see log below.
Something missing ?
Please advise!
Thanks!
Jean


[root@netqe29 ~]# sudo dnf build-dep openvswitch2.13
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 2:46:37 ago on Mon 27 Jul 2020 12:26:53 PM EDT.
no package matched: openvswitch2.13
Error: Some packages could not be found.
[root@netqe29 ~]# rpm -qa | grep dpdk
dpdk-devel-19.11.2-1.el8.x86_64
dpdk-19.11.2-1.el8.x86_64
dpdk-debuginfo-19.11.2-1.el8.x86_64
dpdk-tools-19.11.2-1.el8.x86_64
dpdk-devel-debuginfo-19.11.2-1.el8.x86_64
dpdk-debugsource-19.11.2-1.el8.x86_64
[root@netqe29 ~]#

Comment 6 Jean-Tsung Hsiao 2020-07-28 20:12:32 UTC
HI Tim,
Even after fast data path repo enable I am still getting trouble --- check log below.
Please advise.
Thanks!

[root@netqe29 ovs]# yum repolist | grep -i fast
fast-datapath-beta-for-rhel-8-x86_64-debug-rpms  Fast Datapath Beta for RHEL 8 x86_64 (Debug RPMs)
fast-datapath-beta-for-rhel-8-x86_64-rpms        Fast Datapath Beta for RHEL 8 x86_64 (RPMs)
fast-datapath-beta-for-rhel-8-x86_64-source-rpms Fast Datapath Beta for RHEL 8 x86_64 (Source RPMs)
[root@netqe29 ovs]# sudo dnf build-dep openvswitch2.13
Updating Subscription Management repositories.
enabling rhel-8-for-x86_64-baseos-beta-source-rpms repository
enabling rhel-8-for-x86_64-appstream-beta-source-rpms repository
Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (Source RPMs)                                        11 kB/s | 3.8 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (Source RPMs)                                    8.4 kB/s | 3.8 kB     00:00    
no package matched: openvswitch2.13
Error: Some packages could not be found.
[root@netqe29 ovs]# 

Jean

Comment 7 Timothy Redaelli 2020-07-29 09:58:20 UTC
To avoid dependency on fast-datapath repository you can do:

sed -e 's/@VERSION@/0.0.1/' rhel/openvswitch-fedora.spec.in > /tmp/ovs.spec
sudo dnf build-dep --define='with_dpdk 1' /tmp/ovs.spec

Instead of sudo dnf build-dep openvswitch2.13

Comment 8 Jean-Tsung Hsiao 2020-07-29 20:21:28 UTC
(In reply to Timothy Redaelli from comment #7)
> To avoid dependency on fast-datapath repository you can do:
> 
> sed -e 's/@VERSION@/0.0.1/' rhel/openvswitch-fedora.spec.in > /tmp/ovs.spec
> sudo dnf build-dep --define='with_dpdk 1' /tmp/ovs.spec
> 
> Instead of sudo dnf build-dep openvswitch2.13

Looks like successful. Please check last few lines of the console log --- attached below.
What to look for now to verify this Bug ?
Thanks!
Jean

writing output... [100%] tutorials/ovs-conntrack                               
generating indices... genindex
writing additional pages... search
copying images... [100%] intro/../_static/overview.png                         
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.

The HTML pages are in Documentation/_build/html.
mv tests/testsuite.tmp tests/testsuite
sphinx-build-3  -b man -W -n -d ./Documentation/_build/doctrees  ./Documentation ./Documentation/_build/man && touch docs-check
Running Sphinx v1.7.6
Cannot find 'ovs-sphinx-theme' package. Falling back to default theme.
making output directory...
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
writing... ovs-appctl.8 { } ovs-ctl.8 { } ovs-l3ping.8 { } ovs-parse-backtrace.8 { } ovs-pki.8 { } ovs-sim.1 { } ovs-tcpdump.8 { } ovs-tcpundump.1 { } ovs-test.8 { } ovs-vlan-test.8 { } ovsdb-server.7 { } ovsdb.5 { } ovsdb.7 { } 
build succeeded.

The manual pages are in Documentation/_build/man.
make[2]: Leaving directory '/root/ovs'
make[1]: Leaving directory '/root/ovs'
[root@netqe29 ovs]#

Comment 9 Jean-Tsung Hsiao 2020-07-30 19:29:41 UTC
Per IRC communication with the build was successful. Will set the status to VERIFIED.

Comment 12 errata-xmlrpc 2020-11-04 04:02:06 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 (Important: dpdk security, 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/RHSA-2020:4806

Comment 13 Red Hat Bugzilla 2023-09-14 05:54:20 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days