Bug 470591 - [REG] Warning and FATAL messsages spew during kmod installation
Summary: [REG] Warning and FATAL messsages spew during kmod installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: redhat-rpm-config
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jon Masters
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-07 20:37 UTC by Keiichiro Tokunaga
Modified: 2018-10-20 01:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:04:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (500 bytes, patch)
2008-12-09 14:51 UTC, Olivier Fourdan
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0224 0 normal SHIPPED_LIVE redhat-rpm-config bug fix update 2009-01-20 16:06:24 UTC

Description Keiichiro Tokunaga 2008-11-07 20:37:55 UTC
Description of problem:
The following messages are output during kmod installation.

[root@dhcp47-139 dup]# rpm -ihv kmod-dup_cert_pass-1.0-0.ia64.rpm 
Preparing...                ########################################### [100%]
   1:kmod-dup_cert_pass     ########################################### [100%]
modinfo: could not open /lib/modules/2.6.18-121.el5/extra/dup_cert_pass: Is a directory
FATAL: /lib/modules/2.6.18-121.el5/extra/dup_cert_pass: Is a directory
Warning: Module dup_cert_pass from kernel  has no modversions, so it cannot be reused for kernel 2.6.18-120.el5
modinfo: could not open /lib/modules/2.6.18-121.el5/extra/dup_cert_pass: Is a directory
FATAL: /lib/modules/2.6.18-121.el5/extra/dup_cert_pass: Is a directory
Warning: Module dup_cert_pass from kernel  has no modversions, so it cannot be reused for kernel 2.6.18-122.el5

Version-Release number of selected component (if applicable):
redhat-rpm-config-8.0.45-27.el5

How reproducible:
Always.

Steps to Reproduce:
1. Install two or more kernels in the system.
2. Install your kmod RPM that was built on 5.3 environment.
  
Actual results:
The messages are output.

Expected results:
No messages are output.

Additional info:
- Seems the changes to the logic to obtain the paths of modules in kmodtool are the cause of the problem.
    Old: modules=( \$(rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$') )
    New: modules=( \$(find /lib/modules/${verrel}${variant}/extra/${kmod_name}) )
  find returns directories as well, making modinfo complain.
- Because of above, an installation of kmod that was built on 5.2 environment completes without the messages.  (The kmod contains the old logic in itself.)

Comment 1 Olivier Fourdan 2008-12-09 14:51:40 UTC
Created attachment 326321 [details]
Proposed patch

Comment 4 RHEL Program Management 2008-12-09 15:49:14 UTC
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.

Comment 8 Jon Masters 2008-12-10 20:23:42 UTC
Rebuild this package with a fix similar to that posted. Thanks!

Comment 17 errata-xmlrpc 2009-01-20 22:04:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0224.html


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