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 2027445 - Regression in dnf updateinfo - it does not display any updates
Summary: Regression in dnf updateinfo - it does not display any updates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.5
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: rc
: ---
Assignee: amatej
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks: 2064579
TreeView+ depends on / blocked
 
Reported: 2021-11-29 17:08 UTC by Patrik Segedy
Modified: 2022-11-08 12:28 UTC (History)
6 users (show)

Fixed In Version: libdnf-0.63.0-9.el8
Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of:
: 2064579 (view as bug list)
Environment:
Last Closed: 2022-11-08 10:47:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-104178 0 None None None 2021-11-29 17:09:12 UTC
Red Hat Product Errata RHBA-2022:7711 0 None None None 2022-11-08 10:47:32 UTC

Description Patrik Segedy 2021-11-29 17:08:43 UTC
Description of problem:
`dnf updateinfo info` is not showing any updates but updates are available


Version-Release number of selected component (if applicable):
dnf-0:4.4.2-11.el8.noarch
dnf-0:4.7.0-4.el8.noarch


How reproducible:
always

Steps to Reproduce:
1. have some old rpms (in my case freshly installed rhel 8.0)
2. update dnf to latest version
3. $ sudo dnf updateinfo info
Updating Subscription Management repositories.
Last metadata expiration check: 1:02:01 ago on Mon 29 Nov 2021 10:46:02 AM EST.

4. downgrade to `dnf-4.2.23-4.el8.noarch`
5. `sudo dnf updateinfo info` shows a lot of updates

Actual results:
`dnf updateinfo info` is not showing any updates but updates are available

Expected results:
`dnf updateinfo info` should show available updates

Additional info:
It is causing issues with verifying that console.redhat.com is showing correct updates and CVEs. We are pinning dnf version in our tests to dnf-4.2.23-4.el8.noarch for now.

Comment 1 amatej 2021-12-01 14:22:40 UTC
I think the problem here is that even after the update dnf has a cache that was created using an older version (older version of libsolv specifically) and it doesn't contain all the needed information.

If you simply clean the cache you should be getting the correct results.
So in your reproducer after step "2. update dnf to latest version" run: "$ sudo dnf clean metadata" and then you can "3. $ sudo dnf updateinfo info" which should show the updates correctly.

Can you verify if this helps?

Comment 2 Patrik Segedy 2021-12-01 18:42:02 UTC
It works after cleaning the cache. Thank you! 

Would it be possible to do it automatically post-update? Or can dnf recreate cache when it doesn't contain necessary information?

Comment 3 amatej 2021-12-07 08:36:06 UTC
> Would it be possible to do it automatically post-update? Or can dnf recreate
> cache when it doesn't contain necessary information?

There are some possibilities, I believe the proper solution would be to version the libsolv solv files (our cache), I have created an issue for that: https://github.com/openSUSE/libsolv/issues/481

Comment 8 amatej 2022-03-03 12:57:10 UTC
Here are PRs to fix this (they require a new version of libsolv-0.7.21-1):
libdnf: https://github.com/rpm-software-management/libdnf/pull/1441
dnf (just a unittest fix): https://github.com/rpm-software-management/dnf/pull/1816
CI test: https://github.com/rpm-software-management/ci-dnf-stack/pull/1065

Comment 14 errata-xmlrpc 2022-11-08 10:47:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (libdnf bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7711


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