Bug 1033881

Summary: sorting kernel dependencies when the oldest kernel on the system is running
Product: [Fedora] Fedora Reporter: Christopher Meng <i>
Component: hawkeyAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, bugzilla, elad, i, jzeleny, pnemade, rholy, vpodzime
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hawkey-0.4.8-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 11:03:35 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:
Attachments:
Description Flags
trying to update with dnf and yum
none
debugdata none

Description Christopher Meng 2013-11-24 01:28:29 UTC
Description of problem:
[root@fab Desktop]# dnf update
determining the fastest mirror (3 hosts).. done.
RPM Fusion for Fedora Rawhide - Free                                                                                          49 kB/s | 422 kB     00:08    
determining the fastest mirror (1 hosts).. done.
RPM Fusion for Fedora Rawhide - Nonfree                                                                                       50 kB/s | 268 kB     00:05    
Rawhide kernels built without debugging turned on                                                                             29 kB/s | 456 kB     00:15    
determining the fastest mirror (37 hosts).. done.
Fedora - Rawhide - Developmental packages for the next Fedora release                                                        325 kB/s |  36 MB     01:54    
google-chrome                                                                                                                603  B/s | 3.1 kB     00:05    
Resolving dependencies
--> Starting dependency resolution
--> Finished dependency resolution
Error: package kernel-modules-extra-3.13.0-0.rc0.git3.2.fc21.i686 requires kernel-uname-r = 3.13.0-0.rc0.git3.2.fc21.i686, but none of the providers can be installed

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

Additional info:

yum update is fine. I'm using rawhide with nodebug kernel.

Comment 1 Ales Kozumplik 2013-11-25 07:27:49 UTC
Hi Christopher, can you please re-run dnf with '--debugsolver' parameter and attach the 'debugdata/' folder that gets created in the current working directory?

Comment 2 Christopher Meng 2013-11-25 08:08:07 UTC
Can I upload the tarball to elsewhere?(Should I mark it as public also?) I can't upload big files to RH bugzilla because it's too slow in my country.

Comment 3 Ales Kozumplik 2013-11-25 10:36:21 UTC
Yes, please, download the tarball wherever suits you best.

Comment 4 Ales Kozumplik 2013-11-25 11:20:26 UTC
Bug 1034073 looks very similar.

Comment 6 Ales Kozumplik 2013-11-26 08:45:38 UTC
Christopher, thanks for providing this! I need another piece of crucial information: what exact kernel were you running at the time when the file in comment 5 was made? Thanks!

Comment 7 Christopher Meng 2013-11-26 09:20:12 UTC
Just tried "dnf update" and failed as in 24/11.

Because 3.13 just hitted rawhide and it's very unstable(laggy), so I still use 3.12 for keeping consistency of system operation.

[root@fab Desktop]# uname -r && printf "%c---------------\n" && dnf update

3.12.0-1.fc21.i686
---------------
Error: package kernel-modules-extra-3.13.0-0.rc0.git10.1.fc21.i686 requires kernel-uname-r = 3.13.0-0.rc0.git10.1.fc21.i686, but none of the providers can be installed

Comment 8 Ales Kozumplik 2013-11-26 09:30:40 UTC
Thank you, that explains a lot.

This is a hawkey bug: if the oldest kernel on the system is running we fail to correctly order installonlies that depend on it (because the ones that should stay has the lowest version).

Comment 9 Ales Kozumplik 2013-11-26 13:34:31 UTC
Fixed by hawkey commit 8810cca, the patch will be included in hawkey-0.4.6.

Comment 10 Ales Kozumplik 2013-12-04 13:25:11 UTC
*** Bug 1034073 has been marked as a duplicate of this bug. ***

Comment 11 Ales Kozumplik 2013-12-06 09:55:09 UTC
*** Bug 1038951 has been marked as a duplicate of this bug. ***

Comment 12 Ales Kozumplik 2013-12-19 09:24:49 UTC
hawkey-0.4.6 and older are available in fedora updates now. closing.

Comment 13 Vratislav Podzimek 2013-12-22 10:39:01 UTC
I'm sorry, but even with
dnf-0.4.9-1.fc21.noarch
hawkey-0.4.7-1.fc21.x86_64

I still cannot update my system with dnf when I can update it with yum (will add an attachment showing the difference).

Comment 14 Vratislav Podzimek 2013-12-22 10:40:53 UTC
Created attachment 840318 [details]
trying to update with dnf and yum

This is the terminal output from the session when I tried to update with dnf and yum. There is also an output with the --debugsolver option providing no additional information.

Comment 15 Elad Alfassa 2013-12-23 08:30:54 UTC
I can reproduce this here as well with hawkey-0.4.7-1.fc20.x86_64

Comment 16 Ales Kozumplik 2014-01-02 08:11:50 UTC
Vratislav, can you attach the debugdata/ directory that the --debugsolver run produced? Also---what is the running kernel when you try to do the update?

Comment 17 Elad Alfassa 2014-01-13 12:08:22 UTC
Created attachment 849283 [details]
debugdata

Today when I ran dnf update, I got this error again

Error: package kmod-wl-3.11.10-301.fc20.x86_64-6.30.223.141-5.fc20.x86_64 requires kernel-uname-r = 3.11.10-301.fc20.x86_64, but none of the providers can be installed


dnf-0:0.4.11-1.fc20.noarch
hawkey-0.4.7-1.fc20.x86_64

Comment 18 Ales Kozumplik 2014-01-14 13:46:57 UTC
Both kmod-wl and nvidia-wl are the issue here:

[akozumpl@localhost ~/Downloads]$ rpm -qp --provides kmod-wl-3.12.5-302.fc20.x86_64-6.30.223.141-5.fc20.1.x86_64.rpm 
kernel-modules-for-kernel = 3.12.5-302.fc20.x86_64
kmod-wl-3.12.5-302.fc20.x86_64 = 6.30.223.141-5.fc20.1
kmod-wl-3.12.5-302.fc20.x86_64(x86-64) = 6.30.223.141-5.fc20.1
wl-kmod = 6.30.223.141-5.fc20.1

[akozumpl@localhost ~/Downloads]$ rpm -qp --provides kmod-nvidia-3.12.6-300.fc20.x86_64-331.20-10.fc20.2.x86_64.rpm 
kernel-modules-for-kernel = 3.12.6-300.fc20.x86_64
kmod-nvidia-3.12.6-300.fc20.x86_64 = 1:331.20-10.fc20.2
kmod-nvidia-3.12.6-300.fc20.x86_64(x86-64) = 1:331.20-10.fc20.2
kmod-nvidia-newest-3.12.6-300.fc20.x86_64 = 331.20
nvidia-kmod = 1:331.20-10.fc20.2

They do not provide anything to designate them as an installonly package. Adding:

Provides: installonlypkg(kernel-module)

to their spec and rebuilding will fix this issue because then DNF will know to handle them as installonly packages.

Comment 19 Ales Kozumplik 2014-01-14 14:52:36 UTC
scratch that. patch is on the way.

Comment 20 Ales Kozumplik 2014-01-14 16:18:21 UTC
Fixed upstream by 281d56c.

Comment 21 Fedora Update System 2014-01-21 07:03:37 UTC
hawkey-0.4.8-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/hawkey-0.4.8-1.fc20

Comment 22 Fedora Update System 2014-01-22 03:07:23 UTC
Package hawkey-0.4.8-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.4.8-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1248/hawkey-0.4.8-1.fc20
then log in and leave karma (feedback).

Comment 23 Ales Kozumplik 2014-01-22 06:09:06 UTC
*** Bug 1054424 has been marked as a duplicate of this bug. ***

Comment 24 Fedora Update System 2014-01-23 11:03:35 UTC
hawkey-0.4.8-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.