Bug 760755

Summary: v7-1.4 will traceback if modinfo fails to provide srcversion
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Guangze Bai <gbai>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: czhang, gbai, rlandry, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
a bug fix has been added to v7 1.5 that `info` test will not show python traceback if a module in-use doesn't have a srcversion entry.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-05 21:36:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 767775, 773757    

Description Rob Landry 2011-12-06 21:36:57 UTC
Description of problem:


#
Traceback (most recent call last):
#
  File "/usr/bin/v7", line 45, in ?
#
    success = v7.do(args)
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 193, in do
#
    result = self.commands[self.command]()
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 645, in doRun
#
    return self._doRun(tests)       
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 748, in _doRun
#
    returnValue = self.runTest(tmpDirectory, test, run, outputFilePath)
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 1165, in runTest
#
    rv = test.run()
#
  File "/usr/share/v7/tests/info/info.py", line 448, in run
#
    if not self.runSubTest(self.checkModules, name="Modules", description="Check kernel modules"):
#
  File "/usr/share/v7/lib/v7/test.py", line 452, in runSubTest
#
    result = subtestFunction()
#
  File "/usr/share/v7/tests/info/info.py", line 200, in checkModules
#
    moduleFile = self.getModuleFile(module)
#
  File "/usr/share/v7/tests/info/info.py", line 314, in getModuleFile
#
    modInfoSrcVersion = Command("modinfo -F srcversion %s" % module).getString()
#
  File "/usr/share/v7/lib/v7/command.py", line 207, in getString
#
    result = self._getString(regex, regexGroup, singleLine, returnList=False)
#
  File "/usr/share/v7/lib/v7/command.py", line 164, in _getString
#
    raise V7CommandException(self, "no match for regular expression %s" % self.regex)
#
v7.command.V7CommandException: "modinfo -F srcversion nvidia" no match for regular expression None

Comment 2 Rob Landry 2012-01-11 22:49:39 UTC
The traceback should be addressed, though the test is still going to fail.

Comment 7 Caspar Zhang 2012-06-04 07:36:42 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
a bug fix has been added to v7 1.5 that `info` test will not show python traceback if a module in-use doesn't have a srcversion entry.

Comment 9 errata-xmlrpc 2012-06-05 21:36:49 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.

http://rhn.redhat.com/errata/RHBA-2012-0711.html