Bug 1375660 - [OVS RPM] enable kernel datapath tests when building rpms.
Summary: [OVS RPM] enable kernel datapath tests when building rpms.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: Wangyang Li
URL:
Whiteboard:
Depends On:
Blocks: 1384654
TreeView+ depends on / blocked
 
Reported: 2016-09-13 15:44 UTC by Flavio Leitner
Modified: 2018-07-30 08:22 UTC (History)
7 users (show)

Fixed In Version: openvswitch-2.5.0-14.git20160727
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1397039 (view as bug list)
Environment:
Last Closed: 2017-01-12 18:06:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

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".


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