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 598919

Summary: Remove kmod-spice-usb-redirector from rhel-5.5/32 will cause error message
Product: Red Hat Enterprise Linux 5 Reporter: Lei Wang <leiwang>
Component: spice-usb-redirectorAssignee: Uri Lublin <uril>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 5.5CC: bazulay, cmeadors, jcm, lkocman, llim, uril
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kspiceusb-kmod-4.5-8.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:47:22 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:

Description Lei Wang 2010-06-02 10:47:32 UTC
Description of problem:
The default kernel in rhel-5.5-client/32 is PAE kernel and there's no kmod-spice-usb-redirector for PAE kernel, so we need yum install common kernel in order to install kmod-spice-usb-redirector, after that when we try to remove kmod-spice-usb-redirector, there appears an error message.

Version-Release number of selected component (if applicable):
kmod-spice-usb-redirector-4.5-2.el5.i386.rpm

How reproducible:
Always

Steps to Reproduce:
1.Install common kernel to rhel-5.5-client os:
# yum install kernel.i686
2.Reboot, select the common kernel at grub
3.Install kmod-spice-usb-redirector and all dependent packages
4.Remove kmod-spice-usb-redirector:
# rpm -e kmod-spice-usb-redirector
  
Actual results:
An error message appears:
FATAL: Could not open '/boot/System.map-2.6.18-194.el5': No such file or directory

Expected results:
No error message appears

Additional info:
# uname -a
Linux dhcp-66-70-192.nay.redhat.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:22:18 EDT 2010 i686 i686 i386 GNU/Linux  
# ll /boot/System.map-2.6.18-194.*
-rw-r--r-- 1 root root 967664 May  2 16:37 /boot/System.map-2.6.18-194.3.1.el5
-rw-r--r-- 1 root root 965159 Mar 17 10:05 /boot/System.map-2.6.18-194.el5PAE

Comment 3 Uri Lublin 2010-09-28 19:02:18 UTC
I think this also true for 64 bit OS.

Note that the kernel has been updated (2.6.18-194.3.1.el5 vs 2.6.18-194).

The problem is in the %postun section.
Fix is to make it similar to the %post section, which is:
only call depmod if "/boot/System.map-${verrel}${variant}" exists.

Fix is in kmodtool (which is basically a change to the spec-file).

Comment 5 Jon Masters 2010-10-08 11:32:26 UTC
Let me know if you need anything from me.

Comment 9 Lubos Kocman 2010-11-02 16:44:52 UTC
Verified on kspiceusb-kmod-4.5-8.el5
 
rpm -e spice-usb-share will raise mentioned output.

Comment 11 errata-xmlrpc 2011-01-13 23:47:22 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-2011-0122.html