Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1374043

Summary: "yum updateinfo list all" Does Not Show All Errata.
Product: Red Hat Enterprise Linux 7 Reporter: Bernie Hoefer <bhoefer>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.2CC: bhoefer, james.antill, ksrot
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 08:01: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:

Description Bernie Hoefer 2016-09-07 19:26:29 UTC
Description of problem:
RHEL7's "yum updateinfo list all" does not return the security errata for all the RHEL7 packages if those packages are not installed.


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


Steps to Reproduce:
1.  Use a RHEL7 machine that does not have java-1.6.0-openjdk.
2.  Execute "yum updateinfo list all java-1.6.0-openjdk".
3.  Note that nothing is returned.  At the very least, RHSA-2016:1776
    (<https://rhn.redhat.com/errata/RHSA-2016-1776.html>) should be listed.
Alternative Reproduction:
1.  On a minimal-install RHEL7 machine, execute
    "yum updateinfo list all security | cut -d' ' -f2 | sort -u | wc -l".
2.  Note the number is less than the number of entries on this page:
    <https://rhn.redhat.com/errata/rhel-server-7-errata-security.html>
    (yum's 126 vs. that page's 315 as of 2016-09-07.)


Additional info:
+ The "yum updateinfo list all java-1.6.0-openjdk" command seems
  to work properly on RHEL6, with its yum-plugin-security package.
+ The RHEL6 "yum updateinfo list all security" command does not,
  because it believes "security" is the name of a package.
+ However, if one executes
  "yum --security updateinfo list all | cut -d' ' -f3 | sort -u | wc -l",
  one gets a number within ~11% of the number of entries (857)
  entries listed here:
  <https://rhn.redhat.com/errata/rhel-server-6-errata-security.html>.

Comment 2 Karel Srot 2016-10-05 12:47:32 UTC
I believe this could be duplicate to bug 1292150 which is being addressed in 7.3. 
Bernie, could you retest it on some recent RHEL-7.3 compose?

Comment 3 Bernie Hoefer 2016-10-07 13:53:53 UTC
(In reply to Karel Srot from comment #2)
===
> Bernie, could you retest it on some recent RHEL-7.3 compose?
===

Working on this, today.

Comment 4 Bernie Hoefer 2016-10-07 21:09:46 UTC
(In reply to Karel Srot from comment #2)
===
> Bernie, could you retest it on some recent RHEL-7.3 compose?
===

Here is my test:


# rpm -q redhat-release-server
redhat-release-server-7.3-6.el7.x86_64

# rpm -q yum
yum-3.4.3-150.el7.noarch

# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                           repo name                               status
rhel-7-server-htb-rpms/x86_64     Red Hat Enterprise Linux 7 Server HTB (  5,111
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs 11,375
repolist: 16,486

# rpm -q java-1.6.0-openjdk
package java-1.6.0-openjdk is not installed

# yum updateinfo list all java-1.6.0-openjdk
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-htb-rpms/x86_64                            | 4.0 kB     00:00     
rhel-7-server-rpms/7Server/x86_64                        | 3.5 kB     00:00     
  RHSA-2014:0685 Important/Sec. java-1.6.0-openjdk-1:1.6.0.0-6.1.13.3.el7_0.x86_64
  RHSA-2014:0907 Important/Sec. java-1.6.0-openjdk-1:1.6.0.0-6.1.13.4.el7_0.x86_64
  RHSA-2014:1634 Important/Sec. java-1.6.0-openjdk-1:1.6.0.33-1.13.5.0.el7_0.x86_64
  RHSA-2015:0085 Important/Sec. java-1.6.0-openjdk-1:1.6.0.34-1.13.6.1.el7_0.x86_64
  RHSA-2015:0808 Important/Sec. java-1.6.0-openjdk-1:1.6.0.35-1.13.7.1.el7_1.x86_64
  RHSA-2015:1526 Important/Sec. java-1.6.0-openjdk-1:1.6.0.36-1.13.8.1.el7_1.x86_64
  RHSA-2015:2086 Important/Sec. java-1.6.0-openjdk-1:1.6.0.37-1.13.9.4.el7_1.x86_64
  RHSA-2016:0067 Important/Sec. java-1.6.0-openjdk-1:1.6.0.38-1.13.10.0.el7_2.x86_64
  RHSA-2016:0723 Critical/Sec.  java-1.6.0-openjdk-1:1.6.0.39-1.13.11.0.el7_2.x86_64
  RHSA-2016:1776 Important/Sec. java-1.6.0-openjdk-1:1.6.0.40-1.13.12.5.el7_2.x86_64
updateinfo list done


So, that works!  Thank you!

Looking back at my opening comment, I see offered comparing the output of "yum updateinfo list all security | cut -d' ' -f2 | sort -u | wc -l" to the number of RHSAs once sees listed in RHN as an alternative test.  I now know that my "cut" command was wrong for the output, thus giving me such a lower number of RHSAs than what one could find on RHN.

Using:

  yum updateinfo list all security | \
    sed 's/.*\(RHSA-[0-9]*:[0-9]*\).*/\1/' | \
    sort -u | \
    wc -l

...results in a much closer number.

All-in-all, I think RHEL 7.3's yum fixes my initial problem and this ticket cat be closed after release.  Thanks!

Comment 5 Karel Srot 2016-11-21 08:01:38 UTC
Thank you for the update!