Bug 1967329

Summary: Make qemu-kvm use versioned obsoletes for qemu-kvm-ma and qemu-kvm-rhev
Product: Red Hat Enterprise Linux 8 Reporter: Danilo de Paula <ddepaula>
Component: qemu-kvmAssignee: Danilo de Paula <ddepaula>
qemu-kvm sub component: General QA Contact: jingzhao <jinzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: chayang, jinzhao, juzhang, lijin, qzhang, virt-maint
Version: 8.5Keywords: Triaged
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-4.2.0-54.module+el8.5.0+11925+f6a910e5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:01:39 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:

Description Danilo de Paula 2021-06-02 21:55:16 UTC
Right now qemu-kvm defines the following in the spec file:

Obsoletes: qemu-kvm-ma
Obsoletes: qemu-kvm-rhev

However it generates a warning saying that using unversioned obsoletes is not recommended.


Those needs to be replaced by:

Obsoletes: qemu-kvm-ma <= {%epoch}:%{version}-{release}
Obsoletes: qemu-kvm-rhev <= {%epoch}:%{version}-{release}

This is a low hanging fruit that needs to be fixed eventually.
I created this BZ so we don't forget.

Comment 1 John Ferlan 2021-06-14 12:49:49 UTC
Assigned to Jeff for initial triage per bz process and age of bug created or assigned to virt-maint without triage.

Comment 2 Jeff Nelson 2021-06-15 22:41:14 UTC
Assigned to Danilo for delegation to a maintainer.

Comment 3 Danilo de Paula 2021-07-12 22:20:32 UTC
@QA_ACK + ITM, please?

Comment 4 Danilo de Paula 2021-07-12 22:21:11 UTC
@QA_ACK + ITM, please?

Comment 11 Yanan Fu 2021-07-26 02:13:51 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 12 jingzhao 2021-07-27 03:23:38 UTC
Reproduced it with qemu-kvm-4.2.0-53.module+el8.5.0+11673+72138537.src.rpm

and check qemu_kvm.spec

%define rhev_ma_conflicts()                                      \
Obsoletes: %1-ma                                                 \
Obsoletes: %1-rhev

Verified it with qemu-kvm-4.2.0-55.module+el8.5.0+11936+2f1c2d95.src.rpm

%define rhev_ma_conflicts()                                      \
Obsoletes: %1-ma <= %{epoch}:%{version}-%{release}               \
Obsoletes: %1-rhev <= %{epoch}:%{version}-%{release}


So changed bz to verified

Comment 14 errata-xmlrpc 2021-11-09 18:01:39 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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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/RHSA-2021:4191