Bug 2228074

Summary: Satellite can not be installed on RHEL 8.9
Product: Red Hat Satellite Reporter: Ondrej Gajdusek <ogajduse>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: ahumbe, bdm, ehelms, gsulliva, lpramuk, osousa, rlavi
Target Milestone: 6.13.4Keywords: TestBlockerForLayeredProduct, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-openscap-0.4.9-9.el8sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2238370 2240204 (view as bug list) Environment:
Last Closed: 2023-09-28 14:08:01 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: 2239725    

Description Ondrej Gajdusek 2023-08-01 10:17:23 UTC
Description of problem:
Unmet dependency for smart_proxy_openscap in RHEL 8.9.

Version-Release number of selected component (if applicable):
Satellite 6.12 and onwards

How reproducible:
always

Steps to Reproduce:
1. spin up RHEL 8.9, configure RHEL 8.9 baseos and appstream repositories
2. follow Satellite documentation to set up Satellite repos from Red Hat CDN
3. dnf install satellite
4. satellite-installer --scenario satellite

Actual results:
Installer (dnf) fails to install rubygem-smart_proxy_openscap due to a fixed requirement to openscap < 1.3.8.

nothing provides openscap < 1.3.8 needed by rubygem-openscap-0.4.9-8.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms

Expected results:
Requirements of smart_proxy_openscap should allow installing a newer version of the openscap package -> dev should rely on QE to test Satellite on RHEL composes to verify that newer openscap package from RHEL version did not break Satellite. 

Additional info:
* This BZ is identical to BZ2190196.
* RHEL 8.9 ships openscap-1.3.8-1.el8.x86_64
* Identical BZ to this one will pop up if openscap package version gets updated in RHEL 8.10 in case the fix for this BZ will be the same as in BZ2190196.


# dnf --disableplugin=foreman-protector install rubygem-smart_proxy_openscap
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:10 ago on Tue 01 Aug 2023 05:58:20 AM EDT.
Error: 
 Problem: package rubygem-smart_proxy_openscap-0.9.2-1.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms requires rubygem(openscap) >= 0.4.7, but none of the providers can be installed
  - package rubygem-smart_proxy_openscap-0.9.2-1.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms requires rubygem(openscap) < 0.5, but none of the providers can be installed
  - package rubygem-smart_proxy_openscap-0.9.2-1.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms requires (rubygem(openscap) >= 0.4.7 with rubygem(openscap) < 0.5), but none of the providers can be installed
  - conflicting requests
  - nothing provides openscap < 1.3.7 needed by rubygem-openscap-0.4.9-7.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms
  - nothing provides openscap < 1.3.8 needed by rubygem-openscap-0.4.9-8.el8sat.noarch from satellite-6.12-for-rhel-8-x86_64-rpms
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

# rpm -qpR rubygem-openscap-0.4.9-8.el8sat.noarch.rpm | grep openscap
openscap >= 1.2.9
openscap < 1.3.8

Comment 3 Lukas Pramuk 2023-09-22 09:55:41 UTC
VERIFIED.

@Satellite 6.13.5 Snap1
rubygem-openscap-0.4.9-9.el8sat.noarch

by the following manual steps:

1) Check rpm requires
# rpm -qR rubygem-openscap | grep openscap
(libopenscap.so.25 if libc.so.6)
(libopenscap.so.25()(64bit) if libc.so.6()(64bit))

>>> rubygem-openscap no longer has version limit of openscap requirement

2) Upgrade across 6.13.z (no need to be on RHEL8.9, just RHEL8.8.z is enough)
# satellite-maintain upgrade run --target-version 6.13.z -y
...
Upgrade finished.

# rpm -q openscap
openscap-1.3.8-1.el8_8.x86_64

>>> upgrade finished successfully and latest openscap rpm is installed

Comment 5 Griffin Sullivan 2023-09-27 19:25:58 UTC
Verified in 6.13.4.1 snap 1

Steps to Reproduce:

1) # rpm -qR rubygem-openscap | grep openscap
openscap >= 1.2.9
openscap < 1.3.8

2) Upgrade

3) # rpm -q openscap
openscap-1.3.8-1.el8_8.x86_64

Upgrade finished successfully and latest openscap rpm is installed

Comment 9 errata-xmlrpc 2023-09-28 14:08:01 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 (Satellite 6.13.4.1 Async 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/RHBA-2023:5399