Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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