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