Hide Forgot
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.
*** Bug 1336646 has been marked as a duplicate of this bug. ***
This is starting to have a negative impact. Raising priority to HIGH.
It looks like for some reason this is not really running as an update. Can you please provide the complete yum output?
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?
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.
Fix included in qemu-kvm-rhev-2.6.0-6.el7
-- 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%]
*** Bug 1374263 has been marked as a duplicate of this bug. ***
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