Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1884169

Summary: dnf updateinfo reports inapplicable advisories
Product: Red Hat Enterprise Linux 8 Reporter: Michael Mráka <mmraka>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: amatej, james.antill, tlestach
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
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-10-06 09:51:01 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 Michael Mráka 2020-10-01 09:01:08 UTC
Description of problem:
On fully updated system dnf updateinfo still reports applicable advisories.

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

How reproducible:
always

Steps to Reproduce:
1. dnf update -y
2. dnf install perl-DBD-Pg
3. dnf updateinfo --list


Actual results:
# dnf update -y
...
Nothing to do.
Complete!
# dnf install perl-DBD-Pg
...
Installing:
 perl-DBD-Pg           x86_64 3.7.4-4.module+el8.1.1+4707+b0baf151 rhel-8-for-x86_64-appstream-rpms 215 k
...
Enabling module streams:
 perl                         5.26                                                                       
 perl-DBD-Pg                  3.7                                                                        
 perl-DBI                     1.641                                                                      
...
Complete!
# dnf updateinfo --list
...
RHBA-2020:0347 bugfix perl-DBD-Pg-3.7.4-4.module+el8.1.1+4707+d3bacf56.x86_64
RHBA-2019:3337 bugfix perl-Digest-1.17-396.module+el8.1.0+2926+ce7246ad.noarch
RHBA-2019:3337 bugfix perl-Digest-MD5-2.55-397.module+el8.1.0+2926+ce7246ad.x86_64
...


Expected results:
# dnf updateinfo --list 
[no advisory reported]


Additional info:
# dnf module info perl-DBD-Pg

Name             : perl-DBD-Pg
Stream           : 3.7 [d][e]
Version          : 8010120191115065723
Context          : 18319d51
[...]
Requires         : perl-DBI:[1.641]
                 : perl:[5.24]
                 : platform:[el8]
Artifacts        : perl-DBD-Pg-0:3.7.4-4.module+el8.1.1+4707+d3bacf56.src
                 : perl-DBD-Pg-0:3.7.4-4.module+el8.1.1+4707+d3bacf56.x86_64

Name             : perl-DBD-Pg
Stream           : 3.7 [d][e][a]
Version          : 8010120191115065723
Context          : c5869bed
[...]
Requires         : perl-DBI:[1.641]
                 : perl:[5.26]
                 : platform:[el8]
Artifacts        : perl-DBD-Pg-0:3.7.4-4.module+el8.1.1+4707+b0baf151.src
                 : perl-DBD-Pg-0:3.7.4-4.module+el8.1.1+4707+b0baf151.x86_64

Updateinfo reported version (perl-DBD-Pg-3.7.4-4.module+el8.1.1+4707+d3bacf56.x86_64) is NEVRA-wise newer than installed version (perl-DBD-Pg-0:3.7.4-4.module+el8.1.1+4707+b0baf151.x86_64) but requires perl 5.24 module which is not installed so it should not be reported as an update.

Comment 1 amatej 2020-10-06 09:51:01 UTC
Thank you for the report, this bug happens because DNF doesn't handle multiple collections in a single update of an updateinfo.xml file.

It is a known problem but fixing it is problematic.

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