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 2073039

Summary: LEAPP upgrade enables wrong repositories for capsules
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: UpgradesAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: bbuckingham, mmccune, pcreech
Target Milestone: 6.11.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: leapp-repository-0.16.0-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:35:12 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 Evgeni Golov 2022-04-07 14:12:54 UTC
Description of problem:
When upgrading a connected capsule, LEAPP enables the Satellite, not the Capsule repository

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 Lukas Pramuk 2022-05-25 15:23:30 UTC
VERIFIED.

@Satellite 6.11.0 Snap21
leapp-0.14.0-1.el7_9.noarch
leapp-upgrade-el7toel8-0.16.0-4.el7_9.noarch

by the following manual reproducer:

1) Have a Capsule 6.11 EL7 registered to CDN stage (where empty satellite-capsule-6.11-for-rhel-8-x86_64-rpms repo exists already)

2) Install LEAPP and resolve all inhibitors

# subscription-manager repos --enable rhel-7-server-extras-rpms
# yum --disableplugin=foreman-protector -y install leapp

3) Apply the fix of BZ 2087144 (blocking BZ - do not enable ansible 2.9 el8 repo)

# rm -f /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/satellite_upgrade_facts/actor.py*
# wget -P /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/satellite_upgrade_facts https://github.com/oamg/leapp-repository/raw/ce02fa83a2f3cff089133ed9bb05dbdd6755132d/repos/system_upgrade/el7toel8/actors/satellite_upgrade_facts/actor.py

4) Setup Capsule 6.11 EL8 internal repos and run leapp upgrade

# leapp preupgrade --enablerepo capsule --enablerepo maintenance --reboot

5) Check enabled repositories on EL8 after leapp upgrade finished

# yum repolist | grep rpm
rhel-8-for-x86_64-appstream-rpms                                             Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                                                Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
satellite-capsule-6.11-for-rhel-8-x86_64-rpms                                Red Hat Satellite Capsule 6.11 for RHEL 8 x86_64 (RPMs)
satellite-maintenance-6.11-for-rhel-8-x86_64-rpms                            Red Hat Satellite Maintenance 6.11 for RHEL 8 x86_64 (RPMs)

>>> satellite-capsule-6.11-for-rhel-8-x86_64-rpms is enabled on Capsule

Comment 9 errata-xmlrpc 2022-07-05 14:35:12 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

Comment 10 Red Hat Bugzilla 2023-09-15 01:53:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days