RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2054235 - Offline updates
Summary: Offline updates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Kolarik
QA Contact: swm-qe
Mariya Pershina
URL:
Whiteboard:
Depends On:
Blocks: 2131288
TreeView+ depends on / blocked
 
Reported: 2022-02-14 13:45 UTC by Julio Entrena Perez
Modified: 2023-05-16 13:01 UTC (History)
10 users (show)

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.
Clone Of:
: 2131288 (view as bug list)
Environment:
Last Closed: 2023-05-16 09:06:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-112170 0 None None None 2022-10-05 12:59:27 UTC
Red Hat Product Errata RHBA-2023:2980 0 None None None 2023-05-16 09:07:24 UTC

Internal Links: 2152846

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


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