Bug 670060

Summary: yum update fails on xen component error
Product: Red Hat Enterprise Linux 5 Reporter: Geoff Quelch <gequelch>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 5.8CC: mrezanin, xen-maint
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: 2011-01-19 19:50:27 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:
Attachments:
Description Flags
Output from "yum update".
none
Output from yum -y update none

Description Geoff Quelch 2011-01-17 01:51:06 UTC
Description of problem: yum update fails with message:

ERROR with rpm_check_debug vs depsolve:
xen-libs is needed by (installed) xen-3.0.3-80.el5.i386

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


How reproducible:
Every time

Steps to Reproduce:
1. run "yum update"
2.
3.
  
Actual results:
See error.

Expected results:
yum update completes

Additional info:

Comment 1 Miroslav Rezanina 2011-01-17 07:38:07 UTC
Hi Geoff,
can you please provide following infos:

output of rpm -qa "xen*"
output of uname -a
full output of yum update

Comment 2 Geoff Quelch 2011-01-17 20:20:32 UTC
Created attachment 473924 [details]
Output from "yum update".

Output from "yum update".

Comment 3 Geoff Quelch 2011-01-17 20:30:04 UTC
Created attachment 473927 [details]
Output from yum -y update

Comment 4 Geoff Quelch 2011-01-17 20:31:29 UTC
[root@ndws00 ~]# rpm -qa "xen"
xen-3.0.3-80.el5
[root@ndws00 ~]# uname -a
Linux ndws00.deos.udel.edu 2.6.18-194.11.3.el5 #1 SMP Mon Aug 23 15:49:21 EDT 2010 i686 i686 i386 GNU/Linux

Comment 5 Miroslav Rezanina 2011-01-18 06:23:21 UTC
Thanks...just to output of rpm -qa..It should be rpm -qa "xen*" (with star to list all xen packages). Anyway, I see no problem from xen perspective. Reassign to yum to check what's wrong.

Comment 6 James Antill 2011-01-18 14:30:47 UTC
Actually run these commands instead:

rpm -Va --nofiles --nodigest
yum list 'xen*'

Comment 7 Geoff Quelch 2011-01-19 17:46:24 UTC
[root@ndws00 ~]# rpm -Va --nofiles --nodigest
Unsatisfied dependencies for xen-3.0.3-80.el5.i386: xen-libs = 3.0.3-80.el5

and

[root@ndws00 ~]# yum list 'xen*'
Loaded plugins: rhnplugin, security
/usr/lib/python2.4/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)
Installed Packages
xen.i386                                            3.0.3-80.el5                                            installed
xen-libs.i386                                       3.0.3-105.el5_5.5                                       installed
Available Packages
xen-libs.i386                                       3.0.3-120.el5                                           rhel-i386-server-5

Thanks.

Comment 8 James Antill 2011-01-19 19:50:27 UTC
Right, fix the pre-existing problems in the rpmdb and yum will be happy (yum assumes that the rpmdb is good before depsolving, rpm doesn't so much).

Comment 9 Geoff Quelch 2011-01-19 20:45:16 UTC
OK, so what's wrong with the rpmdb and how do I fix it?
Thanks.

Comment 10 James Antill 2011-01-19 21:11:37 UTC
You have a package already installed "xen" which has a requirement "xen-libs = 3.0.3-80.el5" which isn't met. This shouldn't be possible.

You could "yum remove xen" (or rpm -e xen), or try:

yum install "xen-libs = 3.0.3-80.el5"

...after the rpmdb is fixed, yum should work fine.

Comment 11 Geoff Quelch 2011-01-19 21:34:15 UTC
Since we don't use xen, I simply removed the xen packages and dependencies.
Re-running the yum update seems to be working fine now.

Many thanks for your help.
Geoff Quelch