Bug 1269416

Summary: [ceph] yum-plugin-priorities does not blacklist all the obsoleted packages
Product: [Fedora] Fedora EPEL Reporter: Boris Ranto <branto>
Component: cephAssignee: Boris Ranto <branto>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: branto, loic, packaging-team-maint, qe-baseos-security, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-0.80.7-0.6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1269414
: 1275788 (view as bug list) Environment:
Last Closed: 2015-10-26 18:55:38 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: 1269414    
Bug Blocks: 1275788    

Description Boris Ranto 2015-10-07 09:52:03 UTC
+++ This bug was initially created as a clone of Bug #1269414 +++

Description of problem:
When yum-plugin-priorities is configured to check (blacklist) obsoleting packages ( echo check_obsoletes=1 >> /etc/yum/pluginconf.d/priorities.conf ), it will blacklist only the latest obsoleting package, not the older ones that may be present in some other repos.


Version-Release number of selected component (if applicable):
yum-plugin-priorities-1.1.31-33.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a repo with 2 versions of a package that obsolete some other package
2. Bump the priority of the repo with the package that is being obsoleted
3. Try to install something that requires the obsoleted package with yum

Actual results:
Dependency problem because not all the obsoleted packages were masked.

Expected results:
The package installs fine.

Additional info:
Ceph upstream is hitting this when they are trying to install firefly branch on a rhel 7.1 host with epel enabled (*).

Here, base rhel 7.1 contains python-rados and python-rbd packages and epel contains python-rados and python-rbd packages. These packages obsolete python-ceph. The firefly branch of ceph does not split the python-ceph package into python-rados and python-rbd and uses the old python-ceph package. If you use the upstream repo for the firefly branch and bump its priority, 'yum install ceph' will fail because not all the python-rados and python-rbd packages were blacklisted/masked, only the latest one (as can be seen by yum install -v ceph).

(*) see upstream tracker http://tracker.ceph.com/issues/11104 for more details

Comment 1 Boris Ranto 2015-10-07 09:53:59 UTC
This is a bz to get rid of the second copies of python-rados and python-rbd that are in epel in order to avoid the issue mentioned in first comment.

Comment 2 Fedora Update System 2015-10-07 09:55:34 UTC
ceph-0.80.7-0.6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-40bf39f476

Comment 3 Fedora Update System 2015-10-07 19:19:40 UTC
ceph-0.80.7-0.6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update ceph'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-40bf39f476

Comment 4 Fedora Update System 2015-10-26 18:55:32 UTC
ceph-0.80.7-0.6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.