Bug 2006388

Summary: Downgrade from a qemu-kvm with qemu-kvm-docs subpackage fails when the lower version doesn't have one.
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Danilo de Paula <ddepaula>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: General QA Contact: jingzhao <jinzhao>
Status: CLOSED WONTFIX Docs Contact:
Severity: unspecified    
Priority: unspecified CC: coli, juzhang, virt-bugs, virt-maint, yfu
Version: 8.5   
Target Milestone: rc   
Target Release: 8.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2006363 Environment:
Last Closed: 2021-09-27 21:18:25 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: 2006363    
Bug Blocks:    

Description Danilo de Paula 2021-09-21 15:56:12 UTC
+++ This bug was initially created as a clone of Bug #2006363 +++

When downgrading from qemu-kvm-6 (or even 5) to qemu-kvm 4, the downgrade process fails with conflicts between files from qemu-kvm-common-4 and qemu-kvm-docs-6

This is an hypothesis, but I believe it happens because qemu-kvm-docs-6 doesn't get uninstalled when qemu-kvm-common-4 gets installed, raising a conflict.

Here's a output of the issue:
 -------------------------------------------------------------------------
|                                                                         |
| TEST                                                                    |
| ====                                                                    |
|                                                                         |
|   TYPE:        update                                                   |
|   NEVRA:       qemu-kvm-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64 |
|   SELINUX:     Enforcing                                                |
|   YUM HISTORY: 564                                                      |
|                                                                         |
-------------------------------------------------------------------------
 ----------------------------------------------------------------------------------
|                                                                                  |
|   Prepare for updating qemu-kvm-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64  |
|                                                                                  |
----------------------------------------------------------------------------------
Found available older package: qemu-kvm-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64
The oldest installed nevra: qemu-kvm-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 1:02:18 ago on Fri 17 Sep 2021 04:11:07 PM EDT.
Dependencies resolved.
===================================================================================================
 Package                  Arch    Version                                   Repository         Size
===================================================================================================
Installing dependencies:
 libcacard                x86_64  3:2.7.0-2.el8_1                           rhel-8-appstream   52 k
 libibumad                x86_64  35.0-1.el8                                rhel-8-base        33 k
Removing dependent packages:
 qemu-kvm-hw-usbredir     x86_64  15:6.1.0-1.module+el8.6.0+12648+6ede71a5  @brew-1733412      66 k
 qemu-kvm-ui-opengl       x86_64  15:6.1.0-1.module+el8.6.0+12648+6ede71a5  @brew-1733412      41 k
 qemu-kvm-ui-spice        x86_64  15:6.1.0-1.module+el8.6.0+12648+6ede71a5  @brew-1733412     200 k
Downgrading:
 qemu-img                 x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  1.1 M
 qemu-kvm                 x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  126 k
 qemu-kvm-block-curl      x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  137 k
 qemu-kvm-block-gluster   x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  139 k
 qemu-kvm-block-iscsi     x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  144 k
 qemu-kvm-block-rbd       x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  138 k
 qemu-kvm-block-ssh       x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  139 k
 qemu-kvm-common          x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  1.2 M
 qemu-kvm-core            x86_64  15:4.2.0-58.module+el8.5.0+12272+74ace547 rhel-8-appstream  3.5 M

Transaction Summary
===================================================================================================
Install    2 Packages
Remove     3 Packages
Downgrade  9 Packages

Total download size: 6.6 M
Downloading Packages:
(1/11): qemu-kvm-4.2.0-58.module+el8.5.0+12272+ 1.3 MB/s | 126 kB     00:00    
(2/11): qemu-kvm-block-curl-4.2.0-58.module+el8 1.4 MB/s | 137 kB     00:00    
(3/11): qemu-kvm-block-iscsi-4.2.0-58.module+el 1.9 MB/s | 144 kB     00:00    
(4/11): qemu-kvm-block-gluster-4.2.0-58.module+ 1.6 MB/s | 139 kB     00:00    
(5/11): qemu-kvm-block-rbd-4.2.0-58.module+el8. 2.4 MB/s | 138 kB     00:00    
(6/11): qemu-kvm-block-ssh-4.2.0-58.module+el8. 1.9 MB/s | 139 kB     00:00    
(7/11): qemu-img-4.2.0-58.module+el8.5.0+12272+ 3.6 MB/s | 1.1 MB     00:00    
(8/11): libibumad-35.0-1.el8.x86_64.rpm         746 kB/s |  33 kB     00:00    
(9/11): qemu-kvm-common-4.2.0-58.module+el8.5.0 7.9 MB/s | 1.2 MB     00:00    
(10/11): libcacard-2.7.0-2.el8_1.x86_64.rpm     913 kB/s |  52 kB     00:00    
(11/11): qemu-kvm-core-4.2.0-58.module+el8.5.0+ 7.0 MB/s | 3.5 MB     00:00    
--------------------------------------------------------------------------------
Total                                           8.8 MB/s | 6.6 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  file /usr/share/doc/qemu-kvm/README.rst from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/bitmaps.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/index.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/live-block-operations.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/pr-helper.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/qemu-ga.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/vhost-user-gpu.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/interop/vhost-user.html from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64
  file /usr/share/doc/qemu-kvm/qmp-spec.txt from install of qemu-kvm-common-15:4.2.0-58.module+el8.5.0+12272+74ace547.x86_64 conflicts with file from package qemu-kvm-docs-15:6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64

======

This BZ is more a check if this problem also happens with AV. Any version with -docs should face this.

Comment 1 Danilo de Paula 2021-09-27 21:18:25 UTC
A downgrade is not supported.