Bug 1799066 - RHCert Update 7.6 breaks WIRELESS test (and probably other network tests)
Summary: RHCert Update 7.6 breaks WIRELESS test (and probably other network tests)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware
Version: 1.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jianwei Weng
QA Contact: rhcert qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-06 15:06 UTC by Rainer Koenig
Modified: 2020-04-01 10:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 10:13:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Results file of failed Wireless test (4.98 MB, application/gzip)
2020-02-27 08:03 UTC, Rainer Koenig
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1271 0 None None None 2020-04-01 10:13:41 UTC

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


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