Bug 1269414
Summary: | yum-plugin-priorities does not blacklist all the obsoleted packages | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Boris Ranto <branto> | |
Component: | yum-utils | Assignee: | Valentina Mukhamedzhanova <vmukhame> | |
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.2 | CC: | branto, emrakova | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | yum-utils-1.1.31-35.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1269416 1329109 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 00:13:54 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: | 1269416, 1275788, 1289025, 1299750, 1313485 |
Description
Boris Ranto
2015-10-07 09:40:09 UTC
Boris, I can't seem to be able to reproduce the problem using the suggested steps. I believe https://github.com/rpm-software-management/yum-utils/blob/master/plugins/priorities/priorities.py#L164 should take care of the case you're describing. Could you provide a tarball with repositories for reproducing the problem? Yeah, we do use yum-plugin-priorities. However, there is a bug that it fails to mask obsoleted packages if they occur twice (or more) in the repos. (e.g. base repo and testing repo) Reproducer steps can be e.g. (contains two copies of ceph-common package in two separate repositories + link to upstream ceph repo): wget http://lacrosse.corp.redhat.com/~branto/ceph.tar cd /root/ tar -xvf ceph.tar cp ceph.repo /etc/yum.repos.d/ yum install ceph # this will require some packages from epel so you need to have epel enabled as well This will fail to install the older version of ceph packages even though there is priority=1 for the upstream repo. Now, if you modify the ceph.repo file and disable the secondary local repo, it will install the packages just fine. Hence, the conclusion (confirmed by my last run with verbose yum output) that for obsoleted package the plugin masks only the latest package that it can find, not all of them. btw: Please note that you need to have check_obsoletes=1 in /etc/yum/pluginconf.d/priorities.conf for the plugin to even mask the latest available package. Boris, thank you for the reproducer! This should fix the problem - https://github.com/rpm-software-management/yum-utils/commit/834a4ff4f2752631252cff4e3b2ba87bee62965b 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, 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://rhn.redhat.com/errata/RHBA-2016-2187.html |