Description of problem: The foreman-protector plugin does not works for Satellite 7.0 if the OS is RHEL 8 but works fine on the RHEL 7 OS. Version-Release number of selected component (if applicable): satellite-7.0.0-0.5.beta.el8sat.noarch rubygem-foreman_maintain-1.0.3-1.el8sat.noarc How reproducible: Always Steps to Reproduce: 1. Install RHEL 8 2. Install Satellite 7.0 on top of RHEL 8 3. Run dnf install or dnf repolist commands and observe the different in the outputs\behaviors compared to a RHEL 7 based installation. Actual results: On Sat 7.0 + RHEL 7, We see correct output: # yum list tmux Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager WARNING: Excluding 12903 packages due to foreman-protector. Use foreman-maintain packages install/update <package> to safely install packages without restrictions. Use foreman-maintain upgrade run for full upgrade. Error: No matching Packages to list # yum search tmux --disableplugin=foreman-protector Loaded plugins: product-id, search-disabled-repos, subscription-manager ===================================================================================== N/S matched: tmux ====================================================================================== tmux.x86_64 : A terminal multiplexer Name and summary matches only, use "search all" for everything. [root@saydas-rhsat ~]# yum list tmux --disableplugin=foreman-protector Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Available Packages tmux.x86_64 But the plugin is not even recognized on RHEL 8: # foreman-maintain packages status Running preparation steps required to run the next scenarios ================================================================================ Check if tooling for package locking is installed: [OK] -------------------------------------------------------------------------------- Running detection of status of package version locking ================================================================================ Check status of version locking of packages: Automatic locking of package versions is enabled in installer. Packages are locked. [OK] -------------------------------------------------------------------------------- # dnf list tmux --enableplugin=foreman-protector No matches found for the following enable plugin patterns: foreman-protector Updating Subscription Management repositories. Satellite Utils 7.0 RHEL8 1.2 kB/s | 2.1 kB 00:01 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 1.3 kB/s | 2.4 kB 00:01 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 1.5 kB/s | 2.8 kB 00:01 Satellite 7.0 RHEL8 1.4 kB/s | 2.5 kB 00:01 Red Hat Ansible Engine 2 for RHEL 8 x86_64 (RPMs) 1.3 kB/s | 2.3 kB 00:01 Satellite Maintenance 7.0 RHEL8 1.1 kB/s | 2.1 kB 00:01 Available Packages tmux.x86_64 2.7-1.el8 rhel-8-for-x86_64-baseos-rpms # dnf repolist -v Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile Updating Subscription Management repositories. DNF version: 4.7.0 cachedir: /var/cache/dnf # dnf install tmux Updating Subscription Management repositories. Satellite Utils 7.0 RHEL8 1.1 kB/s | 2.1 kB 00:01 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 1.3 kB/s | 2.4 kB 00:01 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 1.5 kB/s | 2.8 kB 00:01 Satellite 7.0 RHEL8 1.4 kB/s | 2.5 kB 00:01 Red Hat Ansible Engine 2 for RHEL 8 x86_64 (RPMs) 1.3 kB/s | 2.3 kB 00:01 Satellite Maintenance 7.0 RHEL8 1.1 kB/s | 2.1 kB 00:01 Dependencies resolved. ============================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================== Installing: tmux x86_64 2.7-1.el8 rhel-8-for-x86_64-baseos-rpms 317 k Transaction Summary ============================================================================================================================================================================================== Install 1 Package Total download size: 317 k Installed size: 770 k Is this ok [y/N]: y Downloading Packages: tmux-2.7-1.el8.x86_64.rpm 0% [ ] --- B/s | 0 B --:-- ETA Expected results: The foreman-protector is an important plugin to ensure that accidental installation or updates are not happening on satellite and hence it needs to work with dnf+RHEL8 in the exact same way as it works with yum on RHEL 7. Additional info: NA
Created redmine issue https://projects.theforeman.org/issues/34717 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34717 has been resolved.
Verified. Tested on Satellite 6.11.0 Snap 22 Version: rubygem-foreman_maintain-1.0.10-1.el8sat.noarch Observation: a foreman-protector plugin is implemented for RHEL8 which works for Satellite 6.11, however for some commands, it still runs yum commands instead of DNF for RHEL8 which is not a blocker to this BZ, so filed a BZ 2091900 to track it separately.
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