Bug 767059

Summary: info: kmod rpm verify command is not running
Product: [Retired] Red Hat Hardware Certification Program Reporter: Guangze Bai <gbai>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Guangze Bai <gbai>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.4CC: czhang, rlandry, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No tech note needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-05 21:36:51 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    
Attachments:
Description Flags
a rough patch none

Description Guangze Bai 2011-12-13 05:11:17 UTC
Description of problem:

from info.py

180     def checkModules(self):

208                 # RH kmods are allowed
209                 elif self.checkModuleVenderAndBuildHost(module) and Command("rpm -Vf %s" % moduleFile):
210                     print "kmod package: %s" % Command("rpm -qf %s" % moduleFile).getString()
211                 # Check non-RH modules ABI; but still fail
212                 else:
213                     self.abiCheck(module)
214                     success = False

line 209, Command("rpm -Vf %s" % moduleFile) does not run.

Version-Release number of selected component (if applicable):
v7-1.4-38

Comment 1 Greg Nichols 2012-01-18 15:51:43 UTC
I don't understand the problem.  Under what conditions is "rpm -qf" on line 209 not run?

Comment 3 Guangze Bai 2012-01-19 09:31:31 UTC
Created attachment 556224 [details]
a rough patch

I mean the "rpm -Vf". The object Command("rpm -Vf %s" % moduleFile) should call a method,

e.g. Command("rpm -Vf %s" % moduleFile).run() or others

also relevent try/except block is necessary.

Comment 8 Caspar Zhang 2012-06-04 07:37:49 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:
No tech note needed.

Comment 10 errata-xmlrpc 2012-06-05 21:36:51 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