Bug 2027445
Summary: | Regression in dnf updateinfo - it does not display any updates | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Patrik Segedy <psegedy> | |
Component: | dnf | Assignee: | amatej | |
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 8.5 | CC: | amatej, james.antill, jcastran, jdostal, mbanas, mmraka | |
Target Milestone: | rc | Keywords: | Regression, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
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.
|
Story Points: | --- | |
Clone Of: | ||||
: | 2064579 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-08 10:47:13 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2064579 |
Description
Patrik Segedy
2021-11-29 17:08:43 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? 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? > 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 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 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 |