Bug 1293713

Summary: yum fails to update yum and yum-cron when yum and yum-cron are installed
Product: Red Hat Enterprise Linux 7 Reporter: Martin Chlumsky <martin.chlumsky>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: carl, james.antill, mkalyat
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-19 16:24:09 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 Martin Chlumsky 2015-12-22 19:24:42 UTC
Description of problem:

While updating yum or yum-cron individually with yum and yum-cron packages installed, yum fails. (Happens for specific versions, details below).

Version-Release number of selected component (if applicable):
yum-3.4.3-125.el7.centos.noarch
yum-cron-3.4.3-125.el7.centos.noarch

How reproducible:
Fails every time.

Steps to Reproduce:
1. Ensure you have a EL 7.x system with yum-3.4.3-125.el7.centos.noarch and yum-cron-3.4.3-125.el7.centos.noarch installed. 
2. Run: "yum update yum" or "yum update yum-cron"

Actual results:

[username@server ~]$ sudo yum update yum
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
4 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-125.el7.centos will be updated
---> Package yum.noarch 0:3.4.3-132.el7.centos.0.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
 Package              Arch                    Version                                    Repository             Size
=====================================================================================================================
Updating:
 yum                  noarch                  3.4.3-132.el7.centos.0.1                   base                  1.2 M

Transaction Summary
=====================================================================================================================
Upgrade  1 Package

Total size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /etc/yum/yum-cron-hourly.conf from install of yum-3.4.3-132.el7.centos.0.1.noarch conflicts with file from package yum-cron-3.4.3-125.el7.centos.noarch
  file /etc/yum/yum-cron.conf from install of yum-3.4.3-132.el7.centos.0.1.noarch conflicts with file from package yum-cron-3.4.3-125.el7.centos.noarch

Error Summary
-------------


Expected results:
Yum updates yum/yum-cron succesfully.

Additional info:

While I am fully aware that this on a CentOS 7.x system, I am quite confident this problem exists in RHEL 7.x as well.

The problem can be worked around by "yum update yum yum-cron".
I think the problem could be partially fixed by replacing the requires of yum-cron (only fixes "yum update yum-cron"):
yum >= 3.4.3-84
by
yum >= 3.4.3-132

Comment 2 Valentina Mukhamedzhanova 2016-02-18 16:46:55 UTC
*** Bug 1301862 has been marked as a duplicate of this bug. ***

Comment 3 Valentina Mukhamedzhanova 2016-02-19 16:24:09 UTC
These yum-cron config files shouldn't be owned by yum, we will fix this in bug 1293513.

*** This bug has been marked as a duplicate of bug 1293513 ***