Bug 1121570

Summary: dnf update --best fails with Error: bad problem rule type
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, hdegoede, jsilhan, mls, packaging-team-maint, pnemade, rholy, tim.lauridsen
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: 2014-07-30 12:47:53 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 update --debugsolver --best debugdata output none

Description Hans de Goede 2014-07-21 09:03:25 UTC
When running dnf update --best (or set best=true in dnf.conf) I get the following on a fully up2date F-21:

[hans@shalem ~]$ sudo dnf update --best -v
cachedir: /var/cache/dnf/x86_64/21
DNF version: 0.5.4
repo: using cache for: updates-testing
repo: using cache for: fedora
not found deltainfo for: Fedora 21 - x86_64
repo: using cache for: whot-libinput-userstudy
not found deltainfo for: Copr repo for libinput-userstudy owned by whot
repo: using cache for: rpmfusion-free-rawhide
not found deltainfo for: RPM Fusion for Fedora Rawhide - Free
repo: using cache for: adobe-linux-x86_64
not found deltainfo for: Adobe Systems Incorporated
repo: using cache for: adobe-linux-i386
not found deltainfo for: Adobe Systems Incorporated
repo: using cache for: rpmfusion-nonfree-rawhide
not found deltainfo for: RPM Fusion for Fedora Rawhide - Nonfree
repo: using cache for: updates
--> Starting dependency resolution
--> Finished dependency resolution
Error: bad problem rule type. bad problem rule type. bad problem rule type. bad problem rule type

Let me know what I can do to collect more debug-info for you.

Comment 1 Honza Silhan 2014-07-21 17:12:50 UTC
Hi, thanks for the report. I can't see any error reproducing in f21 docker image. The message is unknown error from libsolv. Can you attach debugdata (http://dnf.baseurl.org/2013/11/25/reporting-depsolving-bugs/), please?

Comment 2 Hans de Goede 2014-07-22 06:25:24 UTC
Created attachment 919805 [details]
dnf update  --debugsolver --best debugdata output

Comment 3 Michael Schröder 2014-07-30 09:53:18 UTC
The bad error message is already fixed in current libsolv (the one that includes the "yum obsoletes" code).

The error itself comes from conflicting jobs: the "update --best" conflicts with  the locks for the openssl* packages. If you switch over to the pool->considered
mechanism for package excludes, the error will also be gone.

Comment 4 Hans de Goede 2014-07-30 11:01:29 UTC
(In reply to Michael Schröder from comment #3)
> The bad error message is already fixed in current libsolv (the one that
> includes the "yum obsoletes" code).
> 
> The error itself comes from conflicting jobs: the "update --best" conflicts
> with  the locks for the openssl* packages.

Ah yes, that makes sense.

> If you switch over to the pool->considered
> mechanism for package excludes, the error will also be gone.

I guess that is something which needs to be changed in the dnf code, or is it a config / repo setting ?

Comment 5 Michael Schröder 2014-07-30 11:08:31 UTC
Yes, it'll be a change in dnf & hawkey. See bug #1099342.

Comment 6 Honza Silhan 2014-07-30 12:47:53 UTC
Thanks for the libsolv fix and info, Michael.

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