Package installation with remote execution is failing with error in Red Hat Satellite 6.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x.

Issue

  • Package installation with remote execution is failing with the below error.
Exception:
RuntimeError: Failed rendering template: error during rendering: ERF18-8334 [InputTemplateRenderer::RenderError]: Unsupported or no operating system found for this host.
  • OS information is missing from Hosts --> Content Hosts --> Content Host Properties

Root Cause

  • The OS of the content host is Oracle Linux.
  • RHEL is installed from a third-party repository and /etc/os-release file was installed from a non-rhel package.
  • Red Hat Satellite does not recognize any OS other than Red Hat Enterprise Linux.

Diagnostic Steps

  • Check the OS release version of the content host.
# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.7 (Maipo)
  • If redhat-release shows correct RHEL version check below information.
  • Check detail information of the OS release.
# cat /etc/os-release

NAME="Oracle Linux Server"
VERSION="7.7"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.7"
PRETTY_NAME="RHEL"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:7:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.7
ORACLE_SUPPORT_PRODUCT="oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION="7.7"
  • Verify from which package /etc/os-release is installed.
# rpm -qf /etc/os-release
oraclelinux-release-7.7-1.0.5.el7.x86_64

# yum list installed oraclelinux-release

Loaded plugins: product-id, search-disabled-repos, subscription-manager
Installed Packages
oraclelinux-releasex86_64                                               7:7.7-1.0.5.el7                                                @ol7_latest
  • We can also verify below facts.
# subscription-manager facts 

distribution.name: Oracle Linux Server
dmi.system.family: Not Specidfied
dmi.system.version:: none

For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues

SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.