How to update Red Hat Lightspeed (Insights) Core Egg manually?

Updated

Insights Core

  • Insights Core is a data collection and analysis framework that is built for extensibility and rapid development. Included are a set of reusable components for gathering data in myriad ways and providing a reliable object model for commonly useful unstructured and semi-structured data.

Environment

  • Red Hat Enterprise Linux version 7.x
  • Red Hat Enterprise Linux version 8.x
  • Red Hat Enterprise Linux version 9.7 and earlier
  • Red Hat Enterprise Linux version 10.0 and 10.1

Issue

  • It’s reported that the Insights Core Egg version is older than the latest version.
  • How to update the Insights Core Egg to the latest version manually?

Insights Core Egg/RPM

From RHEL 9.8 and RHEL 10.2, Insights Core is shipped in RPM format with SELinux confinement. In RPM case, the Insights Core can be updated simply by running “dnf update insights-core” command.

For earlier versions of all RHEL 7.x, all RHEL 8.x, RHEL 9.0 ~ RHEL 9.7, RHEL 10.0 ~ RHEL 10.1, Insights Core Egg is still the only way to collect Insights archives.

Red Hat recommends that you always keep the Insights Core up-to-date to ensure that you could get the latest recommendations and bug fixes. Impact of not using the latest version of Insights Core:

Impact of not using the latest version of egg file in the Insights client:

 a: Miss new rules.
 b: Hit false positives. 

How to check the Insights Core version?

  # insights-client --version
  Client: 3.9.3
  Core: 3.7.4-1

How to check if Insights Core Egg is used?

If the following minimum version of RPM packages are installed, Insights Core RPM is used. Otherwise, Insights Core Egg is used.

  • RHEL 10.2

    • insights-client-3.10.3-1.el10
    • insights-core-3.7.4-1.el10
    • insights-core-selinux-3.7.4-1.el10
  • RHEL 9.8

    • insights-client-3.9.3-1.el9
    • insights-core-3.7.4-1.el9
    • insights-core-selinux-3.7.4-1.el10

If Insights Core Egg is used, generally, the Core Egg can be updated automatically every time when running or triggering the insights-client via command line or systemd timer.

Steps to Update the Insights Core Egg manually:

Note for Satellite Customers: Download the Egg and Signature file on Satellite/any WAN connected system then distribute those files on affected clients.
Note: Run the below commands as root.

  • Step1: Download Python Egg
# curl https://cloud.redhat.com/api/v1/static/release/insights-core.el`grep "VERSION_ID" /etc/os-release | cut -d"\"" -f2 | cut -d"." -f1`.egg > /var/lib/insights/last_stable.egg
  • Step2: Download Signature file
# curl https://cloud.redhat.com/api/v1/static/release/insights-core.el`grep "VERSION_ID" /etc/os-release | cut -d"\"" -f2 | cut -d"." -f1`.egg.asc > /var/lib/insights/last_stable.egg.asc
  • Step3: Verify the new version.
# insights-client --version 
SBR
Product(s)
Category
Article Type