Bug 2054235

Summary: Offline updates
Product: Red Hat Enterprise Linux 8 Reporter: Julio Entrena Perez <jentrena>
Component: dnfAssignee: Jan Kolarik <jkolarik>
Status: CLOSED ERRATA QA Contact: swm-qe
Severity: medium Docs Contact: Mariya Pershina <mpershin>
Priority: medium    
Version: 8.5CC: aperotti, james.antill, jcastran, jentrena, jkolarik, mbanas, mpershin, nsella, pdwyer, tbajer
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-4.7.0-15.el8 Doc Type: Enhancement
Doc Text:
.New `yum offline-upgrade` command for offline updates on RHEL With this enhancement, you can apply offline updates to RHEL by using the new `yum offline-upgrade` command from the YUM `system-upgrade` plug-in. IMPORTANT: The `yum system-upgrade` command included in the `system-upgrade` plug-in is not supported on RHEL.
Story Points: ---
Clone Of:
: 2131288 (view as bug list) Environment:
Last Closed: 2023-05-16 09:06:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2131288    

Description Julio Entrena Perez 2022-02-14 13:45:26 UTC
1. Proposed title of this feature request
Offline updates

3. What is the nature and description of the request?
Customer is requesting the ability to apply updates offline, that is, to have the updates downloaded normally and then reboot the system into a minimal environment where updates are applied, followed by a second reboot into normal mode.

4. Why does the customer need this? (List the business requirements here)
Customer is encountering applications that react badly to the operating system being patched and applications that fail to stop in a timely manner. The combination of these two factors make online (normal) updates undesirable.
Customer would avoid these issues by being able to apply the updates in a minimal environment where no disruption to other applications is possible.

5. How would the customer like to achieve this? (List the functional requirements here)
Customer would like to have "offline-upgrade" command from dnf plug-in "system-upgrade" made available in RHEL.
Command "system-upgrade" would not apply to RHEL, leapp takes care of that.

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
Customer will download the updates as usual using command "dnf offline-upgrade download".
After that customer will run command "dnf offline-upgrade reboot" to reboot the system into systemd system-update target, which will apply the downloaded updates and reboot the system once more into its usual target.

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?
Yes, BZ 1382063 - RFE - Expand Upgrade function to optionally perform "offline" upgrades

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL8, RHEL9)?
Customer is currently engineering RHEL 8 internal build and will temporarily rely on PackageKit to achieve this functionality.
Customer would like to see this RFE delivered to RHEL 8 before its full support phase ends, to be able to pivot from PackageKit to dnf and keep a supported patching process during future ELS phase.

9. Is the sales team involved in this request and do they have any additional input?
Yes.

10. List any affected packages or components.
dnf-plugins-extras

11. Would the customer be able to assist in testing this functionality if implemented?
Most certainly.

Comment 9 Jan Kolarik 2022-08-31 11:28:10 UTC
Plugin 'system-upgrade' including 'offline-upgrade' and 'offline-distrosync' commands is moving from 'dnf-plugins-extras' component to 'dnf-plugins-core' to be available on RHEL systems.

Following PRs were queued to fix this:

dnf-plugins-core:   https://github.com/rpm-software-management/dnf-plugins-core/pull/462
dnf-plugins-extras: https://github.com/rpm-software-management/dnf-plugins-extras/pull/210
dnf:                https://github.com/rpm-software-management/dnf/pull/1846
tests:              https://github.com/rpm-software-management/ci-dnf-stack/pull/1150

Comment 11 Jan Kolarik 2022-09-30 14:39:11 UTC
Functionality was moved right into the 'dnf-plugins-core' package. 'system-upgrade' command is not intended to be used on RHEL systems. Therefore a warning was added into the man pages and also in the console output when using the command on RHEL.

Comment 12 Jan Kolarik 2022-09-30 14:45:19 UTC
Cloned into RHEL 9 ticket https://bugzilla.redhat.com/show_bug.cgi?id=2131288.

Comment 22 Jaroslav Mracek 2023-01-02 11:45:59 UTC
The requirement for python3-distro was removed in upstream - https://github.com/rpm-software-management/dnf-plugins-core/pull/475 and there is a PR for RHEL8 downstream https://github.com/rpm-software-management/dnf-plugins-core/pull/474

Comment 27 errata-xmlrpc 2023-05-16 09:06:59 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 (dnf bug fix and enhancement 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:2980