Bug 912165 - [kernel] dnf distro-sync and the kernel package
Summary: [kernel] dnf distro-sync and the kernel package
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 920370 (view as bug list)
Depends On: 905209
Blocks: 871892
TreeView+ depends on / blocked
 
Reported: 2013-02-18 01:32 UTC by Heldwin
Modified: 2014-09-30 23:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-05 06:46:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Heldwin 2013-02-18 01:32:49 UTC
Description of problem:
dnf distro-sync doesn't work the same as yum.

In the last testing, it tries to pull an old kernel.

Version-Release number of selected component (if applicable):
dnf-0.2.21-1.git050524e.fc18.noarch

How reproducible:
always

Steps to Reproduce:
1. dnf distro-sync
2.
3.
  
Actual results:

Installing:
 kernel         x86_64      3.6.10-4.fc18              fedora     27 M
 kernel-devel   x86_64      3.6.10-4.fc18              fedora    7.7 M
Downgrading:
 dnf            noarch      0.2.20-1.gitdec970f.fc18   updates   497 k
 hawkey         x86_64      0.3.6-1.gitc8365fa.fc18    updates    46 k
 python-hawkey  x86_64      0.3.6-1.gitc8365fa.fc18    updates    40 k


Expected results:

Downgrading:
 dnf           noarch       0.2.20-1.gitdec970f.fc18   updates   497 k
 hawkey        x86_64       0.3.6-1.gitc8365fa.fc18    updates    46 k
 python-hawkey x86_64       0.3.6-1.gitc8365fa.fc18    updates    40 k

Additional info:

kernel installed  3.7.5-201, 3.7.6-201, 3.7.7-201

Comment 1 Ales Kozumplik 2013-02-18 11:29:36 UTC
Hello,

the support for installonly packages (such as kernel) in DNF is not in a good shape yet and this bug revealed yet another issue. Thanks for reporting.

Comment 2 benoît barthés 2013-03-12 08:05:27 UTC
*** Bug 920370 has been marked as a duplicate of this bug. ***

Comment 3 Michael Schröder 2013-05-28 12:22:48 UTC
Ales, please provide a solver testcase ;)

Comment 4 Ales Kozumplik 2013-05-29 07:29:54 UTC
I know I know. My plan is to fix the number-of-installed-kernels bug and then try to reproduce it in DNF. Who knows maybe it's gone now with all the libsolv fixes.

Comment 5 Ales Kozumplik 2013-12-04 12:46:38 UTC
Hello, can this still be reproduced with dnf-0.4.9? Several installonly fixes went in in the meantime.

Comment 6 Heldwin 2013-12-04 13:07:50 UTC
Hello,

The problem is I am now on F20, and didn't check dnf too often.

With dnf 0.4.9-1.fc20, if I try with the deactivation of updates-testing made by the package fedora-release-20-1 (and manual reactivation after that), I get in a distro-sync loop with a switch of repo fedora/updates-testing, and can test a little dnf.

So far, it doesn't seem to do that for this version of dnf.
can test on f19 also.

Comment 7 Ales Kozumplik 2013-12-04 14:08:12 UTC
> With dnf 0.4.9-1.fc20, if I try with the deactivation of updates-testing
> made by the package fedora-release-20-1 (and manual reactivation after
> that), I get in a distro-sync loop with a switch of repo
> fedora/updates-testing, and can test a little dnf.

I am not sure if I follow here: what do you mean by 'distro-sync loop'?

Comment 8 Heldwin 2013-12-05 02:52:14 UTC
I mean by activating/deactivating the fedora-updates-testing repo, maybe calling it a loop isn't appropriate :) 

* distro-sync on the fedora repo, that do about 149 downgrades because I was on updates-testing, and deleteting the last kernel after that (I am on the previous one)
* getting back to the updates-testing repo using distro-sync
* doing the same with yum to compare

(just doing it as a test on 1 machine, fully backuped)

But it doesn't try to grab an old kernel anymore (deleting or not the last kernel)

At this time, it also seems to have the exact same number of packages to downgrade/upgrade between yum and dnf

Comment 9 Ales Kozumplik 2013-12-05 06:46:15 UTC
(In reply to Heldwin from comment #8)
> 
> At this time, it also seems to have the exact same number of packages to
> downgrade/upgrade between yum and dnf

DNF and yum use different depsolvers so sometimes DNF offers different (some would say more correct) results. That is not a bug unless shown specifically that a wrong package was distro-synced or that DNF refuses to distro-sync a certain package.(In reply to Heldwin from comment #8)

> But it doesn't try to grab an old kernel anymore (deleting or not the last
> kernel)

I will close this bug per this comment. If DNF distro-sync doesn't work for you the way it should please reopen this bug, with debugdata/ attached.

[1] http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/


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