Bug 1957280
Summary: | DNF with versionlock silences a conflict due to a provide | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Christophe Besson <cbesson> |
Component: | dnf-plugins-core | Assignee: | Marek Blaha <mblaha> |
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.3 | CC: | james.antill, mblaha, pkratoch |
Target Milestone: | beta | Keywords: | Reproducer, Triaged |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-plugins-core-4.0.21-2.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 19:53:20 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
Christophe Besson
2021-05-05 14:05:45 UTC
Let me start with short explanation of what the versionlock plugin does. After reading the versionlock.list file it 1. excludes from available packages all versions of packages other than those mentioned 2. excludes also all packages that are obsoleting any the locked packages These excluded packages are completely unavailable and to the solver. Unfortunately this might lead to the situation described in this issue. In case that both - obsoleted package - facter package here (see `rpm -q --obsoletes puppet-agent`) - and its obsoleter (puppet-agent package) are part of the versionlock.list file, then due to the rule 2. all puppet-agent package versions are excluded so that the `dnf upgrade` command says 'Nothing to do.'. And it is not only the upgrade command, you are even not able to install the puppet-agent package, it's completely invisible: # dnf install puppet-agent All matches were filtered out by exclude filtering for argument: puppet-agent Error: Unable to find a match: puppet-agent Here is the patch for versionlock plugin that should fix the issue: https://github.com/rpm-software-management/dnf-plugins-core/pull/429 and here is PR with test https://github.com/rpm-software-management/ci-dnf-stack/pull/990 Meanwhile, to workaround the issue, you can remove facter package from the versionlock.list file. 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 (Moderate: dnf security and bug fix 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/RHSA-2021:4464 |