Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1554820 - "dnf upgrade" reinstalls kernel packages reporting it cannot install best update candidate
Summary: "dnf upgrade" reinstalls kernel packages reporting it cannot install best upd...
Keywords:
Status: CLOSED DUPLICATE of bug 1616118
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-13 12:37 UTC by Lukas Ruzicka
Modified: 2018-10-08 14:54 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1668256 (view as bug list)
Environment:
Last Closed: 2018-10-08 14:40:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
debugdata folder created with --debugsolver (11.39 MB, application/x-gzip)
2018-04-11 12:03 UTC, Gerry Agbobada
no flags Details

Description Lukas Ruzicka 2018-03-13 12:37:12 UTC
Description of problem:

When running "dnf upgrade", it reports that it cannot install the best update candidate for kernel related packages and suggests to reinstall them. When you confirm the operation, it produces the same output with the next "dnf upgrade".

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

dnf-2.7.5-8.fc28.noarch

How reproducible:

Always

Steps to Reproduce:
1. Run the "dnf upgrade" command

Actual results:

Problem 1: cannot install both kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.15.7-300.fc27.x86_64

Expected results:

Dnf should not reinstall packages when there are no updates available.

Additional info:

Last metadata expiration check: 1:04:52 ago on Tue 13 Mar 2018 12:24:27 PM CET.
Dependencies resolved.

 Problem 1: cannot install both kernel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.15.7-300.fc27.x86_64
 Problem 2: cannot install both kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-core-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-core-4.15.7-300.fc27.x86_64
 Problem 3: cannot install both kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-core-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-core-4.15.7-300.fc27.x86_64
 Problem 4: cannot install both kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-devel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-devel-4.15.7-300.fc27.x86_64
 Problem 5: cannot install both kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-modules-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-modules-4.15.7-300.fc27.x86_64
 Problem 6: cannot install both kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-modules-extra-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-debug-modules-extra-4.15.7-300.fc27.x86_64
 Problem 7: cannot install both kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-devel-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-devel-4.15.7-300.fc27.x86_64
 Problem 8: cannot install both kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64 and kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-modules-4.16.0-0.rc4.git0.1.fc28.x86_64
  - cannot install the best update candidate for package kernel-modules-4.15.7-300.fc27.x86_64
========================================================================================================================================================
 Package                                       Arch                      Version                                        Repository                 Size
========================================================================================================================================================
Reinstalling:
 kernel                                        x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     88 k
 kernel-core                                   x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     24 M
 kernel-debug-core                             x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     25 M
 kernel-debug-devel                            x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     13 M
 kernel-debug-modules                          x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     28 M
 kernel-debug-modules-extra                    x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                    2.3 M
 kernel-devel                                  x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     12 M
 kernel-modules                                x86_64                    4.16.0-0.rc4.git0.1.fc28                       fedora                     27 M

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

Total download size: 131 M
Is this ok [y/N]:

Comment 1 Jaroslav Mracek 2018-03-21 08:44:27 UTC
Please can you provide data created by "dnf --debugsolver upgrade" command? Thanks a lot

Comment 2 Jaroslav Mracek 2018-03-21 08:50:34 UTC
Additionally please can you try our upstream dnf if you can reproduce the bug (dnf copr enable rpmsoftwatemanagement/dnf-nightly)? Thanks a lot.

Comment 3 Gerry Agbobada 2018-04-11 12:01:56 UTC
I have the same issue, so I'll provide the debugdata from dnf (Sorry for all the copr related data, but I'm not sure I'm supposed to filter them out).

I have the same F28Beta version of Fedora, and kernel keeps asking about reinstalling each time I run the upgrade command (with also a small issue about nss-pem package, it could show up in the debugdata).

The copr doesn't work when I try to update dnf (even after correcting the small typo in rpmsoftwaremanagement name)

Comment 4 Gerry Agbobada 2018-04-11 12:03:44 UTC
Created attachment 1420271 [details]
debugdata folder created with --debugsolver

The requested data

Comment 5 Michael Young 2018-04-12 22:18:07 UTC
It is related to modular support, and possibly libmodulemd. I saw it in a server updated from Boltron, which went away when I deleted the left over module yaml files.
I recently replaced the install with a F28 server one, and the symptom has just reappeared after the latest update to dnf-2.7.5-9.fc28 which pulled in libmodulemd.
Now dnf update gives
 Problem 1: cannot install both kernel-4.16.1-300.fc28.x86_64 and kernel-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.0-300.fc28.x86_64
 Problem 2: cannot install both kernel-core-4.16.1-300.fc28.x86_64 and kernel-core-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-core-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-core-4.16.0-300.fc28.x86_64
 Problem 3: cannot install both kernel-modules-4.16.1-300.fc28.x86_64 and kernel-modules-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-modules-4.16.1-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-modules-4.16.0-300.fc28.x86_64
================================================================================
 Package            Arch       Version                Repository           Size
================================================================================
Reinstalling:
 kernel             x86_64     4.16.1-300.fc28        updates-testing      90 k
 kernel-core        x86_64     4.16.1-300.fc28        updates-testing      24 M
 kernel-modules     x86_64     4.16.1-300.fc28        updates-testing      27 M

Transaction Summary
================================================================================
 
but dnf update --disablerepo=\*modular\* gives
Nothing to do.
as does
dnf update --disablerepo=fedora-modular --disablerepo=updates-modular
but the kernel reinstall happens if either fedora-modular or updates-modular is enabled.

Comment 6 Satish Balay 2018-04-22 16:56:24 UTC
I see this issue when I invoke 'dnf update kernel*'. 'dnf update' does not list kernel in the update list.

Its a bit disconcerting that it wants to reinstall currently running/active kernel





[root@asterix ~]# dnf update kernel
Last metadata expiration check: 0:00:00 ago on Sun 22 Apr 2018 11:52:22 AM CDT.
Dependencies resolved.

 Problem: cannot install both kernel-4.16.3-300.fc28.x86_64 and kernel-4.16.3-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.3-300.fc28.x86_64
  - cannot install the best update candidate for package kernel-4.16.2-300.fc28.x86_64
==============================================================================================
 Package          Arch             Version                    Repository                 Size
==============================================================================================
Reinstalling:
 kernel           x86_64           4.16.3-300.fc28            updates-testing            91 k

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

Total download size: 91 k
Is this ok [y/N]: n
Operation aborted.
[root@asterix ~]# uname -a
Linux asterix 4.16.3-300.fc28.x86_64 #1 SMP Thu Apr 19 19:04:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@asterix ~]# dnf update |grep kernel
n
Operation aborted.
[root@asterix ~]# dnf check-update |grep kernel
[root@asterix ~]# 
[root@asterix ~]# rpm -q dnf
dnf-2.7.5-12.fc28.noarch
[root@asterix ~]#

Comment 7 Jaroslav Mracek 2018-10-08 14:37:27 UTC
The problem is fixed in upstream and will be released as part of dnf-4.0 and libsolv-0.6.35-3.

Comment 8 Jaroslav Mracek 2018-10-08 14:40:08 UTC
Here is a copr repository for testing https://copr.fedorainfracloud.org/coprs/jmracek/dnf-upstream.

Comment 9 Jaroslav Mracek 2018-10-08 14:40:35 UTC

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

Comment 10 Satish Balay 2018-10-08 14:54:29 UTC
On F29 - I don't see this problem anymore

[root@asterix ~]# rpm -q libsolv dnf
libsolv-0.6.35-3.fc29.x86_64
dnf-3.6.1-1.fc29.noarch
[root@asterix ~]# dnf update kernel*
Last metadata expiration check: 0:03:27 ago on Mon 08 Oct 2018 09:50:00 AM CDT.
Dependencies resolved.
Nothing to do.
Complete!
[root@asterix ~]#

I guess the fix is primarily in libsolv-0.6.35-3 and not necessarily in dnf-4.0


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