Uninstalling Infrastructure Automation
-
If you deployed Infrastructure Automation - Infrastructure Management, delete the deployed IMInstall instance.
- Log in to your Red Hat OpenShift Container Platform cluster's console.
- From the main navigation menu, click Operators > Installed Operators.
- Change the project to the project (namespace) where you installed Infrastructure Automation. For instance, cp4aiops.
- Select the IBM Management Infrastructure install tab. The IMInstall instance is displayed.
- Click the IMInstall under provided APIs column
- Select Delete IMInstall in the Node Options menu for the IMInstall instance.
- Wait for the IMInstall instance to be deleted.
-
Uninstall ManageService instance from Infrastructure Automation - Managed services on the Red Hat OpenShift Container Platform console.
- Log in to your Red Hat OpenShift Container Platform cluster's console.
- Click Operators > Installed Operators.
- Change the project to the project (namespace) where you installed Infrastructure Automation. For instance, cp4aiops.
- Select the IBM Management Infrastructure managed services tab. The ManageService instance is displayed.
- Click the ManageService under provided APIs column
- Select Delete ManageService in the Node Options menu for the ManageService instance.
- Wait for the ManageService instance to be deleted.
-
Uninstall the IAConfig instance from the Infrastructure Automation operator.
-
Log in to your Red Hat OpenShift Container Platform cluster's console.
-
Click Operators > Installed Operators.
-
Change the project to the project (namespace) where you installed Infrastructure Automation. For instance, cp4aiops.
-
Select the IBM Infrastructure Automation tab. The IBM Infrastructure Automation instance is displayed. Click IBM Infrastructure Automation in the provided APIs column.
-
Select Delete IAConfig in the Node Options menu for the IAConfig instance.
-
Wait for the Managed services and Infrastructure Management non-operator pods to be removed. To view the remaining pods, run the following command:
oc -n <namespace> get pods
Where
<namespace>
is the project (namespace) where Infrastructure Automation is installed.- Managed services pods are prefixed with
cam
. - Infrastructure Management pods can be prefixed with any of the following prefixes:
1-
,httpd
,memcached
,orchestrator
,postgresql
,ibm-infra-management
.
Make sure that all the Managed services and Infrastructure Management pods are removed before you move on to the next step.
- Managed services pods are prefixed with
-
-
Uninstall the Infrastructure Automation operator.
- Log in to the Red Hat OpenShift Container Platform console for your environment.
- From the main navigation menu, click Operators > Installed Operators.
- Change the project to the project (namespace) where you installed Infrastructure Automation. For instance, cp4aiops.
- Select Uninstall Operator from the options menu for the IBM Infrastructure Automation operator.
-
If you installed only Infrastructure Automation and not IBM Cloud Pak® for AIOps in the Infrastructure Automation namespace, then uninstall the following operators in the installed namespace.
- Log in to the Red Hat OpenShift Container Platform console for your environment.
- From the main navigation menu, click Operators > Installed Operators.
- Change the project to the project (namespace) where you installed Infrastructure Automation. For instance, cp4aiops.
- Select Uninstall Operator from the options menu for the IBM CloudPak functional services operator.
-
Delete the namespace that Infrastructure Automation is deployed in.
-
Run the following command to remove finalizers from
clients.oidc.security.ibm.com
.oc -n <namespace> edit clients.oidc.security.ibm.com
Where
<namespace>
is the namespace that Infrastructure Automation is deployed in.Delete the following finalizer lines, and save.
finalizers: - client.oidc.security.ibm.com
-
Run the following command to remove finalizers from
operandrequests.operator.ibm.com
.oc -n <namespace> edit operandrequests.operator.ibm.com
Where
<namespace>
is the namespace that Infrastructure Automation is deployed in.Delete all the finalizer lines, and save.
finalizers: - finalizer.request.ibm.com
-
Delete the namespace that Infrastructure Automation is deployed in.
oc delete project <namespace>
Where
<namespace>
is the namespace that Infrastructure Automation is deployed in.
-
-
(Optional) Delete the 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 by following the instructions in Manual steps for uninstalling singleton services - Cert Manager in the IBM Cloud Pak foundational services documentation.
- (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 by following the instructions in Uninstalling License Service in the IBM Cloud Pak foundational services documentation.
- Uninstall IBM Cloud Pak foundational services
If IBM Cloud Pak for AIOps is not using IBM Cloud Pak foundational services in the Infrastructure Automation namespace, then you can remove IBM Cloud Pak foundational services by following the instructions in Uninstalling IBM Cloud Pak foundational services in the IBM Cloud Pak foundational services documentation.
If the uninstallation fails, or is not complete and is not progressing, then see Troubleshooting installing and uninstalling Infrastructure Automation to help you identify any problems.