Uninstalling IBM Cloud Pak for AIOps on OpenShift
These instructions can be used to uninstall an online or offline (airgap) deployment of IBM Cloud Pak® for AIOps, and to clean up the resources that it created.
- Run the uninstall script
- (Optional) Delete the IBM Cloud Pak for AIOps catalog
- (Optional) Delete the Cert Manager
- (Optional) Delete the License Service
Before you begin
The Red Hat® OpenShift® Container Platform command line interface (oc
) must be installed on your Red Hat OpenShift cluster, and you must be logged in with oc login
.
1. Run the uninstall script
Download the uninstall and cleanup script from github.com/IBM .
You can configure the script to uninstall and clean up your IBM Cloud Pak for AIOps deployment. Details on how to configure the script are provided in the same location.
You can configure the script to remove specific components and resources. Remove the following resources only if you are sure that they are not used by other CloudPaks on your Red Hat OpenShift cluster, and you do not want to persist the data.
- Persistent Volume Claims (PVCs)
- shared components that are used by other Cloud Paks
Important: If the script appears to be stuck and 1.5 hours has elapsed, then contact IBM Support for assistance in safely cleaning up your environment. Do not manually delete resources.
Example output:
# ./uninstall-cp4waiops.sh -s
[INFO] Uninstall v2.0 for AIOPs v4.8
[INFO]
[INFO] This script will uninstall IBM Cloud Pak for AIOps.
[INFO] ##### Properties in uninstall-cp4waiops.props #####
[INFO]
[INFO] The script uninstall-cp4waiops.props has 'DELETE_ALL=true', hence the script will execute wih below values:
[INFO]
[INFO] CP4WAIOPS_PROJECT=cp4aiops
[INFO] INSTALLATION_NAME=ibm-cp-aiops
[INFO] DELETE_PVCS=true
[INFO] DELETE_CRDS=true
[INFO]
[INFO] ##### Properties in uninstall-cp4waiops.props #####
[INFO]
[INFO] Checking where operators are installed...
[INFO] Uninstalling AIOps from the namespace cp4aiops.
Using project "default" on server "https://api.o1-123456.cp.test.com:6443".
[INFO] Prereq checks passed. Starting uninstall of IBM Cloud Pak for AIOps ...
[INFO] Checking if user created instances are found...
error: the server doesn't have a resource type "kongs"
error: the server doesn't have a resource type "eventmanagergateways"
[INFO] No remaining user-created instances, proceeding ahead...
[INFO] Deleting all ConnectorConfigurations
[INFO] waiting for ConnectorComponent termination
No resources found
[INFO] Finished deleting ConnectorConfigurations
[INFO] Deleting the installation CR...
[INFO] Found installation CR ibm-cp-aiops to delete.
[INFO] Waiting for instances to be deleted. This will take a while....
installation.orchestrator.aiops.ibm.com "ibm-cp-aiops" deleted
[INFO] ibm-cp-aiops instance got deleted successfully!
[INFO] Checking if any additional installation resources found in the cluster.
No resources found
[INFO] No additional installation resources found in the cluster.
[INFO] Checking if operandrequests are all deleted
[INFO] Expected operandrequests got deleted successfully!
[INFO] Deleting the misc resources in cp4aiops
[INFO] Deleting resource rolebinding.authorization.openshift.io/example-redis..
[INFO] Deleting resource role.authorization.openshift.io/example-redis..
[INFO] Deleting resource role/cp4waiops-eventprocessor-eve-29ee-ep-role..
[INFO] Deleting resource rolebinding/cp4waiops-eventprocessor-eve-29ee-ep-role..
[INFO] Deleting resource rolebinding.rbac.authorization.k8s.io/cp4waiops-eventprocessor-eve-29ee-ep-rb..
[INFO] Deleting resource rolebinding.authorization.openshift.io/cp4waiops-eventprocessor-eve-29ee-ep-rb..
[INFO] Deleting resource networkpolicy.networking.k8s.io/c-example-redis-default-deny..
[INFO] Deleting resource secret/aiopsedge-client-cert..
secret "aiopsedge-client-cert" deleted
[INFO] Deleting resource priorityclass.scheduling.k8s.io/high-priority..
Warning: deleting cluster-scoped resources, not scoped to the provided namespace
[INFO] Deleting resource priorityclass.scheduling.k8s.io/aiops-topology-cassandra-priority..
Warning: deleting cluster-scoped resources, not scoped to the provided namespace
[INFO] Deleting resource issuers.cert-manager.io/aiops-flink-issuer..
[INFO] Deleting resource issuers.cert-manager.io/aiops-flink-ss-issuer..
[INFO] Deleting resource issuers.cert-manager.io/automationbase-sample-automationbase-ab-ss-issuer..
[INFO] Deleting resource priorityclass.scheduling.k8s.io/aimanager-aio-luigi-priority..
Warning: deleting cluster-scoped resources, not scoped to the provided namespace
[INFO] Deleting resource rolebinding/flink-role-binding..
rolebinding.rbac.authorization.k8s.io "flink-role-binding" deleted
[INFO] Deleting resource role/flink..
role.rbac.authorization.k8s.io "flink" deleted
[INFO] Deleting the Secure tunnel resources in cp4aiops
No resources found
No resources found
No resources found
[INFO] Finished deleting securetunnel resources
[INFO] Uninstalling the CP4AIOps operator...
[INFO] Deleting the subscription subscription.operators.coreos.com/ibm-aiops-orchestrator
subscription.operators.coreos.com "ibm-aiops-orchestrator" deleted
[INFO] Deleting the clusterserviceversion ibm-aiops-orchestrator.v0.1.0-202412021600
clusterserviceversion.operators.coreos.com "ibm-aiops-orchestrator.v0.1.0-202412021600" deleted
[INFO] Waiting for the deletion of all the ClusterServiceVersions ibm-aiops-orchestrator.v0.1.0-202412021600 for the subscription of the operator subscription.operators.coreos.com/ibm-aiops-orchestrator
[INFO] Deletion of all the ClusterServiceVersions ibm-aiops-orchestrator.v0.1.0-202412021600 for the subscription of the operator subscription.operators.coreos.com/ibm-aiops-orchestrator completed successfully.
[INFO] Deleting MISC certs in cp4aiops
[INFO] Deleting cert certificates.cert-manager.io/ibm-cp-aiops-edb-postgres-client-cert..
[INFO] Deleting cert certificates.cert-manager.io/ibm-cp-aiops-edb-postgres-server-cert..
[INFO] Deleting cert certificates.cert-manager.io/ibm-cp-aiops-edb-postgres-ss-ca..
[INFO] Deleting kafkatopics in cp4aiops
[INFO] Deleting kafkatopic with label ibmevents.ibm.com/cluster=iaf-system...
No resources found
[INFO] Deleting KafkaUser in cp4aiops
kafkauser.ibmevents.ibm.com "cp4waiops-cartridge-kafka-auth-0" deleted
[INFO] Deleting lease in cp4aiops
[INFO] Deleting lease lease.coordination.k8s.io/9efbc0e4.aiops.ibm.com..
lease.coordination.k8s.io "9efbc0e4.aiops.ibm.com" deleted
[INFO] Deleting lease lease.coordination.k8s.io/5ba58da1.ai.ir.aiops.ibm.com..
lease.coordination.k8s.io "5ba58da1.ai.ir.aiops.ibm.com" deleted
[INFO] Deleting lease lease.coordination.k8s.io/e1d7d41e.ibm.com..
lease.coordination.k8s.io "e1d7d41e.ibm.com" deleted
[INFO] Deleting lease lease.coordination.k8s.io/fc7f2af9.ibm.com..
lease.coordination.k8s.io "fc7f2af9.ibm.com" deleted
[INFO] Deleting lease lease.coordination.k8s.io/ff20eae3.connectors.aiops.ibm.com..
lease.coordination.k8s.io "ff20eae3.connectors.aiops.ibm.com" deleted
[INFO] Deleting lease lease.coordination.k8s.io/aiopsedge-connector-manager..
lease.coordination.k8s.io "aiopsedge-connector-manager" deleted
[INFO] Deleting internal configmaps in cp4aiops
[INFO] Deleting configmap configmap/ff20eae3.connectors.aiops.ibm.com..
[INFO] Deleting configmap configmap/aiopsedge-maven-settings..
[INFO] Deleting configmap configmap/aiops-topology-cassandra-bootstrap-config..
configmap "aiops-topology-cassandra-bootstrap-config" deleted
[INFO] Deleting configmap configmap/cloud-native-postgresql-image-list..
configmap "cloud-native-postgresql-image-list" deleted
Error from server (NotFound): configmaps "aiops-custom-size-profile" not found
[INFO] Delete EDB Connection Secret
Error from server (NotFound): secrets "ibm-cp-aiops-edb-secret" not found
[INFO] Delete EDB Cert related resources
secret "ibm-cp-aiops-edb-postgres-client-cert" deleted
secret "ibm-cp-aiops-edb-postgres-server-cert" deleted
secret "ibm-cp-aiops-edb-postgres-ss-cacert" deleted
Error from server (NotFound): certificaterequests.cert-manager.io "ibm-cp-aiops-edb-postgres-client-cert-1" not found
Error from server (NotFound): certificaterequests.cert-manager.io "ibm-cp-aiops-edb-postgres-server-cert-1" not found
Error from server (NotFound): certificaterequests.cert-manager.io "ibm-cp-aiops-edb-postgres-ss-ca-1" not found
Error from server (NotFound): certificates.cert-manager.io "ibm-cp-aiops-edb-postgres-client-cert" not found
Error from server (NotFound): certificates.cert-manager.io "ibm-cp-aiops-edb-postgres-server-cert" not found
Error from server (NotFound): certificates.cert-manager.io "ibm-cp-aiops-edb-postgres-ss-ca" not found
[INFO] Delete EDB secrets
secret "postgresql-operator-controller-manager-config" deleted
[INFO] Delete Redis resources in Namespace
serviceaccount "ibm-redis-cp-operator-serviceaccount" deleted
lease.coordination.k8s.io "ibm-redis-cp-operator" deleted
Error from server (NotFound): configmaps "ibm-redis-cp-operator" not found
[INFO] Delete Redis Secrets
secret "ibm-cp-aiops-redis-client-cert" deleted
secret "ibm-cp-aiops-redis-server-cert" deleted
secret "ibm-cp-aiops-redis-ss-cacert" deleted
[INFO] Delete Leftover Redis Roles and Role Bindings
role.rbac.authorization.k8s.io "ibm-redis-cp.v1.2.2-ibm--1xwwhWRXYx3Q8jcfUvhXuvyC9A7m8nzINg0QTA" deleted
rolebinding.rbac.authorization.k8s.io "ibm-redis-cp.v1.2.2-ibm--1xwwhWRXYx3Q8jcfUvhXuvyC9A7m8nzINg0QTA" deleted
[INFO] Deleting Internal PVCs in cp4aiops
[INFO] Deleting PVCs with label app=cassandra..
persistentvolumeclaim "back-aiops-topology-cassandra-0" deleted
persistentvolumeclaim "data-aiops-topology-cassandra-0" deleted
[INFO] Deleting PVCs with label formation_type=redis..
No resources found
[INFO] Deleting PVCs with label app.kubernetes.io/component=ep..
No resources found
[INFO] Deleting PVCs in cp4aiops
[INFO] Deleting PVCs with label app.kubernetes.io/instance=aimanager..
persistentvolumeclaim "export-aimanager-ibm-minio-0" deleted
[INFO] Deleting PVCs with label app.kubernetes.io/instance=example-couchdbcluster..
No resources found
[INFO] Deleting PVCs with label app.kubernetes.io/managed-by=ir-core-operator..
persistentvolumeclaim "data-c-example-couchdbcluster-m-0" deleted
[INFO] Deleting PVCs with label app.kubernetes.io/managed-by=ibm-elastic-operator..
No resources found
[INFO] Deleting PVCs with label app.kubernetes.io/managed-by=ibm-elasticsearch..
persistentvolumeclaim "data-aiops-ibm-elasticsearch-es-server-all-0" deleted
[INFO] Deleting Linked secrets in cp4aiops
[INFO] Deleting Linked secrets to some PVC's with name secret/aimanager-ca-certificate-secret..
[INFO] Deleting Linked secrets to some PVC's with name secret/aimanager-certificate-secret..
secret "aimanager-certificate-secret" deleted
[INFO] Deleting Linked secrets to some PVC's with name secret/aiops-ir-core-model-secret..
secret "aiops-ir-core-model-secret" deleted
[INFO] Deleting Linked secrets to some PVC's with name secret/aiops-ir-core-omni-secret..
secret "aiops-ir-core-omni-secret" deleted
[INFO] Deleting Linked secrets to some PVC's with name secret/kafka-truststore..
[INFO] Deleting Linked secrets to some PVC's with name secret/aiops-topology-asm-iafelastic-ca..
[INFO] Deleting Linked secrets to some PVC's with name secret/aiops-topology-asm-iafkafka-ca..
[INFO] Deleting Linked secrets to some PVC's with name secret/aiops-metrics-processor..
[INFO] Deleting Linked secrets to some PVC's with name secret/iaf-system-cluster-ca..
secret "iaf-system-cluster-ca" deleted
[INFO] Deleting Linked secrets to some PVC's with name secret/iaf-system-cluster-ca-cert..
secret "iaf-system-cluster-ca-cert" deleted
[INFO] Deleting internal secret secret/aiopsedgeca-cert-secret..
secret "aiopsedgeca-cert-secret" deleted
[INFO] Deleting internal secret secret/aiops-topology-cassandra-cert-manager-ca..
secret "aiops-topology-cassandra-cert-manager-ca" deleted
[INFO] Deleting internal secret secret/automationbase-sample-automationbase-ab-ss-ca..
secret "automationbase-sample-automationbase-ab-ss-ca" deleted
[INFO] Deleting internal secret secret/iaf-system-elasticsearch-es-client-cert-kp..
[INFO] Deleting internal secret secret/iaf-system-elasticsearch-es-ss-cacert-kp..
[INFO] Deleting internal secret secret/connector-bridge-cert-secret..
secret "connector-bridge-cert-secret" deleted
[INFO] Deleting internal secret secret/aiops-appconnect-ir-secret..
secret "aiops-appconnect-ir-secret" deleted
[INFO] Deleting internal secret secret/cp4waiops-cartridge-es-auth..
secret "cp4waiops-cartridge-es-auth" deleted
[INFO] Deleting internal secret with label release=aiops-topology..
secret "aiops-topology-cassandra-auth-secret" deleted
[INFO] Deleting the serviceaccounts in cp4aiops
[INFO] Deleting serviceaccounts serviceaccount/cp4waiops-eventprocessor-eve-29ee-ep..
[INFO] Deleting serviceaccounts serviceaccount/flink..
serviceaccount "flink" deleted
[INFO] Deleting serviceaccounts serviceaccount/postgresql-operator-manager..
serviceaccount "postgresql-operator-manager" deleted
namespace/cp4aiops annotated
[INFO] Finding if IBM Cloud Pak Foundational Services is Namespaced or Global
[INFO] IBM Cloud Pak Foundational Services: Namespaced Scope
[INFO] Starting uninstall of IBM Cloud Pak Foundational Services components
[INFO] Delete ZenService related resources
[INFO] Checking for ZenClient
NAME AGE
zenclient-cp4aiops 78m
[INFO] Deleting ZenClient found
client.oidc.security.ibm.com/zenclient-cp4aiops patched
Error from server (NotFound): clients.oidc.security.ibm.com "zenclient-cp4aiops" not found
[INFO] Delete zen setup-job
Delete Zen Service Account
serviceaccount "ibm-zen-operator-serviceaccount" deleted
[INFO] Delete Zen secrets
secret "ibm-zen-objectstore-cert" deleted
secret "zen-metastore-edb-replica-client" deleted
secret "zen-metastore-edb-server" deleted
No resources found
commonservice.operator.ibm.com "common-service" deleted
commonservice.operator.ibm.com "im-common-service" deleted
Uninstall CPFS
[INFO] Deleting the subscription subscription.operators.coreos.com/aiops-ibm-common-services
subscription.operators.coreos.com "aiops-ibm-common-services" deleted
[INFO] Deleting the clusterserviceversion ibm-common-service-operator.v4.6.8
clusterserviceversion.operators.coreos.com "ibm-common-service-operator.v4.6.8" deleted
[INFO] Waiting for the deletion of all the ClusterServiceVersions ibm-common-service-operator.v4.6.8 for the subscription of the operator subscription.operators.coreos.com/aiops-ibm-common-services
[INFO] Deletion of all the ClusterServiceVersions ibm-common-service-operator.v4.6.8 for the subscription of the operator subscription.operators.coreos.com/aiops-ibm-common-services completed successfully.
[INFO] Checking if operandrequests are all deleted
[INFO] Expected operandrequests got deleted successfully!
Check for operandconfigs to delete
operandconfig.operator.ibm.com "common-service" deleted
Check for operandregistries
operandregistry.operator.ibm.com "common-service" deleted
Uninstall ODLM
[INFO] Deleting the subscription subscription.operators.coreos.com/operand-deployment-lifecycle-manager-app
subscription.operators.coreos.com "operand-deployment-lifecycle-manager-app" deleted
[INFO] Deleting the clusterserviceversion operand-deployment-lifecycle-manager.v4.3.7
clusterserviceversion.operators.coreos.com "operand-deployment-lifecycle-manager.v4.3.7" deleted
[INFO] Waiting for the deletion of all the ClusterServiceVersions operand-deployment-lifecycle-manager.v4.3.7 for the subscription of the operator subscription.operators.coreos.com/operand-deployment-lifecycle-manager-app
[INFO] Deletion of all the ClusterServiceVersions operand-deployment-lifecycle-manager.v4.3.7 for the subscription of the operator subscription.operators.coreos.com/operand-deployment-lifecycle-manager-app completed successfully.
service "meta-api-svc" deleted
Warning: deleting cluster-scoped resources, not scoped to the provided namespace
[INFO] Deleting ValidatingWebhookConfiguration
configmap "common-service-maps" deleted
[INFO] Checking is namespace cs-control exists
[INFO] Cleaning up IBM Cert Manager from cs-control namespace
[WARNING] The subscription for the operator with label operators.coreos.com/ibm-cert-manager-operator.cs-control does not exist in cs-control, skipping unsubscription.
[INFO] Cleaning up IBM Namespace Scope Operator from cs-control namespace
error: the server doesn't have a resource type "namespacescopes"
[WARNING] The subscription for the operator with label operators.coreos.com/ibm-namespace-scope-operator.cs-control does not exist in cs-control, skipping unsubscription.
Error from server (NotFound): namespaces "cs-control" not found
[INFO] Checking for CPFS custom resources
[INFO] Resource Check Attempt: 1
authentications.operator.ibm.com
No resources found
None Found
clients.oidc.security.ibm.com
No resources found
None Found
commonservices.operator.ibm.com
No resources found
None Found
commonwebuis.operators.ibm.com
No resources found
None Found
kafkamirrormaker2s.ibmevents.ibm.com
No resources found
None Found
kafkamirrormakers.ibmevents.ibm.com
No resources found
None Found
kafkas.ibmevents.ibm.com
NAMESPACE NAME DESIRED KAFKA REPLICAS DESIRED ZK REPLICAS READY WARNINGS
cp4aiops iaf-system 1 1 True
kafkatopics.ibmevents.ibm.com
No resources found
None Found
kafkausers.ibmevents.ibm.com
No resources found
None Found
navconfigurations.foundation.ibm.com
No resources found
None Found
operandbindinfos.operator.ibm.com
No resources found
None Found
operandconfigs.operator.ibm.com
No resources found
None Found
operandregistries.operator.ibm.com
No resources found
None Found
operandrequests.operator.ibm.com
No resources found
None Found
switcheritems.operators.ibm.com
No resources found
None Found
zenservices.zen.cpd.ibm.com
No resources found
None Found
strimzipodsets.core.ibmevents.ibm.com
NAMESPACE NAME PODS READY PODS CURRENT PODS AGE
cp4aiops iaf-system-kafka 1 1 1 118m
cp4aiops iaf-system-zookeeper 1 1 1 119m
zenextensions.zen.cpd.ibm.com
No resources found
None Found
CustomResources found... Trying again in 30 seconds.
[INFO] Resource Check Attempt: 2
authentications.operator.ibm.com
No resources found
None Found
clients.oidc.security.ibm.com
No resources found
None Found
commonservices.operator.ibm.com
No resources found
None Found
commonwebuis.operators.ibm.com
No resources found
None Found
kafkamirrormaker2s.ibmevents.ibm.com
No resources found
None Found
kafkamirrormakers.ibmevents.ibm.com
No resources found
None Found
kafkas.ibmevents.ibm.com
NAMESPACE NAME DESIRED KAFKA REPLICAS DESIRED ZK REPLICAS READY WARNINGS
cp4aiops iaf-system 1 1 True
kafkatopics.ibmevents.ibm.com
No resources found
None Found
kafkausers.ibmevents.ibm.com
No resources found
None Found
navconfigurations.foundation.ibm.com
No resources found
None Found
operandbindinfos.operator.ibm.com
No resources found
None Found
operandconfigs.operator.ibm.com
No resources found
None Found
operandregistries.operator.ibm.com
No resources found
None Found
operandrequests.operator.ibm.com
No resources found
None Found
switcheritems.operators.ibm.com
No resources found
None Found
zenservices.zen.cpd.ibm.com
No resources found
None Found
strimzipodsets.core.ibmevents.ibm.com
NAMESPACE NAME PODS READY PODS CURRENT PODS AGE
cp4aiops iaf-system-kafka 1 1 1 119m
cp4aiops iaf-system-zookeeper 1 1 1 119m
zenextensions.zen.cpd.ibm.com
No resources found
None Found
CustomResources found... Trying again in 30 seconds.
[INFO] Resource Check Attempt: 3
authentications.operator.ibm.com
No resources found
None Found
clients.oidc.security.ibm.com
No resources found
None Found
commonservices.operator.ibm.com
No resources found
None Found
commonwebuis.operators.ibm.com
No resources found
None Found
kafkamirrormaker2s.ibmevents.ibm.com
No resources found
None Found
kafkamirrormakers.ibmevents.ibm.com
No resources found
None Found
kafkas.ibmevents.ibm.com
NAMESPACE NAME DESIRED KAFKA REPLICAS DESIRED ZK REPLICAS READY WARNINGS
cp4aiops iaf-system 1 1 True
kafkatopics.ibmevents.ibm.com
No resources found
None Found
kafkausers.ibmevents.ibm.com
No resources found
None Found
navconfigurations.foundation.ibm.com
No resources found
None Found
operandbindinfos.operator.ibm.com
No resources found
None Found
operandconfigs.operator.ibm.com
No resources found
None Found
operandregistries.operator.ibm.com
No resources found
None Found
operandrequests.operator.ibm.com
No resources found
None Found
switcheritems.operators.ibm.com
No resources found
None Found
zenservices.zen.cpd.ibm.com
No resources found
None Found
strimzipodsets.core.ibmevents.ibm.com
NAMESPACE NAME PODS READY PODS CURRENT PODS AGE
cp4aiops iaf-system-kafka 1 1 1 120m
cp4aiops iaf-system-zookeeper 1 1 1 120m
zenextensions.zen.cpd.ibm.com
No resources found
None Found
CustomResources found... Trying again in 30 seconds.
[INFO] Resource Check Attempt: 4
authentications.operator.ibm.com
No resources found
None Found
clients.oidc.security.ibm.com
No resources found
None Found
commonservices.operator.ibm.com
No resources found
None Found
commonwebuis.operators.ibm.com
No resources found
None Found
kafkamirrormaker2s.ibmevents.ibm.com
No resources found
None Found
kafkamirrormakers.ibmevents.ibm.com
No resources found
None Found
kafkas.ibmevents.ibm.com
NAMESPACE NAME DESIRED KAFKA REPLICAS DESIRED ZK REPLICAS READY WARNINGS
cp4aiops iaf-system 1 1 True
kafkatopics.ibmevents.ibm.com
No resources found
None Found
kafkausers.ibmevents.ibm.com
No resources found
None Found
navconfigurations.foundation.ibm.com
No resources found
None Found
operandbindinfos.operator.ibm.com
No resources found
None Found
operandconfigs.operator.ibm.com
No resources found
None Found
operandregistries.operator.ibm.com
No resources found
None Found
operandrequests.operator.ibm.com
No resources found
None Found
switcheritems.operators.ibm.com
No resources found
None Found
zenservices.zen.cpd.ibm.com
No resources found
None Found
strimzipodsets.core.ibmevents.ibm.com
NAMESPACE NAME PODS READY PODS CURRENT PODS AGE
cp4aiops iaf-system-kafka 1 1 1 121m
cp4aiops iaf-system-zookeeper 1 1 1 121m
zenextensions.zen.cpd.ibm.com
No resources found
None Found
CustomResources found... Trying again in 30 seconds.
Deleting CPFS CRDS
[INFO] Deleting CRD authentications.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "authentications.operator.ibm.com" deleted
[INFO] Deleting CRD clients.oidc.security.ibm.com..
customresourcedefinition.apiextensions.k8s.io "clients.oidc.security.ibm.com" deleted
[INFO] Deleting CRD commonservices.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "commonservices.operator.ibm.com" deleted
[INFO] Deleting CRD commonwebuis.operators.ibm.com..
customresourcedefinition.apiextensions.k8s.io "commonwebuis.operators.ibm.com" deleted
[INFO] Deleting CRD kafkamirrormaker2s.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "kafkamirrormaker2s.ibmevents.ibm.com" deleted
[INFO] Deleting CRD kafkamirrormakers.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "kafkamirrormakers.ibmevents.ibm.com" deleted
[INFO] Deleting CRD kafkas.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "kafkas.ibmevents.ibm.com" deleted
[INFO] Deleting CRD kafkatopics.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "kafkatopics.ibmevents.ibm.com" deleted
[INFO] Deleting CRD kafkausers.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "kafkausers.ibmevents.ibm.com" deleted
[INFO] Deleting CRD navconfigurations.foundation.ibm.com..
customresourcedefinition.apiextensions.k8s.io "navconfigurations.foundation.ibm.com" deleted
[INFO] Deleting CRD operandbindinfos.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "operandbindinfos.operator.ibm.com" deleted
[INFO] Deleting CRD operandconfigs.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "operandconfigs.operator.ibm.com" deleted
[INFO] Deleting CRD operandregistries.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "operandregistries.operator.ibm.com" deleted
[INFO] Deleting CRD operandrequests.operator.ibm.com..
customresourcedefinition.apiextensions.k8s.io "operandrequests.operator.ibm.com" deleted
[INFO] Deleting CRD switcheritems.operators.ibm.com..
customresourcedefinition.apiextensions.k8s.io "switcheritems.operators.ibm.com" deleted
[INFO] Deleting CRD zenservices.zen.cpd.ibm.com..
customresourcedefinition.apiextensions.k8s.io "zenservices.zen.cpd.ibm.com" deleted
[INFO] Deleting CRD strimzipodsets.core.ibmevents.ibm.com..
customresourcedefinition.apiextensions.k8s.io "strimzipodsets.core.ibmevents.ibm.com" deleted
[INFO] Deleting CRD zenextensions.zen.cpd.ibm.com..
customresourcedefinition.apiextensions.k8s.io "zenextensions.zen.cpd.ibm.com" deleted
[INFO] Checking for Bedrock resources
[INFO] Resource Check Attempt: 1
authentications.operator.ibm.com
error: the server doesn't have a resource type "authentications"
None Found
clients.oidc.security.ibm.com
error: the server doesn't have a resource type "clients"
None Found
commonservices.operator.ibm.com
error: the server doesn't have a resource type "commonservices"
None Found
commonwebuis.operators.ibm.com
error: the server doesn't have a resource type "commonwebuis"
None Found
kafkamirrormaker2s.ibmevents.ibm.com
error: the server doesn't have a resource type "kafkamirrormaker2s"
None Found
kafkamirrormakers.ibmevents.ibm.com
error: the server doesn't have a resource type "kafkamirrormakers"
None Found
kafkas.ibmevents.ibm.com
error: the server doesn't have a resource type "kafkas"
None Found
kafkatopics.ibmevents.ibm.com
error: the server doesn't have a resource type "kafkatopics"
None Found
kafkausers.ibmevents.ibm.com
error: the server doesn't have a resource type "kafkausers"
None Found
navconfigurations.foundation.ibm.com
error: the server doesn't have a resource type "navconfigurations"
None Found
operandbindinfos.operator.ibm.com
error: the server doesn't have a resource type "operandbindinfos"
None Found
operandconfigs.operator.ibm.com
error: the server doesn't have a resource type "operandconfigs"
None Found
operandregistries.operator.ibm.com
error: the server doesn't have a resource type "operandregistries"
None Found
operandrequests.operator.ibm.com
error: the server doesn't have a resource type "operandrequests"
None Found
switcheritems.operators.ibm.com
error: the server doesn't have a resource type "switcheritems"
None Found
zenservices.zen.cpd.ibm.com
error: the server doesn't have a resource type "zenservices"
None Found
strimzipodsets.core.ibmevents.ibm.com
error: the server doesn't have a resource type "strimzipodsets"
None Found
zenextensions.zen.cpd.ibm.com
error: the server doesn't have a resource type "zenextensions"
None Found
[INFO] Delete MISC IAM ConfigMap and Role/Rolebinding
configmap "cs-keycloak-theme" deleted
[INFO] Delete role and rolebinding
Error from server (NotFound): rolebindings.rbac.authorization.k8s.io "leader-election-rolebinding" not found
Error from server (NotFound): roles.rbac.authorization.k8s.io "leader-election-role" not found
[INFO] Deleting CPFS leases in cp4aiops
[INFO] Deleting lease lease.coordination.k8s.io/2133ec8b.automation.ibm.com..
[INFO] Deleting lease lease.coordination.k8s.io/ibmevents-cluster-operator..
lease.coordination.k8s.io "ibmevents-cluster-operator" deleted
[INFO] Deleting lease lease.coordination.k8s.io/db9c8771.k8s.enterprisedb.io..
lease.coordination.k8s.io "db9c8771.k8s.enterprisedb.io" deleted
[INFO] Deleting CPFS configmaps in cp4aiops
[INFO] Deleting configmap configmap/ibm-cpp-config..
configmap "ibm-cpp-config" deleted
[INFO] Deleting configmap configmap/namespace-scope..
configmap "namespace-scope" deleted
[INFO] Deleting CPFS PVCs in cp4aiops
[INFO] Deleting PVC app.kubernetes.io/instance=iaf-system..
persistentvolumeclaim "data-iaf-system-kafka-0" deleted
persistentvolumeclaim "data-iaf-system-zookeeper-0" deleted
[INFO] Deleting PVC app=icp-mongodb..
No resources found
[INFO] Deleting Namespaced Bedrock Secrets
secret "platform-identity-management" deleted
secret "internal-tls-pkcs12" deleted
secret "identity-provider-secret" deleted
[INFO] Deleting Certmanager Resources
issuer.cert-manager.io "cs-ss-issuer" deleted
issuer.cert-manager.io "cs-ca-issuer" deleted
[INFO] Deleting certificate cs-ca-certificate in Installation Namespace
certificate.cert-manager.io "cs-ca-certificate" deleted
secret "cs-ca-certificate-secret" deleted
[INFO] Deleting other cert manager secrets in AIOPS install namespace
No resources found
lease.coordination.k8s.io "2a3e2c5f.ibm.com" deleted
[INFO] Checking for CP4AIOPS custom resources
[INFO] Resource Check Attempt: 1
aimanagermainprods.ai-manager.watson-aiops.ibm.com
No resources found
None Found
aimanagers.ai-manager.watson-aiops.ibm.com
No resources found
None Found
aimodeluis.consoleui.aiops.ibm.com
No resources found
None Found
aiopskafkatopics.connectors.aiops.ibm.com
No resources found
None Found
algorithms.ai-manager.watson-aiops.ibm.com
No resources found
None Found
applicationmanageragents.aiops.ibm.com
error: the server doesn't have a resource type "applicationmanageragents"
None Found
applicationmanagers.aiops.ibm.com
error: the server doesn't have a resource type "applicationmanagers"
None Found
applicationuis.consoleui.aiops.ibm.com
error: the server doesn't have a resource type "applicationuis"
None Found
baseuis.consoleui.aiops.ibm.com
No resources found
None Found
connectoruis.consoleui.aiops.ibm.com
No resources found
None Found
eventmanagergateways.ai-manager.watson-aiops.ibm.com
error: the server doesn't have a resource type "eventmanagergateways"
None Found
installations.orchestrator.aiops.ibm.com
No resources found
None Found
aiopsanalyticsorchestrators.ai.ir.aiops.ibm.com
No resources found
None Found
aiopsedges.connectors.aiops.ibm.com
No resources found
None Found
aiopsuis.consoleui.aiops.ibm.com
No resources found
None Found
automationactions.connectors.aiops.ibm.com
No resources found
None Found
bundlemanifests.connectors.aiops.ibm.com
No resources found
None Found
bundlemanifests.cp4waiops.management.ibm.com
error: the server doesn't have a resource type "bundlemanifests"
None Found
connectorcomponents.connectors.aiops.ibm.com
No resources found
None Found
connectorconfigurations.connectors.aiops.ibm.com
No resources found
None Found
connectorschemas.connectors.aiops.ibm.com
No resources found
None Found
dashboarduis.consoleui.aiops.ibm.com
error: the server doesn't have a resource type "dashboarduis"
None Found
gitapps.connectors.aiops.ibm.com
No resources found
None Found
insightsuis.consoleui.aiops.ibm.com
No resources found
None Found
issueresolutioncores.core.ir.aiops.ibm.com
No resources found
None Found
lifecycleservices.lifecycle.ir.aiops.ibm.com
No resources found
None Found
lifecycletriggers.lifecycle.ir.aiops.ibm.com
No resources found
None Found
modeltrains.modeltrain.ibm.com
error: the server doesn't have a resource type "modeltrains"
None Found
microedgeconfigurations.connectors.aiops.ibm.com
No resources found
None Found
flinkclusters.flink.automation.ibm.com
error: the server doesn't have a resource type "flinkclusters"
None Found
flinkdeployments.flink.ibm.com
No resources found
None Found
flinksessionjobs.flink.ibm.com
No resources found
None Found
[INFO] CRDs from CP4AIOPS are safe to be deleted
[INFO] Deleting the CP4AIOps Internal CRDs...
[INFO] Deleting CRD aimanagermainprods.ai-manager.watson-aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aimanagermainprods.ai-manager.watson-aiops.ibm.com" deleted
[INFO] Deleting CRD aimanagers.ai-manager.watson-aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aimanagers.ai-manager.watson-aiops.ibm.com" deleted
[INFO] Deleting CRD aimodeluis.consoleui.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aimodeluis.consoleui.aiops.ibm.com" deleted
[INFO] Deleting CRD aiopskafkatopics.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aiopskafkatopics.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD algorithms.ai-manager.watson-aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "algorithms.ai-manager.watson-aiops.ibm.com" deleted
[INFO] Deleting CRD applicationmanageragents.aiops.ibm.com..
[INFO] Deleting CRD applicationmanagers.aiops.ibm.com..
[INFO] Deleting CRD applicationuis.consoleui.aiops.ibm.com..
[INFO] Deleting CRD baseuis.consoleui.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "baseuis.consoleui.aiops.ibm.com" deleted
[INFO] Deleting CRD connectoruis.consoleui.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "connectoruis.consoleui.aiops.ibm.com" deleted
[INFO] Deleting CRD eventmanagergateways.ai-manager.watson-aiops.ibm.com..
[INFO] Deleting CRD installations.orchestrator.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "installations.orchestrator.aiops.ibm.com" deleted
[INFO] Deleting CRD aiopsanalyticsorchestrators.ai.ir.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aiopsanalyticsorchestrators.ai.ir.aiops.ibm.com" deleted
[INFO] Deleting CRD aiopsedges.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aiopsedges.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD aiopsuis.consoleui.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "aiopsuis.consoleui.aiops.ibm.com" deleted
[INFO] Deleting CRD automationactions.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "automationactions.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD bundlemanifests.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "bundlemanifests.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD bundlemanifests.cp4waiops.management.ibm.com..
[INFO] Deleting CRD connectorcomponents.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "connectorcomponents.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD connectorconfigurations.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "connectorconfigurations.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD connectorschemas.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "connectorschemas.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD dashboarduis.consoleui.aiops.ibm.com..
[INFO] Deleting CRD gitapps.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "gitapps.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD insightsuis.consoleui.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "insightsuis.consoleui.aiops.ibm.com" deleted
[INFO] Deleting CRD issueresolutioncores.core.ir.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "issueresolutioncores.core.ir.aiops.ibm.com" deleted
[INFO] Deleting CRD lifecycleservices.lifecycle.ir.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "lifecycleservices.lifecycle.ir.aiops.ibm.com" deleted
[INFO] Deleting CRD lifecycletriggers.lifecycle.ir.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "lifecycletriggers.lifecycle.ir.aiops.ibm.com" deleted
[INFO] Deleting CRD modeltrains.modeltrain.ibm.com..
[INFO] Deleting CRD microedgeconfigurations.connectors.aiops.ibm.com..
customresourcedefinition.apiextensions.k8s.io "microedgeconfigurations.connectors.aiops.ibm.com" deleted
[INFO] Deleting CRD flinkclusters.flink.automation.ibm.com..
[INFO] Deleting CRD flinkdeployments.flink.ibm.com..
customresourcedefinition.apiextensions.k8s.io "flinkdeployments.flink.ibm.com" deleted
[INFO] Deleting CRD flinksessionjobs.flink.ibm.com..
customresourcedefinition.apiextensions.k8s.io "flinksessionjobs.flink.ibm.com" deleted
[INFO] Checking for CP4AIOPS Dependent custom resources
[INFO] Resource Check Attempt: 1
elasticsearchclusters.elasticsearch.opencontent.ibm.com
No resources found
None Found
rediscps.redis.ibm.com
No resources found
None Found
applications.tunnel.management.ibm.com
error: the server doesn't have a resource type "applications"
None Found
tunnels.sretooling.management.ibm.com
No resources found
None Found
[INFO] CRDs from CP4AIOPS Dependent are safe to be deleted
[INFO] Deleting the CP4AIops Dependent CRDs...
[INFO] Deleting CRD elasticsearchclusters.elasticsearch.opencontent.ibm.com..
customresourcedefinition.apiextensions.k8s.io "elasticsearchclusters.elasticsearch.opencontent.ibm.com" deleted
[INFO] Deleting CRD rediscps.redis.ibm.com..
customresourcedefinition.apiextensions.k8s.io "rediscps.redis.ibm.com" deleted
[INFO] Deleting CRD applications.tunnel.management.ibm.com..
[INFO] Deleting CRD tunnels.sretooling.management.ibm.com..
customresourcedefinition.apiextensions.k8s.io "tunnels.sretooling.management.ibm.com" deleted
No resources found
No resources found
[INFO] Checking if any additional ASM resources are on the cluster.
No resources found
No resources found
[INFO] No ASM resource instances were found outside the cp4aiops namespace, so the ASM CRDs can be deleted.
[INFO] Checking for ASM custom resources
[INFO] Resource Check Attempt: 1
asmformations.asm.ibm.com
No resources found
None Found
asms.asm.ibm.com
No resources found
None Found
[INFO] CRDs from ASM are safe to be deleted
[INFO] Deleting ASM CRDs...
[INFO] Deleting CRD asmformations.asm.ibm.com..
customresourcedefinition.apiextensions.k8s.io "asmformations.asm.ibm.com" deleted
[INFO] Deleting CRD asms.asm.ibm.com..
customresourcedefinition.apiextensions.k8s.io "asms.asm.ibm.com" deleted
[SUCCESS] ----Congratulations! IBM Cloud Pak for AIOps has been uninstalled!----
2. (Optional) Delete the IBM Cloud Pak for AIOps catalog
If you do not require the IBM Cloud Pak for AIOps catalog ibm-aiops-catalog
, then remove it with one of the following methods:
Online deployments:
- Option 1: Delete the IBM Cloud Pak for AIOps catalog with the Red Hat OpenShift console
- Option 2: Delete the IBM Cloud Pak for AIOps catalog with the Red Hat OpenShift CLI
Air-gapped (offline) deployments:
Option 1: Delete the IBM Cloud Pak for AIOps catalog with the Red Hat OpenShift console
-
In the OpenShift console, select Administration > Cluster Settings.
-
Select the Configuration tab, and then select OperatorHub from the Configuration Resource column.
-
Select the Sources tab.
-
Select the CatalogSource that you want to remove:
ibm-aiops-catalog
. -
Select Delete CatalogSource from the Actions list (the three vertical dots at the end of the row).
-
Verify that the CatalogSource that you removed is not shown in Administration > Cluster Settings > Configuration > OperatorHub > Sources.
Option 2: Delete the IBM Cloud Pak for AIOps catalog with the Red Hat OpenShift CLI
-
Run the following command for the catalog that you want to remove.
oc delete catalogsource -n openshift-marketplace <catalogsource>
Where
<catalogsource>
is the name of the CatalogSource that you want to delete:ibm-aiops-catalog
. -
Verify that the following command doesn't return the catalog that you removed:
oc get catalogsource -n openshift-marketplace
Option 3: Delete the IBM Cloud Pak for AIOps catalog in an air-gapped deployment
Note: If you have an air-gapped deployment of IBM Cloud Pak for AIOps that was initially installed at a version lower than 3.5, then follow the instructions for Option 3: Delete the AI Manager catalog in an upgraded air-gapped deployment
in the IBM Cloud Pak for AIOps 3.5 documentation: Uninstalling IBM Cloud Pak® for AIOps IBM Cloud Pak for AIOps.
If you have an air-gapped deployment of IBM Cloud Pak for AIOps, then remove the catalog by using the uninstall-catalog
case action.
-
Export the following environment variables.
The local registry that you specify must be the registry in your air-gapped environment that you created when you installed Cloud Pak for AIOps.
export CASE_NAME=ibm-cp-waiops export CASE_VERSION=1.14.0 export CASE_INVENTORY_SETUP=cpwaiopsSetup export TARGET_REGISTRY_HOST=<IP_or_FQDN_of_target_registry> export TARGET_REGISTRY_PORT=<port_number_of_target_registry> export TARGET_REGISTRY=$TARGET_REGISTRY_HOST:$TARGET_REGISTRY_PORT
-
Run the
uninstall-catalog
CASE action.oc ibm-pak launch $CASE_NAME \ --version $CASE_VERSION \ --action uninstall-catalog \ --inventory $CASE_INVENTORY_SETUP \ --namespace openshift-marketplace \ --args "--registry $TARGET_REGISTRY --recursive \ --inputDir ~/.ibm-pak/data/cases/$CASE_NAME/$CASE_VERSION"
-
Verify that the catalog that you removed is not returned by the following command:
oc get catalogsource -n openshift-marketplace
If the uninstallation fails, or is not complete and is not progressing, then see Troubleshooting installation and upgrade to help you identify any problems.
3. (Optional) Delete Cert Manager
If you installed the IBM Cloud Pak® foundational services Cert Manager, and no other IBM Cloud Paks® are using it, then you can remove it.
-
Follow the instructions in Manual steps for uninstalling singleton services - Cert Manager in the IBM Cloud Pak foundational services documentation.
-
If you have an air-gapped deployment, remove the IBM Cloud Pak foundational services Cert Manager catalog.
oc delete catsrc -n openshift-marketplace "ibm-cert-manager-catalog" --ignore-not-found
4. (Optional) Delete the License Service
If you installed the IBM Cloud Pak foundational services License Service, and no other IBM Cloud Paks® are using it, then you can remove it.
-
Follow the instructions in Uninstalling License Service in the IBM Cloud Pak foundational services documentation.
-
If you have an air-gapped deployment, remove the IBM Cloud Pak foundational services License Service catalog.
oc delete catsrc -n openshift-marketplace "ibm-licensing-catalog" --ignore-not-found