Bug 1300827 - rhcert-backend register fails with rhcert.command.HwCertCommandException
Summary: rhcert-backend register fails with rhcert.command.HwCertCommandException
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: brose
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-21 20:45 UTC by Brian Brock
Modified: 2017-04-19 01:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-19 01:23:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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