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 1320755 - dnf dependency resolution seriously broken in a presence of packages for an additionnal arch
Summary: dnf dependency resolution seriously broken in a presence of packages for an a...
Keywords:
Status: CLOSED DUPLICATE of bug 1325471
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-23 23:49 UTC by Michal Jaegermann
Modified: 2016-05-18 13:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-18 13:59:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
list of packages dnf attempts to install with a plain "update" (30.23 KB, text/plain)
2016-03-23 23:49 UTC, Michal Jaegermann
no flags Details
a list of packages for the same transaction with "--exclude='*.i686' added (19.54 KB, text/plain)
2016-03-23 23:51 UTC, Michal Jaegermann
no flags Details
--debugsolver data from a dnf run (7.23 MB, application/x-gzip)
2016-03-31 20:46 UTC, Michal Jaegermann
no flags Details
solver.1.result (5.61 KB, text/plain)
2016-04-02 19:17 UTC, Tomas Toth
no flags Details
@System.repo.1.gz (1.09 MB, application/x-gzip)
2016-04-02 19:18 UTC, Tomas Toth
no flags Details
testcase.1.t (25.84 KB, text/plain)
2016-04-02 19:18 UTC, Tomas Toth
no flags Details
solver.2.result (146 bytes, text/plain)
2016-04-02 19:20 UTC, Tomas Toth
no flags Details
@System.repo.2.gz (1.07 MB, application/x-gzip)
2016-04-02 19:20 UTC, Tomas Toth
no flags Details
testcase.2.t (25.84 KB, text/plain)
2016-04-02 19:21 UTC, Tomas Toth
no flags Details

Description Michal Jaegermann 2016-03-23 23:49:38 UTC
Created attachment 1139778 [details]
list of packages dnf attempts to install with a plain "update"

Description of problem:

My rawhide test installation on x86_64 is "32-bit clean" on purpose. Still after running on it 'dnf -v -b update' dnf attempts to install on it 134 definitely unwanted i686 packages.  The whole list of an attempted transaction attached.

After an explicit 'dnf -v -b --exclude='*.i686 update' dnf was just happy to drop from a transaction only those 32-bit packages and run without any fuss.  Moreover after this was completed the subsequent try of 'dnf -v -b update' comes back with "Nothing to do".

It is really hard to asses why this may be happening as dnf is really stingy with an information about what it is really doing.

Version-Release number of selected component (if applicable):
dnf-1.1.7-2.fc25.noarch

How reproducible:
I have seen that before but not consistently.

Expected results:
dnf not attempting to install something which was not asked for - explicitely or implicitely.

Additional info:
That particular installation does not have any 32-bit packages so it is comparatively easy to guard against such impositions as above but in "production", where some i686 packages may be needed, such "--exclude='*.i686 update'" could not be used and protecting an installation from an extra junk will be hard.

Comment 1 Michal Jaegermann 2016-03-23 23:51:21 UTC
Created attachment 1139780 [details]
a list of packages for the same transaction with "--exclude='*.i686' added

Comment 2 Michal Jaegermann 2016-03-31 00:28:00 UTC
With today updates 'dnf update' still attempts to install the same 134 spurious packages as before.

I do know if this is related but when "--exclude='*.i686'" is used the the following complaint shows up:

/usr/lib64/python3.5/re.py:203: FutureWarning: split() requires a non-empty pattern match.
  return _compile(pattern, flags).split(string, maxsplit)

Comment 3 Michal Luscon 2016-03-31 12:53:07 UTC
Pleas rerun your commands with a --debugsolver option and attach created debugdata.

Comment 4 Michal Jaegermann 2016-03-31 18:43:30 UTC
(In reply to Michal Luscon from comment #3)
> Pleas rerun your commands with a --debugsolver option and attach created debugdata.

Do you need rawhide.repo.gz and @System.repo.gz?  This is coming close to 8 MB and I am not sure if bugzilla even will accept an attachment of that size.

Comment 5 Michal Jaegermann 2016-03-31 20:46:34 UTC
Created attachment 1142359 [details]
--debugsolver data from a dnf run

(Apparently a file of this size is still acceptable to bugzilla)
The attached archive contains the following files:

debugdata.exclude/@System.repo.gz
debugdata.exclude/rawhide.repo.gz
debugdata.exclude/testcase.t
debugdata.exclude/solver.result
debugdata.noexcl/@System.repo.gz
debugdata.noexcl/rawhide.repo.gz
debugdata.noexcl/testcase.t
debugdata.noexcl/solver.result

Those in debugdata.noexcl are from 'dnf -b --debugsolver update' run; the other directory contains data produced by 'dnf -b --debugsolver --exclude="*.i686" update'.  @System.repo.gz and rawhide.repo.gz are hardlinked as they do not differ in both cases.  Without an explicit --exclude=... dnf attempts to install the same 134 spurious packages as before.

Comment 6 Tomas Toth 2016-04-02 19:09:37 UTC
I just ran into similar issue while updating F24 x86_64 (alpha) in VM. The F24 was already updated once.
I noticed too late that the update pulled in 134 additional .i686 packages, so I cannot generate a debug log for the update.
But interestingly it was enough to issue two dnf remove commands to remove all of them. I am attaching the debug files for the remove runs.

dnf remove --debugsolver zlib.i686
 # removed 131 packages

  solver.1.result
  @System.repo.1.gz
  testcase.1.t


dnf remove --debugsolver glibc.i686
 # removed the remaining 3 packages
     glibc.i686
     nss-softokn-freebl.i686
     xorg-x11-drv-geode.i686

  solver.2.result
  @System.repo.2.gz
  testcase.2.t


Hope it helps.

Comment 7 Tomas Toth 2016-04-02 19:17:12 UTC
Created attachment 1142858 [details]
solver.1.result

dnf remove --debugsolver zlib.i686

Comment 8 Tomas Toth 2016-04-02 19:18:10 UTC
Created attachment 1142859 [details]
@System.repo.1.gz

dnf remove --debugsolver zlib.i686

Comment 9 Tomas Toth 2016-04-02 19:18:48 UTC
Created attachment 1142860 [details]
testcase.1.t

dnf remove --debugsolver zlib.i686

Comment 10 Tomas Toth 2016-04-02 19:20:12 UTC
Created attachment 1142861 [details]
solver.2.result

dnf remove --debugsolver glibc.i686

Comment 11 Tomas Toth 2016-04-02 19:20:51 UTC
Created attachment 1142862 [details]
@System.repo.2.gz

dnf remove --debugsolver glibc.i686

Comment 12 Tomas Toth 2016-04-02 19:21:40 UTC
Created attachment 1142863 [details]
testcase.2.t

dnf remove --debugsolver glibc.i686

Comment 13 Honza Silhan 2016-04-04 11:38:02 UTC
thanks for the data.

Comment 14 Rex Dieter 2016-05-18 13:59:33 UTC
Looks like another variant of bug #1325471

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


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