Rolling back a hybrid deployment
Use these instructions to roll back version 1.6.7 of a hybrid deployment to version 1.6.6, using the Red Hat® OpenShift® Operator Lifecycle Manager (OLM) user interface (UI), or the command line.
Procedure
Roll back on-premises Operations Management
- Use of Installation Manager's rollback facility is not supported for rolling back the Netcool Hybrid Deployment Option Integration Kit. Use Installation Manager to uninstall the Netcool Hybrid Deployment Option Integration Kit and then install version 14.0.10 to work with Operations Management 1.6.6. For more information on installing the integration kit, see Installing the integration kit.
- Roll back on-premises Operations Management. Use Installation Manager to roll back on-premises Operations Management to version 1.6.6. For more information, see Roll back on-premises Netcool Operations Insight from 1.6.7 to 1.6.6.
Roll back cloud native Netcool Operations Insight components
-
If the version 1.6.7 deployment of
cloud native Netcool Operations Insight components was
upgraded from version 1.6.6 using airgap,
then before you rollback from version 1.6.7 to version
1.6.6 you
must set the image registry back to the version 1.6.6 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.7 airgap target
registry. Replace this value with the Netcool
Operations Insight
1.6.6 image
registry where the Netcool
Operations Insight
1.6.6
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.6 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
-
Edit the noi-operator deployment, and find the key-value pair for
OPERATOR_REPO. The value of this is set to the 1.6.7 airgap target
registry. Replace this value with the Netcool
Operations Insight
1.6.6 image
registry where the Netcool
Operations Insight
1.6.6
Passport Advantage® (PPA) package is uploaded,
for example
image-registry.openshift-image-registry.svc:5000/<namespace>.
- Rollback can be performed from the command line
and from the OLM UI. The process of rolling back involves downgrading the operator.
- To rollback from the command line, use:
oc edit noi
and change the version back to version 1.6.6. To rollback from the OLM UI, go to Operators > Installed Operators > NOI 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.6 and save the changes. - Downgrade the operator to 1.6.6 by running the
following commands.
The noi.v1.7.0 CSV is returned.oc get csv | grep noi
Get the subscription.oc delete csv noi.v1.7.0
The noi subscription is returned.oc get subscription
Delete the subscription.NAME PACKAGE SOURCE CHANNEL noi noi noi-catalogsource v1.11
oc delete subscription noi
- Reinstall the operator. Go to Operators > Operator Hub. select IBM Cloud Pak for Watson™ AIOps Event Manager and click Install. Verify that the operator restarts.
- To rollback from the command line, use:
-
Verify that the cronjob 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
- Delete the minio stateful set by running the following command:
oc get sts | grep <release name>-ibm-minio oc delete sts <minio sts name>