Bug 1316857

Summary: yum-cron won't work as expected with listed update_cmd
Product: Red Hat Enterprise Linux 7 Reporter: Przemyslaw Sobieski <przemyslaw.sobieski>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: james.antill, mdomonko
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-04-15 12:02:41 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:

Description Przemyslaw Sobieski 2016-03-11 10:19:08 UTC
Description of problem:
yum-cron when configured with update_cmd = security-severity:Critical or minimal-security-severity:Critical won't update just security packages with selected Critical level but all packages even bugfixes and enhancement.

Version-Release number of selected component (if applicable):


How reproducible:
On every RH 7.2 in AWS with all the latest packages.

Steps to Reproduce:
1. install yum-cron
2. configure update_cmd = security-severity:Critical in /etc/yum/yum-cron.conf ( also lower random sleep to 0 and set apply updates to = yes to speed up testing )
3. run yum-cron /etc/yum/yum-cron.conf

Actual results:
yum-cron /etc/yum/yum-cron.conf
================================================================================
 Package      Arch   Version             Repository                        Size
================================================================================
Updating:
 glibc        x86_64 2.17-106.el7_2.4    rhui-REGION-rhel-server-releases 3.6 M
 glibc-common x86_64 2.17-106.el7_2.4    rhui-REGION-rhel-server-releases  11 M
 gnutls       x86_64 3.3.8-14.el7_2      rhui-REGION-rhel-server-releases 662 k
 grub2        x86_64 1:2.02-0.34.el7_2   rhui-REGION-rhel-server-releases 1.5 M
 grub2-tools  x86_64 1:2.02-0.34.el7_2   rhui-REGION-rhel-server-releases 3.3 M
 libssh2      x86_64 1.4.3-10.el7_2.1    rhui-REGION-rhel-server-releases 134 k
 libxml2      x86_64 2.9.1-6.el7_2.2     rhui-REGION-rhel-server-releases 666 k
 libxml2-python
              x86_64 2.9.1-6.el7_2.2     rhui-REGION-rhel-server-releases 245 k
 nss          x86_64 3.19.1-19.el7_2     rhui-REGION-rhel-server-releases 852 k
 nss-sysinit  x86_64 3.19.1-19.el7_2     rhui-REGION-rhel-server-releases  54 k
 nss-tools    x86_64 3.19.1-19.el7_2     rhui-REGION-rhel-server-releases 484 k
 nss-util     x86_64 3.19.1-9.el7_2      rhui-REGION-rhel-server-releases  72 k
 openssh      x86_64 6.6.1p1-23.el7_2    rhui-REGION-rhel-server-releases 435 k
 openssh-clients
              x86_64 6.6.1p1-23.el7_2    rhui-REGION-rhel-server-releases 639 k
 openssh-server
              x86_64 6.6.1p1-23.el7_2    rhui-REGION-rhel-server-releases 436 k
 openssl      x86_64 1:1.0.1e-51.el7_2.4 rhui-REGION-rhel-server-releases 711 k
 openssl-libs x86_64 1:1.0.1e-51.el7_2.4 rhui-REGION-rhel-server-releases 951 k
 polkit       x86_64 0.112-6.el7_2       rhui-REGION-rhel-server-releases 166 k
 python-perf  x86_64 3.10.0-327.10.1.el7 rhui-REGION-rhel-server-releases 2.4 M

Transaction Summary
================================================================================
Upgrade  19 Packages
Updates downloaded successfully.


Expected results:
Following packages updated
 glibc                                   x86_64                            2.17-106.el7_2.4                             rhui-REGION-rhel-server-releases                            3.6 M
 glibc-common                            x86_64                            2.17-106.el7_2.4                             rhui-REGION-rhel-server-releases                             11 M
 nss-util                                x86_64                            3.19.1-9.el7_2                               rhui-REGION-rhel-server-releases                             72 k


Additional info:

Comment 2 Michal Domonkos 2016-04-15 12:02:41 UTC

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