Bug 2093403 - 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
medium
Target Milestone: 6.10.7
Assignee: satellite6-bugs
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-03 15:52 UTC by Brad Buckingham
Modified: 2022-10-27 08:31 UTC (History)
3 users (show)

Fixed In Version: rubygem-foreman_maintain-0.8.31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2087753
Environment:
Last Closed: 2022-07-06 14:22:45 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-06-03 15:53:00 UTC
Red Hat Product Errata RHBA-2022:5519 0 None None None 2022-07-06 14:22:49 UTC

Description Brad Buckingham 2022-06-03 15:52:48 UTC
+++ This bug was initially created as a clone of Bug #2087753 +++

The self-upgrade mechanism deals with system repositories. This slows downs the overall self-upgrade command as it involves 'yum-config-manager' and 'subscription-manager' to enable and disable repositories. Instead of this the yum options are better choice which does not need to enable/disable system repositories and get the job done of updating packages.

--- Additional comment from  on 2022-05-18T12:49:54Z 

Created from redmine issue https://projects.theforeman.org/issues/34937

--- Additional comment from  on 2022-05-18T12:49:56Z 

Upstream bug assigned to aupadhye

--- Additional comment from  on 2022-05-19T16:04:56Z 

Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34937 has been resolved.

Comment 2 Gaurav Talreja 2022-06-23 11:13:34 UTC
Verified.

Tested on Satellite 6.10.7 Snap 1.0
Version: rubygem-foreman_maintain-0.8.31-1.el7sat.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-7-server-rpms --enablerepo=rhel-server-rhscl-7-rpms --enablerepo=rhel-7-server-satellite-maintenance-6.11-rpms" and for disconnected/testing environment it just uses yum options "--enablerepo=sat-maintain", along with "--disableplugin=foreman-protector".

Comment 4 errata-xmlrpc 2022-07-06 14:22:45 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 Maintenance 6.10.7 Async Bug Fix 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-2022:5519


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