Bug 2057416

Summary: rubygem-rack is obsoleted without epoch
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ehelms
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: satellite-6.11.0-0.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:33: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 Lukas Pramuk 2022-02-23 11:11:00 UTC
Description of problem:
rubygem-rack rpm having an epoch is obsoleted without epoch. Therefore satellite-common rpm is actually failing to obsolete rubygem-rack rpm

Version-Release number of selected component (if applicable):
7.0.0
satellite-common-7.0.0-0.5.beta.el7sat.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. Install Sat 7.0.0
2. Install rubygem-rack-1.6.4-3.el7sat.noarch.rpm (get it from brew or older Satellite repos)

# yum install rubygem-rack-1.6.4-3.el7sat.noarch.rpm

Actual results:
Obsoleted rpm installed successfully

Expected results:
Cannot install package rubygem-rack-1.6.4-3.el7sat.noarch. It is obsoleted by installed package satellite-common-7.0.0-0.5.beta.el7sat.noarch

Additional info:
# rpm -q --provides rubygem-rack
bundled(okjson) = 20150104
rubygem(rack) = 1.6.4
rubygem-rack = 1:1.6.4-3.el7sat    <<< epoch

vs.

# rpm -q --obsoletes satellite-common | grep '^rubygem-rack '
rubygem-rack < 1.6.4-4      <<< no epoch

Comment 2 Lukas Pramuk 2022-04-19 08:53:08 UTC
VERIFIED.

@Satellite 6.11.0 Snap16
satellite-common-6.11.0-0.10.beta.el7sat.noarch

by the manual reproducer described in comment#0:

1) Install Sat 6.11.0

2) Try to install rubygem-rack-1.6.12-1.el7sat.noarch.rpm (note I use newer version - the version being shipped by 6.8 and 6.9)

# yum install rubygem-rack-1.6.12-1.el7sat.noarch.rpm
Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager
Examining rubygem-rack-1.6.12-1.el7sat.noarch.rpm: 1:rubygem-rack-1.6.12-1.el7sat.noarch
Cannot install package 1:rubygem-rack-1.6.12-1.el7sat.noarch. It is obsoleted by installed package satellite-common-6.11.0-0.10.beta.el7sat.noarch
Error: Nothing to do

>>> Cannot install latest rubygem-rack package as it is now properly obsoleted by installed package satellite-common

Comment 5 errata-xmlrpc 2022-07-05 14:33: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: Satellite 6.11 Release), 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-2022:5498