Bug 1225078

Summary: dnf offers kernel update incorrectly
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: dnfAssignee: rpm-software-management
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dennis, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 14:15:33 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:
Attachments:
Description Flags
dnf debug info none

Description Dennis Gilmore 2015-05-26 14:15:35 UTC
Description of problem:
[root@hathor ~]# dnf update
Fedora 22 - armhfp                                                                                                                                                                                                                             8.3 MB/s |  37 MB     00:04    
Fedora 22 - armhfp - Updates                                                                                                                                                                                                                   8.8 MB/s | 2.6 MB     00:00    
Last metadata expiration check performed 0:00:08 ago on Tue May 26 13:50:19 2015.
Dependencies resolved.
===============================================================================================================================================================================================================================================================================
 Package                                                                      Arch                                                       Version                                                              Repository                                                  Size
===============================================================================================================================================================================================================================================================================
Installing:
 kernel-lpae-core                                                             armv7hl                                                    4.0.4-301.fc22                                                       fedora                                                      15 M
 kernel-lpae-modules                                                          armv7hl                                                    4.0.4-301.fc22                                                       fedora                                                      10 M
 kernel-lpae-modules-extra                                                    armv7hl                                                    4.0.4-301.fc22                                                       fedora                                                     857 k
Upgrading:
 gnome-initial-setup                                                          armv7hl                                                    3.16.3-1.fc22                                                        fedora                                                     1.0 M
 hawkey                                                                       armv7hl                                                    0.5.7-1.fc22                                                         updates                                                     80 k
 kernel-headers                                                               armv7hl                                                    4.0.4-301.fc22                                                       fedora                                                     969 k
 libblockdev                                                                  armv7hl                                                    0.13-2.fc22                                                          fedora                                                      64 k
 libblockdev-btrfs                                                            armv7hl                                                    0.13-2.fc22                                                          fedora                                                      25 k
 libblockdev-crypto                                                           armv7hl                                                    0.13-2.fc22                                                          fedora                                                      26 k
 libblockdev-dm                                                               armv7hl                                                    0.13-2.fc22                                                          fedora                                                      25 k
 libblockdev-loop                                                             armv7hl                                                    0.13-2.fc22                                                          fedora                                                      22 k
 libblockdev-lvm                                                              armv7hl                                                    0.13-2.fc22                                                          fedora                                                      29 k
 libblockdev-mdraid                                                           armv7hl                                                    0.13-2.fc22                                                          fedora                                                      26 k
 libblockdev-mpath                                                            armv7hl                                                    0.13-2.fc22                                                          fedora                                                      22 k
 libblockdev-plugins-all                                                      armv7hl                                                    0.13-2.fc22                                                          fedora                                                      18 k
 libblockdev-swap                                                             armv7hl                                                    0.13-2.fc22                                                          fedora                                                      23 k
 libblockdev-utils                                                            armv7hl                                                    0.13-2.fc22                                                          fedora                                                      25 k
 python-hawkey                                                                armv7hl                                                    0.5.7-1.fc22                                                         updates                                                     69 k
 python3-hawkey                                                               armv7hl                                                    0.5.7-1.fc22                                                         updates                                                     65 k 
Removing:                                                                                                                                                                                                                                                                      
 kernel-lpae-core                                                             armv7hl                                                    4.0.1-300.fc22                                                       @System                                                     61 M 
 kernel-lpae-modules                                                          armv7hl                                                    4.0.1-300.fc22                                                       @System                                                     35 M 
 kernel-lpae-modules-extra                                                    armv7hl                                                    4.0.1-300.fc22                                                       @System                                                    2.6 M 
                                                                                                                                                                                                                                                                               
Transaction Summary                                                                                                                                                                                                                                                            
===============================================================================================================================================================================================================================================================================
Install   3 Packages                                                                                                                                                                                                                                                           
Upgrade  16 Packages                                                                                                                                                                                                                                                           
Remove    3 Packages                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                               
Total download size: 28 M                                                                                                                                                                                                                                                      
Is this ok [y/N]: y                                                                                                                                                                                                                                                            
Downloading Packages:                                                                                                                                                                                                                                                          
^CTerminated.                                                                                                                                                                                                                                                                  
[root@hathor ~]# ^C                                                                                                                                                                                                                                                            
[root@hathor ~]# rpm -q kernel-lpae-core                                                                                                                                                                                                                                       
kernel-lpae-core-4.0.1-300.fc22.armv7hl                                                                                                                                                                                                                                        
kernel-lpae-core-4.1.0-0.rc2.git0.1.fc23.armv7hl                                                                                                                                                                                                                               
kernel-lpae-core-4.0.4-300.fc22.armv7hl                                             

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc22.noarch

How reproducible:
always

Steps to Reproduce:
1. be running a rawhide kernel on f22
2. update system
3.

Actual results:
dnf offers to update to a kernel that is older than what is installed.

Expected results:
no kernel update offered

Additional info:

Comment 1 Honza Silhan 2015-07-22 13:59:30 UTC
Denis, attach the debugdata [1] and output of `dnf list kernel*`, please

[1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting

Comment 2 Dennis Gilmore 2015-08-20 21:22:43 UTC
Created attachment 1065398 [details]
dnf debug info

yum list kernel*
Yum command has been deprecated, redirecting to '/usr/bin/dnf list kernel*'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 0:06:02 ago on Thu Aug 20 21:16:07 2015.
Installed Packages
kernel-headers.armv7hl                                                                                                                    4.2.0-0.rc4.git2.1.fc24                                                                                                          @System        
kernel-lpae.armv7hl                                                                                                                       4.2.0-0.rc7.git2.1.fc23                                                                                                          @System        
kernel-lpae-core.armv7hl                                                                                                                  4.2.0-0.rc2.git0.1.fc23                                                                                                          @System        
kernel-lpae-core.armv7hl                                                                                                                  4.2.0-0.rc4.git2.1.fc24                                                                                                          @System        
kernel-lpae-core.armv7hl                                                                                                                  4.2.0-0.rc7.git2.1.fc23                                                                                                          @System        
kernel-lpae-modules.armv7hl                                                                                                               4.2.0-0.rc2.git0.1.fc23                                                                                                          @System        
kernel-lpae-modules.armv7hl                                                                                                               4.2.0-0.rc4.git2.1.fc24                                                                                                          @System        
kernel-lpae-modules.armv7hl                                                                                                               4.2.0-0.rc7.git2.1.fc23                                                                                                          @System        
kernel-lpae-modules-extra.armv7hl                                                                                                         4.2.0-0.rc2.git0.1.fc23                                                                                                          @System        
kernel-lpae-modules-extra.armv7hl                                                                                                         4.2.0-0.rc4.git2.1.fc24                                                                                                          @System        
Available Packages
kernel.armv7hl                                                                                                                            4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-core.armv7hl                                                                                                                       4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-devel.armv7hl                                                                                                                      4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-headers.armv7hl                                                                                                                    4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-lpae-devel.armv7hl                                                                                                                 4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-lpae-modules-extra.armv7hl                                                                                                         4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-modules.armv7hl                                                                                                                    4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-modules-extra.armv7hl                                                                                                              4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-rpm-macros.noarch                                                                                                                  36-1.fc23                                                                                                                        fedora         
kernel-tools.armv7hl                                                                                                                      4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-tools-libs.armv7hl                                                                                                                 4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernel-tools-libs-devel.armv7hl                                                                                                           4.2.0-0.rc6.git0.2.fc23                                                                                                          updates-testing
kernelshark.armv7hl                                                                                                                       2.2.1-6.fc23                                                                                                                     fedora

Comment 3 Fedora Admin XMLRPC Client 2016-07-08 09:32:09 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora End Of Life 2016-07-19 14:15:33 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.