Bug 2178329 - dnf5 doesn't replace the oldest installed non-running kernel with a newer one during upgrade
Summary: dnf5 doesn't replace the oldest installed non-running kernel with a newer one...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Marek Blaha
QA Contact:
URL:
Whiteboard:
: 2156954 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-14 21:36 UTC by Tomáš Bajer
Modified: 2023-05-28 01:03 UTC (History)
7 users (show)

Fixed In Version: dnf5-5.0.11-2.fc38
Clone Of:
Environment:
Last Closed: 2023-05-28 01:03:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Bajer 2023-03-14 21:36:15 UTC
Description of problem:
dnf5 doesn't replace the oldest installed non-running kernel with a newer one during upgrade 

Version-Release number of selected component (if applicable):
# dnf5 --version
dnf5 version 5.0.6
dnf5 plugin API version 1.0
libdnf5 version 5.0.6
libdnf5 plugin API version 1.0


How reproducible:
always

Steps to Reproduce:
1. Have 3 kernels installed, the oldest one is the running one
# rpm -q kernel
kernel-6.2.0-63.fc38.x86_64
kernel-6.2.2-300.fc38.x86_64
kernel-6.2.5-300.fc38.x86_64

# uname -r
6.2.0-63.fc38.x86_64

2. # dnf5 upgrade kernel
3.

Actual results:
Failed to resolve the transaction:
Problem: The operation would result in removing of running kernel: kernel-core-0:6.2.0-63.fc38.x86_64

Expected results:
Same as microdnf in Fedora 37 would produce - replacing the oldest non-running installed kernel for a newer version:
# rpm -q kernel
kernel-6.0.7-301.fc37.x86_64
kernel-6.1.15-200.fc37.x86_64
kernel-6.1.16-200.fc37.x86_64

# uname -r
6.0.7-301.fc37.x86_64

# microdnf upgrade kernel 
Package                                                                                                                                                                Repository                                                         Size
Installing:                                                                                                                                                                                                                                   
 kernel-6.1.18-200.fc37.x86_64                                                                                                                                         updates                                                        123.4 kB
 kernel-core-6.1.18-200.fc37.x86_64                                                                                                                                    updates                                                         51.0 MB
 kernel-modules-6.1.18-200.fc37.x86_64                                                                                                                                 updates                                                         61.0 MB
Removing:                                                                                                                                                                                                                                     
 kernel-6.1.15-200.fc37.x86_64                                                                                                                                         @System                                                         0 bytes
 kernel-core-6.1.15-200.fc37.x86_64                                                                                                                                    @System                                                         94.9 MB
 kernel-modules-6.1.15-200.fc37.x86_64                                                                                                                                 @System                                                         59.4 MB
 kernel-modules-extra-6.1.15-200.fc37.x86_64                                                                                                                           @System                                                          3.3 MB
 kernel-modules-internal-6.1.15-200.fc37.x86_64                                                                                                                        @System                                                        735.6 kB
Transaction Summary:
 Installing:        3 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          5 packages
 Downgrading:       0 packages
Is this ok [y/N]: y
Downloading packages...
Running transaction test...
Installing: kernel-core;6.1.18-200.fc37;x86_64;updates
Installing: kernel-modules;6.1.18-200.fc37;x86_64;updates
Installing: kernel;6.1.18-200.fc37;x86_64;updates
Removing: kernel-modules-internal;6.1.15-200.fc37;x86_64;installed
Removing: kernel-modules-extra;6.1.15-200.fc37;x86_64;installed
Cleanup: kernel;6.1.15-200.fc37;x86_64;installed
Cleanup: kernel-modules;6.1.15-200.fc37;x86_64;installed
Cleanup: kernel-core;6.1.15-200.fc37;x86_64;installed
Complete.

Additional info:
Expected the same behaviour due to full feature parity microdnf:dnf5

Comment 2 Marek Blaha 2023-04-03 08:35:00 UTC
*** Bug 2156954 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2023-05-19 11:05:58 UTC
FEDORA-2023-c8fb79e192 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c8fb79e192

Comment 4 Fedora Update System 2023-05-20 09:20:19 UTC
FEDORA-2023-c8fb79e192 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c8fb79e192`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c8fb79e192

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-05-28 01:03:06 UTC
FEDORA-2023-c8fb79e192 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


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