Use these instructions to roll back from 1.6.6 of Netcool®
Operations Insight® to a previously
deployed 1.6.5, using the
Red Hat® OpenShift® Operator
Lifecycle Manager (OLM) user interface (UI), or the command line.
Before you begin
If you are attempting to roll back a failed upgrade, then the redis
pods may become stuck. If this occurs, then manually restart the redis pods with the following
command oc delete pod redis*.
Procedure
-
If Netcool
Operations Insight
1.6.5 was
upgraded to version 1.6.6 using airgap,
then, before you rollback from version 1.6.6 to 1.6.5, you must set
the image registry back to the 1.6.5 Docker image
repository. Otherwise the cem-operator and asm-operator pods
will fail with
ImagePullError errors.
-
Edit the noi-operator deployment, and find the key-value pair for
OPERATOR_REPO. The value of this is set to the 1.6.6 airgap target
registry. Replace this value with the Netcool
Operations Insight
1.6.5 image
registry where the Netcool
Operations Insight
1.6.5
Passport Advantage® (PPA) package is uploaded,
for example
image-registry.openshift-image-registry.svc:5000/<namespace>.
oc edit deploy noi-operator
-
If the Netcool
Operations Insight
1.6.5 image
registry is authenticated and requires a pull secret, then edit the noi-operator
serviceaccount and add this secret in the
imagePullSecrets section.
oc edit serviceaccount noi-operator
- Rollback can be performed from the command line or from the OLM
UI.
To rollback from the command line, use: oc edit noi and change the
version back to version 1.6.5.
To rollback from the OLM UI, navigate to and then select the Cloud Deployment tab if your deployment is
only on Red Hat OpenShift, or the
Hybrid Deployment tab if you have a hybrid deployment that is on Red Hat OpenShift and on-premises. Select
Edit NOI and then the YAML tab. Change the
version back to version 1.6.5 and save the
changes.
-
Verify that the cron job is recreated by running the
oc get
cronjob command.
Example
output:
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
noi-curator-pattern-metrics 0 0 * * * False 0 <none> 22m
noi-ibm-hdm-analytics-dev-policy-cleanup 0 0/12 * * * False 0 <none> 22m
noi-register-cnea-mgmt-artifact 1,*/5 * * * * False 0 2m24s 22m
- Obtain the metrics deployment by running the following command:
oc get deployment | grep -i metric