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 1375660

Summary: [OVS RPM] enable kernel datapath tests when building rpms.
Product: Red Hat Enterprise Linux 7 Reporter: Flavio Leitner <fleitner>
Component: openvswitchAssignee: Panu Matilainen <pmatilai>
Status: CLOSED CURRENTRELEASE QA Contact: Wangyang Li <wanli>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: aloughla, atragler, cascardo, lrichard, qding, wanli, wchadwic
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openvswitch-2.5.0-14.git20160727 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1397039 (view as bug list) Environment:
Last Closed: 2017-01-12 18:06:21 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:
Bug Depends On:    
Bug Blocks: 1384654    

Description Flavio Leitner 2016-09-13 15:44:22 UTC
Description of problem:

The idea is for QE to rebuild the .srpm against a specific kernel version in order to run OVS datapath testsuite as part of QA tests.

For instance:
# rpmbuild -rb --with check_datapath_kernel openvswitch*.src.rpm

The following upstream commit needs to be backported to our 2.5:

commit 8ef22bb1ceb7b2841d2e29eb283387f0a3a67ff9
Author: Lance Richardson <lrichard>
Date:   Fri Sep 2 09:55:27 2016 -0400

    rhel: add option to run kernel datapath test when building rpms
    
    Add ability to execute kernel datapath tests when building rpms.
    These tests are disabled by default, and can optionally be run
    by providing "--with check_datapath_kernel" on the rpmbuild command
    line.  This is intended to facilitate automated testing, and
    should not be used in production environments (it is generally not
    recommended to run rpmbuild as root).
    
    Suggested-by: Flavio Leitner <fbl>
    Signed-off-by: Lance Richardson <lrichard>
    Acked-by: Flavio Leitner <fbl>
    Signed-off-by: Russell Bryant <russell>


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

Comment 2 Flavio Leitner 2016-09-13 15:54:38 UTC
Note: 'nc' needs to be installed otherwise some tests might fail.

Comment 3 Thadeu Lima de Souza Cascardo 2016-09-13 16:08:04 UTC
pyftpdlib would be interesting too, so conntrack helpers could be tested. Not sure the best way to get it available/installed into RHEL, though.

Cascardo.

Comment 4 Lance Richardson 2016-09-13 16:17:38 UTC
(In reply to Thadeu Lima de Souza Cascardo from comment #3)
If EPEL can be used, the easiest path is "yum install python-pip" then
"pip install pyftpdlib".