This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.Chapter 4. Upgrading cluster logging
After upgrading the OpenShift Container Platform cluster from 4.1 to 4.2, you must then upgrade cluster logging from 4.1 to 4.2.
Because of a change in the default global catalog Namespace and Catalog Source, if you manaully created CatalogSourceConfig and Subscription objects from YAML files, as described by the Elasticsearch installation, you need to update these objects to point to the new catalog Namespace and Source before upgrading, as shown below.
4.1. Updating cluster logging Copy linkLink copied to clipboard!
After upgrading the OpenShift Container Platform cluster, you can upgrade cluster logging from 4.1 to 4.2 by updating the Elasticsearch Operator and the Cluster Logging Operator.
Prerequisites
- Upgrade cluster from 4.1 to 4.2.
Make sure the clusterlogging status is healthy:
-
All Pods are
ready
. - Elasticsearch cluster is healthy.
-
All Pods are
Procedure
Edit the CatalogSourceConfig (CSC) and Subscription objects to point to the new catalog Namespace and Cource:
From the CLI, get the name of the Elasticsearch CSC.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the file as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Change the current value to
redhat-operators
.
Get the name of the Elasticsearch Subscription object:
oc get sub
$ oc get sub NAME PACKAGE SOURCE CHANNEL elasticsearch-pj7pf elasticsearch-operator elasticsearch preview
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the file as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Upgrade the Elasticsearch Operator:
- From the web console, click Operator Management.
- Change the project to all projects.
- Click the Elasticsearch Operator, which has the same name as the Elasticsearch subscription.
-
Click Subscription
Channel. - In the Change Subscription Update Channel window, select 4.2 and click Save.
Wait for a few seconds, then click Operators
Installed Operators. The Elasticsearch Operator is shown as 4.2. For example:
Elasticsearch Operator 4.2.0-201909201915 provided by Red Hat, Inc
Elasticsearch Operator 4.2.0-201909201915 provided by Red Hat, Inc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Upgrade the Cluster Logging Operator:
- From the web console, click Operator Management.
- Change the project to all projects.
- Click the Cluster Logging Operator.
-
Click Subscription
Channel. - In the Change Subscription Update Channel window, select 4.2 and click Save.
Wait for a few seconds, then click Operators
Installed Operators. The Cluster Logging Operator is shown as 4.2. For example:
Cluster Logging 4.2.0-201909201915 provided by Red Hat, Inc
Cluster Logging 4.2.0-201909201915 provided by Red Hat, Inc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Check the logging components:
Ensure that the Elasticsearch Pods are using a 4.2 image:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that all Elasticsearch Pods are in the Ready status:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the Elasticsearch cluster is healthy:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the logging collector Pods are using a 4.2 image:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the Kibana Pods are using a 4.2 image:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the Curator CronJob is using a 4.2 image:
$ oc get CronJob curator -n openshift-logging -o yaml |grep 'image:'
$ $ oc get CronJob curator -n openshift-logging -o yaml |grep 'image:' image: registry.redhat.io/openshift4/ose-logging-curator5:v4.2.0-201909201915
Copy to Clipboard Copied! Toggle word wrap Toggle overflow