Bug 2267949

Summary: Satellite 6.14.3 breaks upgrade to 6.15.0
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.15.0CC: osousa, pcreech, zhunting
Target Milestone: 6.15.0Keywords: Triaged, UpgradeBlocker
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pulpcore-3.39.8-2.el8pc Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-23 17:17:58 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 2024-03-05 16:47:58 UTC
Description of problem:
Satellite 6.14.3 breaks upgrade to 6.15.0
python39-aiohttp rpm version was bumped too much (3.9.2) in 6.14.3 and collides with pulpcore-obsolete-packages obsoletes (< 3.8.3-3) in 6.15.0


Version-Release number of selected component (if applicable):
6.15.0
pulpcore-obsolete-packages-1.0-7.el8pc.noarch


How reproducible:
deterministic


Steps to Reproduce:
1. Upgrade 6.14.3 to 6.15.0 
...

--------------------------------------------------------------------------------
Download package(s) :                                                 [FAIL]
Failed executing dnf --downloadonly -y --disableplugin=foreman-protector update, exit status 1:
 Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS   62 MB/s |  66 MB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - AppStre  41 MB/s |  59 MB     00:01    
Satellite 6.15 RHEL8                            5.4 MB/s | 866 kB     00:00    
Satellite Maintenance 6.15 RHEL8                129 kB/s | 7.5 kB     00:00    
Error: 
 Problem: package pulpcore-obsolete-packages-1.0-7.el8pc.noarch from Satellite_Engineering_Satellite_6_15_Composes_Satellite_6_15_RHEL8 obsoletes python39-aiodns < 3.0.0-4 provided by python39-aiodns-3.0.0-3.el8pc.noarch from @System
  - package python39-aiohttp-3.9.2-0.1.el8pc.x86_64 from @System requires python39-aiodns, but none of the providers can be installed
  - cannot install the best update candidate for package python39-aiodns-3.0.0-3.el8pc.noarch
  - problem with installed package python39-aiohttp-3.9.2-0.1.el8pc.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
--------------------------------------------------------------------------------


Actual results:
upgrade fails

Expected results:
upgrade succeeds

Additional info:
# rpm -q --obsoletes pulpcore-obsolete-packages
python3-django-currentuser < 0.5.3-6
python39-aiodns < 3.0.0-4
python39-aiohttp < 3.8.3-3
python39-aiohttp-xmlrpc < 1.5.0-3
python39-django-currentuser < 0.5.3-6
python39-django-guardian < 2.4.0-7
python39-importlib-resources < 5.4.0-6
python39-pexpect < 4.8.0-3
python39-requests < 2.31.0-2
python39-wcmatch < 8.3-3

Comment 1 Lukas Pramuk 2024-03-11 13:44:31 UTC
VERIFIED.

@Satellite 6.15.0 Snap10.1
pulpcore-obsolete-packages-1.0-9.el8pc.noarch

by the following manual reproducer:

1) Upgrade 6.14.3 to 6.15.0
# satellite-maintain upgrade run --target-version 6.15 -w repositories-setup,repositories-validate -y
...
--------------------------------------------------------------------------------
Upgrade finished.

>>> upgrade finishes successfully

# rpm -q --obsoletes pulpcore-obsolete-packages | grep 'aiohttp '
python39-aiohttp < 4.0.0-1

>>> the rpm obsoletes new python39-aiohttp-3.9.2 from 6.14.3 satellite repo

Comment 4 errata-xmlrpc 2024-04-23 17:17:58 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 (Important: Satellite 6.15.0 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-2024:2010