Bug 872611

Summary: update obsoletes in SPEC to ensure correct update virt-manager-0.8.6.noarch -> 0.9.x86_64
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: virt-managerAssignee: Martin Kletzander <mkletzan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.4CC: dallan, dyasny, gkong, jdenemar, mzhan, rwu, tzheng, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-0.9.0-16.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 10:47:03 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:
Bug Depends On:    
Bug Blocks: 886216    

Description Karel Srot 2012-11-02 14:58:01 UTC
Description of problem:

because the yum uses a bit different (and more complicated) depsolver, it cannot simply deal with updates from arch to noarch package and vice versa.

virt-manager should explicitly obsolete the noarch version so it is properly updated.

The issue was originally filed as yum bug 727606, please see
comments  727606#c18 and 727606#c19 for more details.


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

How reproducible:
always

Steps to Reproduce:
1. try to update virt-manager-0.8.6.noarch -> 0.9.x86_64 with yum
  
Actual results:
not updated

Expected results:
pkg updated properly


Additional info:

Comment 2 Geyang Kong 2012-11-05 05:47:23 UTC
I cannot reproduce this bug either, my steps are same as Martin:

[root@KP-T1 Downloads]# rpm -q virt-manager
virt-manager-0.8.6-4.el6.noarch
[root@KP-T1 Downloads]# yum update virt-manager
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
              : subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package virt-manager.noarch 0:0.8.6-4.el6 will be updated
---> Package virt-manager.x86_64 0:0.9.0-15.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch           Version               Repository      Size
================================================================================
Updating:
 virt-manager         x86_64         0.9.0-15.el6          rhel64         1.0 M

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
virt-manager-0.9.0-15.el6.x86_64.rpm                     | 1.0 MB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Updating   : virt-manager-0.9.0-15.el6.x86_64                             1/2
  Cleanup    : virt-manager-0.8.6-4.el6.noarch                              2/2
Installed products updated.
  Verifying  : virt-manager-0.9.0-15.el6.x86_64                             1/2
  Verifying  : virt-manager-0.8.6-4.el6.noarch                              2/2

Updated:
  virt-manager.x86_64 0:0.9.0-15.el6

Complete!
[root@KP-T1 Downloads]# rpm -q virt-manager
virt-manager-0.9.0-15.el6.x86_64

Comment 3 Karel Srot 2012-11-05 06:55:46 UTC
Hi,
I am sorry I wasn't precise in the bug description. The problem appears with yum localupdate, not yum update (727606#c0 or 727606#c17).

Comment 4 Geyang Kong 2012-11-05 08:20:39 UTC
I've retried following steps and reproduced this bug now:

1. Install rhel6.2 with virtualization tools
2. Make sure it has virt-manager-0.8.6-4.el6.noarch
3. Make a rhel6.4 repo(since virt-manager-0.9.0-15 depends on some other packages so this step is necessary).
4. Download virt-manager-0.9.0-15.el6.x86_64.rpm
5. yum update virt-manager
6. rpm -e virt-manager
7. Delete the yum repo created in step 3.(This step is necessary, or yum update will work well)
8. Download virt-manager-0.8.6-4.el6.noarch.rpm and install it.
9. yum update virt-manager-0.9.0-15.el6.x86_64.rpm

Result:
[root@localhost Downloads]# yum update virt-manager-0.9.0-15.el6.x86_64.rpm 
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Update Process
Examining virt-manager-0.9.0-15.el6.x86_64.rpm: virt-manager-0.9.0-15.el6.x86_64
Marking virt-manager-0.9.0-15.el6.x86_64.rpm as an update to virt-manager-0.8.6-4.el6.noarch
No Packages marked for Update

Comment 7 Geyang Kong 2012-12-04 02:45:49 UTC
Verified pass on the following build:
virt-manager-0.9.0-16.el6.x86_64

Steps:
Same as Comment 4

Result:
1. Virt-manager can be updated by yum from noarch to x86_64 arch.

So mark this bug as VERIFIED.

Comment 9 errata-xmlrpc 2013-02-21 10:47:03 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-0451.html