Bug 2095506

Summary: foreman-protector locking plugin should allow leapp to be installed
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: apatel, ehelms, jbhatia, kgaikwad
Target Milestone: UnspecifiedKeywords: EasyFix, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
*Installing the Leapp utility does not work with the `foreman-protector locking` plugin* As of the current release, you cannot install the Leapp utility using ‘yum install leapp` while simultaneously using the `foreman-protector` locking plugin. To install the Leapp utility under these conditions, run `satellite-maintain packages install leapp`.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-19 20:16:07 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-06-09 19:46:25 UTC
Description of problem:
foreman-protector locking plugin should allow leapp to be installed.
There is no need to run installer if leapp gets installed.

In documentation we can't advise "yum --disableplugin=foreman-protector install leapp" while advisable  "satellite-maintain packages install leapp" involves an extra unnecessary installer run.

Lets add an exception for leapp & co. in order to be able to document just
"yum install leapp"


Version-Release number of selected component (if applicable):
6.11.0 Snap23

How reproducible:
deterministic

Steps to Reproduce:
1. Have a Satellite on EL7
2. Enable extras repo and try to install leapp

# yum install leapp
...

WARNING: Excluding 13043 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.

No package leapp available.
Error: Nothing to do


Actual results:
foreman-protector locking plugin prevents yum to install leapp

Expected results:
foreman-protector locking plugin allows to install leapp by yum

Additional info:

RPMs to be added on whitelist:
leapp
leapp-deps
python2-leapp
leapp-upgrade-el7toel8
leapp-upgrade-el7toel8-deps
dnf
dnf-data
python2-dnf
libdnf
python2-libdnf
libmodulemd
librepo
libreport-filesystem
librhsm
libsolv0
python2-hawkey
python2-libcomps
json-glib

Comment 2 sabuchan 2022-06-14 19:05:36 UTC
RN draft:
You can not currently install LEAPP while using the `foreman-protector` locking plugin simultaneously. In order to install LEAPP under these conditions… (tagged @lpramuk both here & in the BZ doc to find out if this information is correct and whether there is either a workaround or a fix planned for a future release.)

doc: https://docs.google.com/document/d/1xMkjPbkwF9ZJ95tEcWYmRRqVdusIZENHZsL3-B3YvJw/edit

Comment 3 Lukas Pramuk 2022-06-15 14:07:09 UTC
We would like to fix it in 6.11.z so that users can run just:

# yum install leapp

In the meantime they are instead required to run:

# satellite-maintain packages install leapp

(which takes some time as it involves extra installer run)

Comment 4 sabuchan 2022-06-15 20:42:08 UTC
Final RN:
*Installing the Leapp utility does not work with the `foreman-protector locking` plugin*

As of the current release, you cannot install the Leapp utility using ‘yum install leapp` while simultaneously using the `foreman-protector` locking plugin. 
To install the Leapp utility under these conditions, run `satellite-maintain packages install leapp`.

Comment 6 Eric Helms 2023-05-19 20:16:07 UTC
Given the release note, work around and this being on Satellite 6.11 I am going to opt to close this.