Bug 1300827

Summary: rhcert-backend register fails with rhcert.command.HwCertCommandException
Product: Red Hat Certification Program Reporter: Brian Brock <bbrock>
Component: redhat-certification-hardwareAssignee: brose
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: brose, gnichols
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-19 01:23:20 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:

Description Brian Brock 2016-01-21 20:45:44 UTC
Description of problem:
running `rhcert-backend register --server $LTS` results in a crash with python traceback

Version-Release number of selected component (if applicable):
# rpm -q redhat-certification redhat-certification-hardware
redhat-certification-2.2-20160120.el7.noarch
redhat-certification-hardware-1.7.1-20160121.el7.noarch



How reproducible:
no workarounds or preconditions found yet

Steps to Reproduce:
1. install redhat-certification-hardware
2. run `rhcert-backend register --server $LTS`
3.

Actual results:
traceback

Expected results:
successful system registration without error

Additional info:
# rhcert-backend register --server=$LTS
Traceback (most recent call last):
  File "/usr/bin/rhcert-backend", line 37, in <module>
    success = rhcertBackend.do(args)
  File "/usr/lib/python2.7/site-packages/rhcert/client/backend.py", line 187, in do
    result = self.commands[self.command]()
  File "/usr/lib/python2.7/site-packages/rhcert/client/backend.py", line 281, in doRegister
    if TestHarness.doRegister(self):
  File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 100, in doRegister
    self.planner.plan()
  File "/usr/lib/python2.7/site-packages/rhcert/planner.py", line 153, in plan
    self.plannedTests = self.planTests()
  File "/usr/lib/python2.7/site-packages/rhcert/planner.py", line 135, in planTests
    someTests = test.plan(self.getPlanner(test))
  File "/usr/lib/python2.7/site-packages/rhcert/suites/hwcert/tests/wlan/wlan.py", line 54, in plan
    if logicalDevice in interfaces and self.isBestType(wireless.getType()):
  File "/usr/lib/python2.7/site-packages/rhcert/suites/hwcert/hwcert/wireless.py", line 108, in getType
    iw_command = Command("iw %s info" % self.getPhy())
  File "/usr/lib/python2.7/site-packages/rhcert/suites/hwcert/hwcert/wireless.py", line 105, in getPhy
    return rfkill_command.getString(regex="^\d: (?P<wifi>.*):.*Wireless LAN", regexGroup="wifi", singleLine=False)
  File "/usr/lib/python2.7/site-packages/rhcert/command.py", line 205, in getString
    result = self._getString(regex, regexGroup, singleLine, returnList=False)
  File "/usr/lib/python2.7/site-packages/rhcert/command.py", line 194, in _getString
    raise HwCertCommandException(self, "no match for regular expression %s" % self.regex)
rhcert.command.HwCertCommandException: "rfkill list all" no match for regular expression ^\d: (?P<wifi>.*):.*Wireless LAN



($LTS is a system running the same packages, and the LTS' actual hostname was used instead).

Comment 1 Brian Brock 2016-01-21 20:47:39 UTC
This system has an unused wlan interface

Comment 2 Brian Brock 2016-01-21 20:49:05 UTC
... and I see now the functionality is unsupported and incomplete.  However, it is present in the cli help text, already.