Info on Oracle Linux 7 Patching

Hi All,

I thought I would share the solution to issues we were seeing with the Oracle Linux 7 patching.

The problem was that we had some patches that would deploy fine and others that would fail.

When deploying “ELSA-2017-1615 - Oracle Linux kernel security and bug fix update - Oracle Linux 7 x86_64” it deployed successfully, but the patch “ELSA-2017-1308-1 - Oracle Linux ELSA-2017-1308-1 - kernel security, bug fix, and enhancement update - Oracle Linux 7 x86_64” failed. When “1615” was deployed, it made “1308-1” not relevant (fixed).
When deploying the 1308-1 patch, the following was generated in the EDRDeployData.log

[Wed Jul 5 15:23:14 MDT 2017] Install kernel-3.10.0-514.26.1.0.1.el7.x86_64 kernel-devel-3.10.0-514.26.1.0.1.el7.x86_64 kernel-headers-3.10.0-514.26.1.0.1.el7.x86_64 kernel-tools-3.10.0-514.26.1.0.1.el7.x86_64 kernel-tools-libs-3.10.0-514.26.1.0.1.el7.x86_64 perf-3.10.0-514.26.1.0.1.el7.x86_64 python-perf-3.10.0-514.26.1.0.1.el7.x86_64 :
[Wed Jul 5 15:23:17 MDT 2017] 17161502 Install Failure: yum -y install kernel-3.10.0-514.26.1.0.1.el7.x86_64 kernel-devel-3.10.0-514.26.1.0.1.el7.x86_64 kernel-headers-3.10.0-514.26.1.0.1.el7.x86_64 kernel-tools-3.10.0-514.26.1.0.1.el7.x86_64 kernel-tools-libs-3.10.0-514.26.1.0.1.el7.x86_64 perf-3.10.0-514.26.1.0.1.el7.x86_64 python-perf-3.10.0-514.26.1.0.1.el7.x86_64 - Error:
[Wed Jul 5 15:23:17 MDT 2017] 17161502 ____ Loaded plugins: langpacks, ulninfo No package kernel-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package kernel-devel-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package kernel-headers-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package kernel-tools-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package kernel-tools-libs-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package perf-3.10.0-514.26.1.0.1.el7.x86_64 available.
No package python-perf-3.10.0-514.26.1.0.1.el7.x86_64 available.
Error: Nothing to do

Googling these errors, I found this link https://community.oracle.com/thread/4054089

The reference is to RHCK fixes http://yum.oracle.com/repo/OracleLinux/OL7/MODRHCK/x86_64/index.html

I asked the Linux team to check the “/etc/yum.repos.d/public-yum-ol7.repo” file for the section “ol7_MODRHCK” and it did not exist. They added the following stanza and the issue was resolved.

[ol7_MODRHCK]
name=Latest RHCK with fixes from Oracle for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/MODRHCK/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
priority=20
enabled=1

I have seen some other patches that appear to be failing for the same reason.

This link shows a repo file with the reference to the repositories http://public-yum.oracle.com/public-yum-ol7.repo

Hopefully this can save some people a bit of troubleshooting.

Martin

1 Like