How to update Red Hat Lightspeed(Insights) Client Core manually?
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.
# insights-client --version Client: 3.1.1 Core: 3.5.0-1
Architecture Summary
-
The Insights Client consists of two pieces: the main RPM-installed executable that ships with RHEL (from here on, referred to as wrapper), and the updatable core module (from here on, referred to as egg).
-
Wrapper
The wrapper is the main entry point for the Insights Client. The wrapper's job is to initiate the phases, described later. For each phase, the wrapper iterates through the available eggs, and tries each in succession to perform a successful collection & upload. If an egg fails, the client will go on to try the next available egg. If all eggs fail, execution will halt. All possible eggs are described as follows, in the order in which they are tried:ENV_EGG - an egg specified by the environment variable EGG
NEW_EGG - newest available egg, if an update has been performed
STABLE_EGG - the last egg that performed a successful collection & upload
RPM_EGG - the default egg that ships with the RPM -
Egg
The egg is the bundle that contains the Insights Core module, which has all the main functionality in it. All the options/switches/config are passed through to the egg from the wrapper. The egg contains phase informationMore information:
-
System Information Collected by Red Hat Lightspeed(Insights)
How to view Insights-client core changelog
Impact of not using the latest version of egg file in the Insights client:
a: Miss new rules.
b: Hit false positives.
Steps to Update the Insights Core 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