Bug 708458

Summary: Dangling symlinks upon installation of kmod-kvm on RHEL 5.6
Product: Red Hat Enterprise Linux 5 Reporter: Akemi Yagi <toracat>
Component: module-init-toolsAssignee: David Shea <dshea>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.6CC: ajb, azelinka, dshea, jcm, phil, psklenar, tis
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: module-init-tools-3.3-0.pre3.1.62.el5 Doc Type: Bug Fix
Doc Text:
Updating kmod-kvm after a kernel update had been performed caused a broken symbolic link to the kvm.ko module due to the link pointing to the old kernel's kvm.ko module. Now, the new version of kmod-kvm is updated, and broken symbolic links no longer occur in the described scenario.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 00:40:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 921048, 928849    

Description Akemi Yagi 2011-05-27 17:34:21 UTC
Description of problem:
The latest kmod-kvm creates broken symbolic links on RHEL 5.6.

Version-Release number of selected component (if applicable):
module-init-tools-3.3-0.pre3.1.60.el5_5.1
kmod-kvm-83-224.el5_6.1

How reproducible:
Always

Steps to Reproduce:
1. Install kmod-kvm-83-224.el5
2. Update the kernel to 238.9.1
3. Update kmod-kvm to 83-224.el5_6.1
  
Actual results:
lrwxrwxrwx 1 root root      49 Apr 12 18:12  /lib/modules/2.6.18-238.9.1.el5/weak-updates/kmod-kvm/kvm.ko -> /lib/modules/2.6.18-237.el5/extra/kmod-kvm/kvm.ko

The target is non-existing. This is a broken link.

Expected results:
It should link to /lib/modules/2.6.18-238.9.1/extra/kmod-kvm/kvm.ko

Additional info:

This issue can be reproduced by the following procedure:

Have 2 versions of kernel (A and B) ready.
Have a kmod package with two different kversions ready.

(1) Install the kmod-kversion1 on kernel-A.
(2) Update the kernel to the newer kernel-B.
(3) Update the kmod to kmod-kversion2

When the version of kernel-B matches exactly with the kversion of the new kmod, kernel-B gets a dangling symlink. (This happened with kmod-kvm)

This does not impose a problem function-wise as far as 'extra' has precedence over weak-updates (default).

Comment 1 Akemi Yagi 2012-01-22 08:45:32 UTC
Jon,

Did you have a chance to look at this bug? Any chance you can fix this in the next release of module-init-tools?

Comment 8 errata-xmlrpc 2013-10-01 00:40:39 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-2013-1359.html