Bug 1601603

Summary: "dnf --disableexcludes=all upgrade" wants to install packages from updates-modular
Product: [Fedora] Fedora Reporter: Edgar Hoch <edgar.hoch>
Component: dnfAssignee: rpm-software-management
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 28CC: dmach, jmracek, mblaha, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-4.0.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-22 18:00:41 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
Output of "dnf upgrade"
none
Output of "dnf --disableexcludes=all upgrade" (on the same system) none

Description Edgar Hoch 2018-07-16 20:27:00 UTC
Description of problem:

I have installed package fedora-repos-modular (it is a mandatory package of group server-product). But I haven't installed any package from modular repos.

If I run "dnf upgrade", all works as expected. At the moment no updates need to be installed.

If I run "dnf --disableexcludes=all upgrade" on the same system, then dnf wants to replace (upgrade) some packages with packages from updates-modular repository.

This should not happen!

According to the man pages of dnf and dnf.conf the option --disableexcludes=all should disable excludepkgs options in contained in some repository configuration files in /etc/yum.repos.d/*.repo or dnf config files /etc/dnf/* . But it should  do nothing special with modular repositories.

On most systems, we have no excludepkgs options set. On systems with nvidia gpu cards, we have set the following excludepkgs option, to prevent automatic updates of the nvidia and cuda packages that would install newer libraries that will be incompatible with a loaded kernel driver (that can be only unloaded at reboot or when it is unused, e.g. no processes uses the gpus). But the effect of 
--disableexcludes=all option according to modular packages is the same.

# grep -r exclude /etc/yum.repos.d/ /etc/dnf/
/etc/dnf/dnf.conf:excludepkgs=*nvidia*,*cuda*




Version-Release number of selected component (if applicable):
dnf-2.7.5-12.fc28.noarch
fedora-repos-28-3.noarch
fedora-repos-modular-28-3.noarch


How reproducible:
Always

Comment 1 Edgar Hoch 2018-07-16 20:27:32 UTC
Created attachment 1459266 [details]
Output of "dnf upgrade"

Comment 2 Edgar Hoch 2018-07-16 20:28:39 UTC
Created attachment 1459267 [details]
Output of "dnf --disableexcludes=all upgrade" (on the same system)

Comment 3 Martin Hatina 2018-07-26 08:22:13 UTC
Fixed in https://github.com/rpm-software-management/dnf/pull/1144