Bug 1320476

Summary: Failed to upgrade qemu-kvm-tools-rhev from 2.3.0 to 2.5.0
Product: Red Hat Enterprise Linux 7 Reporter: yafu <yafu>
Component: qemu-kvm-rhevAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED ERRATA QA Contact: Chao Yang <chayang>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: armbru, chayang, jen, juzhang, knoel, mprivozn, mrezanin, virt-maint, xfu, yafu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.6.0-6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 21:02:19 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:

Description yafu 2016-03-23 10:14:11 UTC
Description of problem:
Upgrade qemu-kvm-tools-rhev from 2.3.0-31 to 2.5.0.3, it failed with error: file /usr/share/qemu-kvm/tscdeadline_latency.flat from install of qemu-kvm-tools-rhev-10:2.5.0-3.el7.x86_64 conflicts with file from package qemu-kvm-tools-rhev-10:2.3.0-31.el7.x86_6. 


Version-Release number of selected component (if applicable):
qemu-kvm-tools-rhev-2.5.0-3.el7.x86_64
qemu-kvm-tools-rhev-2.3.0-31.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare a host with qemu-kvm-tools-rhev-2.3.0-31.el7.x86_64;
2.Upgrade qemu-kvm-tools-rhev to qemu-kvm-tools-rhev-2.5.0-3.el7.x86_64
 #yum upgrade qemu-kvm-tools-rhev-2.5.0-3.el7.x86_64
  ...
  Transaction check error:
  file /usr/share/qemu-kvm/tscdeadline_latency.flat from install of qemu-kvm-tools-rhev-10:2.5.0-3.el7.x86_64 conflicts with file from package qemu-kvm-tools-rhev-10:2.3.0-31.el7.x86_64
  ...

Actual results:


Expected results:
Could upgrade to qemu-kvm-tools-rhev-2.5.0.3.el7.x86_64 successfully.

Additional info:
qemu-kvm-tools-rhev-2.5.0.1 and qemu-kvm-tools-rhev-2.5.0.2 can upgrade to qemu-kvm-tools-rhev-2.5.0.3 successfully.

Comment 1 Miroslav Rezanina 2016-05-24 10:26:00 UTC
*** Bug 1336646 has been marked as a duplicate of this bug. ***

Comment 3 Jeff Nelson 2016-06-02 14:37:47 UTC
This is starting to have a negative impact. Raising priority to HIGH.

Comment 4 Florian Festi 2016-06-09 08:44:01 UTC
It looks like for some reason this is not really running as an update.

Can you please provide the complete yum output?

Comment 5 Florian Festi 2016-06-09 09:02:07 UTC
OK, I think I got the problem:

rpm in it's great wisdom determines the "color" (the package being 32 or 64 bit) by the contents of the files.

rpm -qp --qf="[%{filenames} %{filecolors}\n]" ~/Downloads/qemu-kvm-tools-rhev-2.3.0-31.el7.x86_64.rpm
/usr/bin/kvm_stat 0
/usr/share/qemu-kvm/tscdeadline_latency.flat 1


rpm -qp --qf="[%{filenames} %{filecolors}\n]" ~/Downloads/qemu-kvm-tools-rhev-2.6.0-1.el7.x86_64.rpm
/usr/bin/ivshmem-client 2
/usr/bin/ivshmem-server 2
/usr/bin/kvm_stat 0
/usr/share/qemu-kvm/tscdeadline_latency.flat 1

So it thinks qemu-kvm-tools-rhev-2.3.0-31.el7.x86_64.rpm is color 1 (aka i32). So the new package (which is correctly detected as 64 bit due to the new 64 bit tools in it) does not update it.

Whether using the file content in this way is a good idea is probably not for discussion as we probably can't change that within the RHEL release. Can you try to just Obsolete the 2.3 Package from the new one, please?

Comment 6 Markus Armbruster 2016-06-09 16:45:20 UTC
We should *not* package ivshmem-client and ivshmem-server!  These are example programs, not ready for production use and certainly not supportable in their current form.

Comment 7 Miroslav Rezanina 2016-06-15 13:07:46 UTC
Fix included in qemu-kvm-rhev-2.6.0-6.el7

Comment 9 Chao Yang 2016-09-06 05:50:52 UTC
-- Reproduced with qemu-kvm-rhev-2.5.0-4.el7

# rpm -Uvh qemu-kvm-rhev-2.5.0-4.el7/qemu-kvm-tools-rhev-2.5.0-4.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
	file /usr/share/qemu-kvm/tscdeadline_latency.flat from install of qemu-kvm-tools-rhev-10:2.5.0-4.el7.x86_64 conflicts with file from package qemu-kvm-tools-rhev-10:2.3.0-31.el7_2.20.x86_64

# rpm -qpl qemu-kvm-rhev-2.5.0-4.el7/qemu-kvm-tools-rhev-2.5.0-4.el7.x86_64.rpm
/usr/bin/ivshmem-client
/usr/bin/ivshmem-server
/usr/bin/kvm_stat
/usr/share/qemu-kvm/tscdeadline_latency.flat


-- Verified pass with qemu-kvm-rhev-2.6.0-22.el7

# rpm -qpl qemu-kvm-tools-rhev-2.6.0-22.el7.x86_64.rpm
/usr/bin/kvm_stat
/usr/share/qemu-kvm/tscdeadline_latency.flat

# rpm -Uvh qemu-kvm-tools-rhev-2.6.0-22.el7.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:qemu-kvm-tools-rhev-10:2.6.0-22.e################################# [ 50%]
Cleaning up / removing...
   2:qemu-kvm-tools-rhev-10:2.3.0-31.e################################# [100%]

Comment 10 Jeff Nelson 2016-09-20 13:18:03 UTC
*** Bug 1374263 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2016-11-07 21:02:19 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.

https://rhn.redhat.com/errata/RHBA-2016-2673.html