Bug 61420

Summary: upgraded kernel not reported by rpm
Product: [Retired] Red Hat Linux Reporter: Lorna Watts <lorna.watts>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-19 14:26:03 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 Lorna Watts 2002-03-19 14:25:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)

Description of problem:
I got rpm database errors when I upgraded my kernel from 2.4.7.10 to 2.4.9.31 
and modutils to modutils-2.4.13-0.7.1 as part of this work. 

rpm -q kernel still gives the old kernel version - 2.4.7.10. rpm -qa | grep 
kernel lists the old kernel packages but not the new one. But the new kernel 
boots successfully, has been added to /etc/grub.conf and is listed by uname -a.

Initially, rpm -qa | grep kernel gave an error (below) but I have reinstalled 
the same version of rpm and rebuilt the database and I no longer get this 
error. But rpm still does not list the new kernel version.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.rpm -q kernel 
2.rpm -qa | grep kernel 
3.uname -a 
	

Actual Results:  1. lists old kernel revision only 
2. lists only old kernel versions
3. lists new kernel version

Expected Results:  1. The new kernel should be listed as well as the old one
2. All kernel packages, both new and old versions, should be listed
3. uname -a should list the running kernel version (it does)

Additional info:

new modutils rpm version: modutils-2.4.13-0.7.1
new kernel version: 2.4.9-31
error when upgraded modutils:
error: db3 error(-30998) from db->close: DB_INCOMPLETE: Cache flush was unable 
to complete
rpmdb: First overflow page 1445 of invalid type
error: db3 error(-30985) from db->verify: DB_VERIFY_BAD: Database verification 
failed

error when upgraded kernel:
error: db3 error(-30998) from db->close: DB_INCOMPLETE: Cache flush was unable 
to complete
rpmdb: First overflow page 1445 has a prev_pgno
rpmdb: Overflow item incomplete on page 1210
error: db3 error(-30985) from db->verify: DB_VERIFY_BAD: Database verification 
failed

error when running rpm -qa | grep kernel after upgrades but before reinstalled 
rpm and rebuilt database:
error: rpmdb: damaged header instance #875 retrieved, skipping

Comment 1 Jeff Johnson 2002-03-19 15:28:47 UTC
Reinstall the kernel package in order to
re-add the header to the database.