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 1677862 - dnf and strange problems with the kernels
Summary: dnf and strange problems with the kernels
Keywords:
Status: CLOSED DUPLICATE of bug 1668256
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dnf
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jaroslav Mracek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-16 13:38 UTC by Dusan
Modified: 2019-03-19 08:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-19 08:25:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dusan 2019-02-16 13:38:24 UTC
Description of problem:
Hello,

Firstly basic situation about my OS:
rpm -qa|grep dnf
libdnf-0.22.5-1.el7_6.x86_64
python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch
dnf-plugins-core-4.0.2.2-3.el7_6.noarch
dnf-data-4.0.9.2-1.el7_6.noarch
dnf-4.0.9.2-1.el7_6.noarch
python2-dnf-4.0.9.2-1.el7_6.noarch
python2-libdnf-0.22.5-1.el7_6.x86_64
===================
I am using kernel-3.10.0-957.5.1.el7.x86_64 or 3.10.0-957.1.3.el7.x86_64 or kernel-3.10.0-957.el7.x86_64.
When I make sudo dnf update I have following result (example with 3.10.0-957.1.3.el7.x86_64):
Dependencies resolved.

Problem 1: cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-3.10.0-957.el7.x86_64
- cannot install the best update candidate for package kernel-3.10.0-957.5.1.el7.x86_64
Problem 2: cannot install both kernel-devel-3.10.0-957.5.1.el7.x86_64 and kernel-devel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-devel-3.10.0-957.5.1.el7.x86_64
- cannot install the best update candidate for package kernel-devel-3.10.0-957.el7.x86_64
========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Reinstalling:
kernel x86_64 3.10.0-957.1.3.el7 updates 48 M
kernel-devel x86_64 3.10.0-957.5.1.el7 updates 17 M
replacing kernel-devel.x86_64 3.10.0-957.5.1.el7

Transaction Summary
=========================================================================================================

I have installed all kernels kernel-3.10.0-957.5.1.el7.x86_64 or 3.10.0-957.1.3.el7.x86_64 or kernel-3.10.0-957.el7.x86_64 and
all work properly...
Frankly speaking, I do not understand the reason, because if I use sudo yum update, all looks O.K.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Bob 2019-02-23 13:43:20 UTC
I believe I'm having the same problem. It happens since 2019-02-14 on all CentOS 7 systems.

Dnf update always want's to reinstall kernel 3.10.0-957.5.1. But the reinstalled kernel is never loaded after rebooting (no menuentry in grub.cfg is created). Only after reinstalling the kernel with yum the kernel is loaded on reboot. But dnf update will still reinstall the kernel 3.10.0-957.5.1 and the menuentry for 3.10.0-957.5.1 is removed again from grub.cfg.

This is the transaction before the first reinstall happened:
$ sudo dnf history info 209 | grep dnf
    Install  python2-libdnf-0.22.5-1.el7_6.x86_64                      @extras
    Upgrade  dnf-4.0.9.2-1.el7_6.noarch                                @extras
    Upgraded dnf-2.7.5-19.el7_6.noarch                                 @extras
    Upgrade  python2-dnf-4.0.9.2-1.el7_6.noarch                        @extras
    Upgraded python2-dnf-2.7.5-19.el7_6.noarch                         @extras
    Upgrade  dnf-data-4.0.9.2-1.el7_6.noarch                           @extras
    Upgraded dnf-data-2.7.5-19.el7_6.noarch                            @extras
    Upgrade  dnf-automatic-4.0.9.2-1.el7_6.noarch                      @extras
    Upgraded dnf-automatic-2.7.5-19.el7_6.noarch                       @extras
    Upgrade  libdnf-0.22.5-1.el7_6.x86_64                              @extras
    Upgraded libdnf-0.11.1-4.el7_6.x86_64                              @extras


==========
$ uname -srvmpio
Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ rpm -q kernel
kernel-3.10.0-862.14.4.el7.x86_64
kernel-3.10.0-957.1.3.el7.x86_64
kernel-3.10.0-957.5.1.el7.x86_64

$ rpm -qa | grep dnf
dnf-data-4.0.9.2-1.el7_6.noarch
python2-dnf-4.0.9.2-1.el7_6.noarch
cguds-dnf-automatic-5.1-0.el7.centos.noarch
dnf-4.0.9.2-1.el7_6.noarch
dnf-automatic-4.0.9.2-1.el7_6.noarch
libdnf-0.22.5-1.el7_6.x86_64
python2-libdnf-0.22.5-1.el7_6.x86_64

$ sudo dnf update
Last metadata expiration check: 0:12:05 ago on Sat 23 Feb 2019 01:51:13 PM CET.
Dependencies resolved.

 Problem: cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-862.14.4.el7.x86_64
================================================================================
 Package        Arch           Version                    Repository       Size
================================================================================
Reinstalling:
 kernel         x86_64         3.10.0-957.5.1.el7         updates          48 M

Transaction Summary
================================================================================

Total download size: 48 M
Installed size: 63 M
Is this ok [y/N]: y
Downloading Packages:
kernel-3.10.0-957.5.1.el7.x86_64.rpm            4.1 MB/s |  48 MB     00:11
--------------------------------------------------------------------------------
Total                                           4.0 MB/s |  48 MB     00:11
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Reinstalling     : kernel-3.10.0-957.5.1.el7.x86_64                       1/2
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                       1/2
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                       2/2
  Cleanup          : kernel-3.10.0-957.5.1.el7.x86_64                       2/2
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                       2/2
  Verifying        : kernel-3.10.0-957.5.1.el7.x86_64                       1/2
  Verifying        : kernel-3.10.0-957.5.1.el7.x86_64                       2/2

Reinstalled:
  kernel-3.10.0-957.5.1.el7.x86_64

Complete!

Comment 3 Akemi Yagi 2019-02-25 07:05:29 UTC
Updating libsolv to 0.6.35 seems to resolve the issue. See bug #1668256 and further upstream #1554820 for details.

Comment 4 Jaroslav Mracek 2019-03-19 08:25:01 UTC

*** This bug has been marked as a duplicate of bug 1668256 ***


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