Bug 1300827 - rhcert-backend register fails with rhcert.command.HwCertCommandException
rhcert-backend register fails with rhcert.command.HwCertCommandException
Status: CLOSED NOTABUG
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware (Show other bugs)
1.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: brose
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-21 15:45 EST by Brian Brock
Modified: 2017-04-18 21:23 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-18 21:23:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Brian Brock 2016-01-21 15:45:44 EST
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 15:47:39 EST
This system has an unused wlan interface
Comment 2 Brian Brock 2016-01-21 15:49:05 EST
... and I see now the functionality is unsupported and incomplete.  However, it is present in the cli help text, already.

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