Upgrade playbook fails: "This system is receiving updates from RHN Classic or Red Hat Satellite"

Solution Verified - Updated -

Issue

Upgrade playbook fails with:

fatal: [server.example.com]: FAILED! => {"attempts": 2, "changed": true, "cmd": ["yum", "makecache"], "delta": "0:05:53.852248", "end": "2019-06-03 15:05:23.249103", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2019-06-03 14:59:29.396855", "stderr": "\n\n[Errno 2] No such file or directory: '/var/cache/yum/x86_64/7Server/rhel-x86_64-server-7/filelists.xml.gz'", "stderr_lines": ["", "", "[Errno 2] No such file or directory: '/var/cache/yum/x86_64/7Server/rhel-x86_64-server-7/filelists.xml.gz'"], "stdout": "Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,\n              : subscription-manager\nThis system is receiving updates from RHN Classic or Red Hat Satellite.", "stdout_lines": ["Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,", "              : subscription-manager", " **This system is receiving updates from RHN Classic or Red Hat Satellite."]}
fatal: [server.example.com]: FAILED! => {"attempts": 2, "changed": true, "cmd": ["yum", "makecache"], "delta": "0:05:21.737050", "end": "2019-06-03 15:05:25.364528", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2019-06-03 15:00:03.627478", "stderr": "\n\n[Errno 2] No such file or directory: '/var/cache/yum/x86_64/7Server/rhel-x86_64-server-7/filelists.xml.gz'", "stderr_lines": ["", "", "[Errno 2] No such file or directory: '/var/cache/yum/x86_64/7Server/rhel-x86_64-server-7/filelists.xml.gz'"], "stdout": "Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,\n              : subscription-manager\nThis system is receiving updates from RHN Classic or Red Hat Satellite.", "stdout_lines": ["Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,", "              : subscription-manager","This system is receiving updates from RHN Classic or Red Hat Satellite."]}

Running "yum repolist" on node hosts shows something like this:

Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
repo id                                   repo name                                                              status
rhel-7-fast-datapath-rpms/7Server/x86_64  Red Hat Enterprise Linux Fast Datapath (RHEL 7 Server) (RPMs)             189
rhel-7-server-ansible-2.4-rpms/x86_64     Red Hat Ansible Engine 2.4 RPMs for Red Hat Enterprise Linux 7 Server      23
rhel-7-server-extras-rpms/x86_64          Red Hat Enterprise Linux 7 Server - Extras (RPMs)                       1,105
rhel-7-server-ose-3.10-rpms/x86_64        Red Hat OpenShift Container Platform 3.10 (RPMs)                          831
rhel-7-server-rpms/7Server/x86_64         Red Hat Enterprise Linux 7 Server (RPMs)                               24,234
rhel-x86_64-server-7                      Red Hat Enterprise Linux Server (v. 7 for 64-bit x86_64)               24,222
rhn-tools-rhel-x86_64-server-7            RHN Tools for RHEL Server (v. 7 for x86_64)                               136
repolist: 50,757

The node host machine thinks it's getting updates from RHN Classic or Red Hat Satellite.

Environment

OpenShift Container Platform 3.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content