Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 1104848

Summary: Weak-updates link not created after errata kernel upgrade
Product: Red Hat Enterprise Linux 5 Reporter: Sarang Radke <sarang.radke>
Component: Driver Update DiskAssignee: Weiping Pan <wpan>
Status: CLOSED WONTFIX QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: giridhar.malavali, jshortt, kschneid, nilesh.javali, ruyang, soniya.agrawal, truong.nguyen, william.gens
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-18 17:24:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
RHEL5.10 DUD which is provided while installing the base system
none
Verbose o/p of RPM install
none
log generated by evoking weak-modules
none
RHEL5.10 DUD with rpms that install module in extra. none

Description Sarang Radke 2014-06-04 19:44:42 UTC
Created attachment 902312 [details]
RHEL5.10 DUD which is provided while installing the base system

Description of problem: The base system (2.6.18-371.el5PAE) is installed using a DUD and the OOB qla2xxx module loads fine. After the system is updated with errata kernel 2.6.18-371.8.1.el5PAE the system falls back to the inbox module.

It is observed that weak-updates directory is not getting populated with the original OOB module on base system.

Before errata kernel upgrade a file /etc/depmod.d/qla2xxx.conf is created with following entry:

override qla2xxx * weak-updates/

However, the inbox module gets loaded as the weak-updates dir is empty.

Version-Release number of selected component (if applicable):
base kernel: 2.6.18-371.el5PAE
errate kernel: 2.6.18-371.8.1.el5PAE
DUD version: qla2xxx-8.07.00.08.5.6-k1-dd-rhel5u10-2.6.18-371-i686

How reproducible:
Always

Steps to Reproduce:
1. Install base system using the DUD
2. Upgrade to errata kernel
3. Boot into errata kernel

Actual results:
Inbox module gets loaded

Expected results:
OOB, the module from DUD should get loaded

Additional info:

Comment 1 Weiping Pan 2014-06-06 06:59:33 UTC
Hi, Sarang,

Can you put the trace of following commands ?

1 when you update your kernel, download the rpm and run 
rpm -Uvh kernel-PAE-2.6.18-371.8.1.el5.i686.rpm -vv

2 manually invoke weak-modules scritps
sh -x /sbin/weak-modules --add-kernel 2.6.18-371.8.1.el5PAE


And can you attach your binary rpm for your driver ?

thanks
Weiping Pan

Comment 2 Sarang Radke 2014-06-09 23:17:07 UTC
Created attachment 906662 [details]
Verbose o/p of RPM install

Comment 3 Sarang Radke 2014-06-09 23:19:12 UTC
Created attachment 906663 [details]
log generated by evoking weak-modules

Comment 4 Sarang Radke 2014-06-09 23:21:05 UTC
Hi Weiping,

The o/p of two commands is attached.

Please note, this DUD does not contain binary RPM.

Could this be a reason of failure? I see that the module gets installed in "updates" and not in "extra" like KMOD RPMS.

-Thanks,
Sarang

(In reply to Weiping Pan from comment #1)
> Hi, Sarang,
> 
> Can you put the trace of following commands ?
> 
> 1 when you update your kernel, download the rpm and run 
> rpm -Uvh kernel-PAE-2.6.18-371.8.1.el5.i686.rpm -vv
> 
> 2 manually invoke weak-modules scritps
> sh -x /sbin/weak-modules --add-kernel 2.6.18-371.8.1.el5PAE
> 
> 
> And can you attach your binary rpm for your driver ?
> 
> thanks
> Weiping Pan

Comment 5 Weiping Pan 2014-06-10 01:46:38 UTC
(In reply to Sarang Radke from comment #4)
> Hi Weiping,
> 
> The o/p of two commands is attached.
> 
> Please note, this DUD does not contain binary RPM.
> 
> Could this be a reason of failure? I see that the module gets installed in
> "updates" and not in "extra" like KMOD RPMS.

Maybe you got the reason,
+ '[' -d /lib/modules/2.6.18-371.el5PAE/extra ']'
+ continue

If you do not install it in extra, the weak-modules script will skip it and exit.

Can you try to put the modules in extra directory ?


> 
> -Thanks,
> Sarang
>

Comment 6 Sarang Radke 2014-06-10 22:14:12 UTC
Hi Weiping,

Does this mean that to put the modules in extra dir, we need to have the RPM in DUD. Won't the current DUD allow that?

For generating DUDs on RHEL6+ we use ddiskit scripts which include the RPM within the ISO.

-Thanks,
Sarang

Comment 7 Weiping Pan 2014-06-13 04:12:31 UTC
Hi, Sarang,

I recommend you take a look at the DUP we made for RHEL5, it contains rpm and the modules.cgz does not have "extra" dir.

http://people.redhat.com/jbenc/dup/rhel5.8/dd-bnx2family-14247/dd-bnx2family-14247-el5_8-x86_64.iso

thanks
Weiping Pan

Comment 8 Sarang Radke 2014-06-13 17:52:58 UTC
Hi Weiping,

Thanks for providing a sample DUP.

I realize that there are multiple files which we are not including in our DUP.

Given that, can you propose a recommended way to build the DUP. Also if there is a documentation which provides details and purpose of all the files, that would be a great help.

-Thanks,
Sarang

Comment 10 Soniya 2014-07-15 10:05:15 UTC
Created attachment 918110 [details]
RHEL5.10 DUD with rpms that install module in extra.

Hi Weiping,

I tried to build the DUP with rpms in it. 

However it does not install the rpm and falls back to modules.cgz for the module.

Thanks,
Soniya

Comment 11 Soniya 2014-08-06 07:37:02 UTC
Hi Weiping,

Did you get a chance to analyze this ?

Thanks,
Soniya

Comment 12 John Shortt 2014-09-18 17:24:48 UTC
DUPs for RHEL5 are no longer supported.  Closing this BZ.  If you believe there is an issue related to RHEL6 or RHEL7, please open another BZ against those products.

Thanks