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