Restarting Redis

During a cluster reboot or possible network flux in the Red Hat® OpenShift® Container Platform environment, the Redis pods experience a deadlock and are unable to determine a leader pod. The pods appear with error Init:CrashLoopBackOff. IBM Security QRadar® Suite Software provides a method to restart RedisSentinal when pods are in a crash loop. The following action reinitializes the Redis instance.

Before you begin

Install the command-line interface (CLI) utility cpctl from the cp-serviceability pod. For more information, see Installing the cpctl utility.

About this task

The following table details the parameters that are required to run the command.

Table 1. reset_redis parameters
Name Flag Description
token --token The Red Hat OpenShift cluster admin token. The token can be generated when you are logged in as an admin user by running the oc whoami -t command.

Procedure

  1. To make sure that the list of available cpctl actions is up to date, enter the following command.
    cpctl load
    The cpctl load command retrieves all of the available actions that can be run on QRadar Suite Software. The actions are cached to your local environment.
  2. To restart the Redis instance, type the following command.
    cpctl remediation reset_redis --token "$(oc whoami -t)"