Bug 1799066

Summary: RHCert Update 7.6 breaks WIRELESS test (and probably other network tests)
Product: Red Hat Certification Program Reporter: Rainer Koenig <Rainer.Koenig>
Component: redhat-certification-hardwareAssignee: Jianwei Weng <jweng>
Status: CLOSED ERRATA QA Contact: rhcert qe <rhcert-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0CC: gnichols, jweng, panburaj, vmulaje
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 10:13:36 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:
Attachments:
Description Flags
Results file of failed Wireless test none

Description Rainer Koenig 2020-02-06 15:06:19 UTC
Description of problem:
Have a WLAN card (without and with Bluetooth) that I had to certify on RHEL8. The test without bluetooth was successfully performed on RHCert 7.5 a few days ago.

Then I updated tot RHCert 7.6 and tried to run the test again, in this case with the internal USB cable that provides bluetooth, but WIFI is still the exact same card. 

Now I get a FAIL and if I look at the logs I see lots of messages, that the /etc/sysconfig/networkscripts/ifupdown files are not found. 


How reproducible:
Always

Version of the component: 
redhat-certification-hardware-7.6-20200127.el8.noarch.rpm

Steps to Reproduce:
1. Install RHCert 7.6 update
2. Run WIRELESSAC test (or other networktests as well)
3. 

Actual results:
FAIL

Expected results:
PASS

Additional info:

If I diff over the files in that package between version 7.5 and 7.6 I get this change:

--- a/usr/lib/python3.6/site-packages/rhcert/suites/hwcert/hwcert/networkTest.py
+++ b/usr/lib/python3.6/site-packages/rhcert/suites/hwcert/hwcert/networkTest.py
@@ -53,7 +53,7 @@ class NetworkTest(HardwareTest):
         self.serverPath = os.path.join(self.environment.getServerDirectory(), Constants.store, self.environment.getServerTransfer())
         self.interfaceConnect = "nmcli dev connect"
         self.interfaceDisconnect = "nmcli dev disconnect"
-        if RHEL.major == "RHEL7":
+        if RHEL.major != "RHEL6":
             self.interfaceConnect = "ifup"
             self.interfaceDisconnect = "ifdown"


' RHEL.major != "RHEL6" ' is also true for RHEL8, but RHEL8 has no ifup/down scripts in /etc/sysconfig/network-scripts. 

If I revert this change to  ' RHEL.major == "RHEL7" ' as it was before then the WIRELESSAC test works as expected, but of course then the SELFCHECK test fails because rpm --verify will detect my change. ;-)

Maybe the compare string should read "RHEL8" instead of "RHEL6", but that would be a potential flaw once RHEL9 comes out. ;-)

Comment 1 Jianwei Weng 2020-02-27 00:54:32 UTC
Hello, 

could you please provide us with the test results based on the rhcert 7.6, cert dev team need it to check the issues.

Thanks
Jianwei

Comment 2 Rainer Koenig 2020-02-27 08:03:55 UTC
Created attachment 1666141 [details]
Results file of failed Wireless test

Results file of the failed wireless test is attached.

Comment 7 errata-xmlrpc 2020-04-01 10:13:36 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, 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/RHBA-2020:1271