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 2184123

Summary: Upgrading from Satellite 6.12 to 6.13 should enable the satellite-maintenance:el8 module automatically when the Satellite 6.13 Maintenance repository is present
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: PackagingAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.12.0CC: ahumbe, bhoppus, brant.evans, dalley, dhjoshi, egolov, ehelms, gkeegan, hakon.gislason, ikke, j.becker, jbhatia, jyoung, lpramuk, mkalyat, momran, pcfe, pcreech, pdwyer, saydas, vcojot
Target Milestone: 6.12.4Keywords: PrioBumpGSS, Triaged, Upgrades
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-1.1.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2143451 Environment:
Last Closed: 2023-04-27 14:30:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 4 Lukas Pramuk 2023-04-13 10:22:17 UTC
FailedQA.

@Satellite 6.12.4 Snap1
rubygem-foreman_maintain-1.1.13-1.el8sat.noarch

# yum repolist
Updating Subscription Management repositories.
repo id                                                                                       repo name
Maintenance_6_13_RHEL8                                                                        Satellite Maintenance 6.13 RHEL8
Satellite_6_12_RHEL8                                                                          Satellite 6.12 RHEL8
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-maintain self-upgrade --maintenance-repo-label Maintenance_6_13_RHEL8
Traceback (most recent call last):
	12: from /usr/bin/satellite-maintain:23:in `<main>'
	11: from /usr/bin/satellite-maintain:23:in `load'
	10: from /usr/share/gems/gems/foreman_maintain-1.1.13/bin/foreman-maintain:15:in `<top (required)>'
	 9: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
	 8: from /usr/share/gems/gems/foreman_maintain-1.1.13/lib/foreman_maintain/cli.rb:46:in `run'
	 7: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
	 6: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
	 5: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
	 4: from /usr/share/gems/gems/foreman_maintain-1.1.13/lib/foreman_maintain/cli/self_upgrade_command.rb:8:in `execute'
	 3: from /usr/share/gems/gems/foreman_maintain-1.1.13/lib/foreman_maintain/cli/self_upgrade_command.rb:12:in `upgrade_scenario'
	 2: from /usr/share/gems/gems/foreman_maintain-1.1.13/lib/foreman_maintain/cli/self_upgrade_command.rb:12:in `new'
	 1: from /usr/share/gems/gems/foreman_maintain-1.1.13/lib/foreman_maintain/scenario.rb:86:in `initialize'
/usr/share/gems/gems/foreman_maintain-1.1.13/definitions/scenarios/self_upgrade.rb:61:in `compose': wrong number of arguments (given 0, expected 1) (ArgumentError)

Comment 6 Lukas Pramuk 2023-04-20 12:58:05 UTC
VERIFIED.

@Satellite 6.12.4 Snap2
rubygem-foreman_maintain-1.1.14-1.el8sat.noarch

# yum repolist
Updating Subscription Management repositories.
repo id                                                  repo name
Maintenance_6_13_RHEL8                                   Satellite Maintenance 6.13 RHEL8
Satellite_6_12_RHEL8                                     Satellite 6.12 RHEL8
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-maintain self-upgrade --maintenance-repo-label Maintenance_6_13_RHEL8

Enabling satellite-maintenance:el8 module
Running Enables the specified version's maintenance repository and,
updates the satellite-maintain packages
================================================================================
Update package(s) satellite-maintain, rubygem-foreman_maintain:       [OK]
--------------------------------------------------------------------------------

# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-1.2.8-1.el8sat.noarch

>>> self-upgrade successfully enabled 6.13 satellite-maintenance:el8 module and upgraded rubygem-foreman_maintain to its 6.13 version

Comment 15 errata-xmlrpc 2023-04-27 14:30:36 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.12.4 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:2052