Bug 767059 - info: kmod rpm verify command is not running
Summary: info: kmod rpm verify command is not running
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 1.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Guangze Bai
URL:
Whiteboard:
Depends On:
Blocks: 767775 773757
TreeView+ depends on / blocked
 
Reported: 2011-12-13 05:11 UTC by Guangze Bai
Modified: 2015-02-08 21:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No tech note needed.
Clone Of:
Environment:
Last Closed: 2012-06-05 21:36:51 UTC


Attachments (Terms of Use)
a rough patch (1.12 KB, patch)
2012-01-19 09:31 UTC, Guangze Bai
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0711 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2012-06-06 01:26:37 UTC

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


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