Bug 1870131

Summary: Dnf updateinfo shows updates for packages in default but not enabled modules
Product: Red Hat Enterprise Linux 8 Reporter: Patrik Segedy <psegedy>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.0CC: amatej, james.antill, pkratoch
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-14 10:15:00 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:

Description Patrik Segedy 2020-08-19 12:05:37 UTC
Description of problem:
Dnf updateinfo list updates for packages in default modules, even if those modules are not enabled. Therefore the update is not installable.

Version-Release number of selected component (if applicable):
dnf-4.2.17-7.el8_2.noarch

How reproducible:
always

Steps to Reproduce:
1. Enable idm:client module
# dnf module enable idm:client
# dnf module list --enabled
Updating Subscription Management repositories.
Last metadata expiration check: 0:45:11 ago on Wed 19 Aug 2020 07:08:13 AM EDT.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Name                                                             Stream                                                     Profiles                                                     Summary                                                                              
idm                                                              client [d][e]                                              common [d]                                                   RHEL IdM long term support client module                                             
satellite-5-client                                               1.0 [d][e]                                                 common [d], gui                                              Red Hat Satellite 5 client packages                                                  
virt                                                             rhel [d][e]                                                common [d]                                                   Virtualization module                                                                

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled


2. dnf install ipa-client-4.7.1-11.module+el8+2843+a16c4825.x86_64
3. # dnf updateinfo list | grep ipa-client
RHBA-2019:3463 bugfix         ipa-client-4.8.0-10.module+el8.1.0+4107+4a66eb87.x86_64
RHEA-2020:1640 enhancement    ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64
RHEA-2020:1640 enhancement    ipa-client-4.8.4-7.module+el8.2.0+6047+59605870.x86_64
RHBA-2019:3463 bugfix         ipa-client-common-4.8.0-10.module+el8.1.0+4107+4a66eb87.noarch
RHEA-2020:1640 enhancement    ipa-client-common-4.8.4-7.module+el8.2.0+6046+aaa49f96.noarch
RHEA-2020:1640 enhancement    ipa-client-common-4.8.4-7.module+el8.2.0+6047+59605870.noarch

4. ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64 is not installable as it comes from default non-enabled idm:DL1 module
# dnf install ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64
Updating Subscription Management repositories.
Last metadata expiration check: 0:48:55 ago on Wed 19 Aug 2020 07:08:13 AM EDT.
All matches were filtered out by modular filtering for argument: ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64
Error: Unable to find a match: ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64

# dnf module provides ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64
Updating Subscription Management repositories.
Last metadata expiration check: 0:49:39 ago on Wed 19 Aug 2020 07:08:13 AM EDT.
ipa-client-4.8.4-7.module+el8.2.0+6046+aaa49f96.x86_64
Module   : idm:DL1:8020020200318161616:2ef9514c:x86_64
Profiles : client common
Repo     : rhel-8-for-x86_64-appstream-rpms
Summary  : The Red Hat Enterprise Linux Identity Management system module


Actual results:
dnf updateinfo suggests update from not enabled module and the suggested update is not installable 

Expected results:
dnf updateinfo list should list updates only from enabled modules


Additional info:

Comment 1 amatej 2020-09-14 10:15:00 UTC
The problem is not with default modules but with the way we (don't) handle multiple collections in updateinfo xml file.

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