Bug 2087753
Summary: | Simplify self-upgrade mechanism | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Amit Upadhye <aupadhye> | |
Component: | Satellite Maintain | Assignee: | Amit Upadhye <aupadhye> | |
Status: | CLOSED ERRATA | QA Contact: | Gaurav Talreja <gtalreja> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.11.0 | CC: | apatel, kgaikwad, osousa | |
Target Milestone: | 6.11.1 | Keywords: | Triaged, UserExperience | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | rubygem-foreman_maintain-1.0.13,tfm-rubygem-foreman_maintain-1.0.13-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2093403 2106093 (view as bug list) | Environment: | ||
Last Closed: | 2022-07-27 17:27:09 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: |
Description
Amit Upadhye
2022-05-18 12:49:49 UTC
Created from redmine issue https://projects.theforeman.org/issues/34937 Upstream bug assigned to aupadhye Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34937 has been resolved. Verified. Tested on Satellite 6.11.1 Snap 2.0 Version: rubygem-foreman_maintain-1.0.14-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, for RHEL7 "--enablerepo=rhel-7-server-rpms --enablerepo=rhel-server-rhscl-7-rpms --enablerepo=rhel-7-server-satellite-maintenance-6.12-rpms", whereas for RHEL8 "--enablerepo=rhel-8-for-x86_64-baseos-rpms --enablerepo=rhel-8-for-x86_64-appstream-rpms --enablerepo=satellite-maintenance-6.12-for-rhel-8-x86_64-rpms" And for disconnected/testing environment it just uses yum options, for RHEL7 "--enablerepo=sat-maintain", whereas for RHEL8 "--enablerepo=rhel-8-for-x86_64-baseos-rpms --enablerepo=rhel-8-for-x86_64-appstream-rpms --enablerepo=sat-maintain_el8", where this RH repos shouldn't be enabled for el8, discussed this with Amit and created a separate BZ 2108169 to track 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.11.1 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:5742 |