Bug 2059175

Summary: Broken upgrade path due to qemu-kvm-hw-usbredir rename
Product: Red Hat Enterprise Linux 9 Reporter: Daniel Berrangé <berrange>
Component: qemu-kvmAssignee: Miroslav Rezanina <mrezanin>
qemu-kvm sub component: General QA Contact: jingzhao <jinzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: coli, juzhang, lijin, lmiksik, mdeng, mrezanin, virt-maint, yduan, yiwei
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-6.2.0-11.el9_0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2062819 (view as bug list) Environment:
Last Closed: 2022-05-17 12:25:28 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: 2062819    

Description Daniel Berrangé 2022-02-28 12:16:44 UTC
Description of problem:
qemu-kvm-hw-usbredir was renamed to qemu-kvm-device-usb-redirect

To  ensure an upgrade path for DNF, the new package needs *both* Provides and Obsoletes, but it only has Provides.

The "Provides" means new installs can be satisfied with the new package alone

The missing 'Obsoletes' means DNF doesn't know to uninstall the old package

Version-Release number of selected component (if applicable):
6.2.0-10.el9

How reproducible:
Always

Steps to Reproduce:
1. install qemu-kvm 6.1.0-2.el9.x86_64 
2. dnf upgrade
3.

Actual results:
# dnf update
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:38:53 ago on Mon Feb 28 05:30:08 2022.
Error: 
 Problem: cannot install both qemu-kvm-common-17:6.2.0-10.el9.x86_64 and qemu-kvm-common-17:6.1.0-2.el9.x86_64
  - package qemu-kvm-hw-usbredir-17:6.1.0-2.el9.x86_64 requires qemu-kvm-common(x86-64) = 17:6.1.0-2.el9, but none of the providers can be installed
  - cannot install the best update candidate for package qemu-kvm-common-17:6.1.0-2.el9.x86_64
  - problem with installed package qemu-kvm-hw-usbredir-17:6.1.0-2.el9.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


Expected results:
dnf replaces qemu-kvm-hw-usbredir with qemu-kvm-device-usb-redirect

Additional info:

Comment 6 Yanan Fu 2022-03-17 03:26:36 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 11 errata-xmlrpc 2022-05-17 12:25:28 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 (new packages: qemu-kvm), 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://access.redhat.com/errata/RHBA-2022:2307