Bug 2106093 - Simplify self-upgrade mechanism
Summary: Simplify self-upgrade mechanism
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.12.0
Assignee: Amit Upadhye
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-11 18:35 UTC by Odilon Sousa
Modified: 2022-11-28 10:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2087753
Environment:
Last Closed: 2022-11-16 13:34:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34937 0 Normal Closed Simplify self-upgrade mechanism 2022-07-11 18:35:58 UTC
Red Hat Issue Tracker SAT-13542 0 None None None 2022-10-21 15:44:57 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:34:44 UTC

Comment 3 Gaurav Talreja 2022-07-27 21:51:01 UTC
Verified.

Tested on Satellite 6.12.0 Snap 3.0
Version: rubygem-foreman_maintain-1.1.4-1.el8sat.noarch

1. # foreman-maintain self-upgrade
2. Add repo for next major version maintenance repo under /etc/yum.repos.d/ for disconnected/testing environment.
3. # foreman-maintain self-upgrade --maintenance-repo-label sat-maintain 
OR
3. # MAINTENANCE_REPO_LABEL='sat-maintain' foreman-maintain self-upgrade

Observation:
By not dealing with system repos, like saving enabled repos into yaml, and enabling/disabling system repos, the new self-upgrade mechanism makes it easier to update satellite-maintain/rubygem-foreman_maintain packages with yum options.

When using rhsm repos in connected environment it uses yum options "--enablerepo=rhel-8-for-x86_64-baseos-rpms --enablerepo=rhel-8-for-x86_64-appstream-rpms --enablerepo=satellite-maintenance-6.13-for-rhel-8-x86_64-rpms", and for disconnected/testing environment it just uses yum options "--enablerepo=sat-maintain", along with "--disableplugin=foreman-protector" options to update satellite-maintain/rubygem-foreman_maintain packages.

Comment 7 errata-xmlrpc 2022-11-16 13:34:34 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 (Important: Satellite 6.12 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:8506


Note You need to log in before you can comment on or make changes to this bug.