Cleaning up of Hosted Control Plane cluster

If you no longer need a hosted cluster, use this procedure to remove it.

Before you begin

  • Download common.sh, delete-odf.sh, and odf-cleanup-main.sh from the odf-cleanup directory of the Fusion Git repository.
  • Note down the following details:
    1. Go to the Red Hat® OpenShift® console of the hosted cluster.
    2. Go to Home > Overview and copy the Cluster ID from the Details section.
  • Take a backup of the applications that you want to protect.

Procedure

  1. On the hub cluster, go back to the hosted cluster details > Overview tab page and edit the Labels to remove isf.ibm.com/fusion-backup, and click Save.
  2. Use the script mentioned in the Fusion Git repository to clean the Backup & Restore Agent from the Hosted Control Plane.
  3. Remove all the workloads that use Fusion Data Foundation storage classes.
  4. Edit the Labels again to remove isf.ibm.com/fusion-fdf, and click Save.
  5. Remove the Data Foundation agent with all the PVCs that use the Data Foundation storage.
    1. Log in to the Hosted Control Plane cluster on the terminal through CLI.
    2. Run odf-cleanup-entrypoint.sh.
  6. After the script completes successfully, do the following steps to verify the removal of the Data Foundation storage:
    1. Go to the user interface of the IBM Storage Fusion hosted cluster.
    2. Confirm that the Data Foundation menu option is no longer available.
    3. Go to the Services page and check whether the Data Foundation service tile is available in the Get started section.
    4. Go to the Red Hat OpenShift console of the hosted cluster and go to Storage > StorageClasses and verify whether all Data Foundation storage classes are removed.
  7. Delete the hosted cluster.
    1. Log in to the OpenShift Container Platform web console of the IBM Storage Fusion HCI System hub, and select All clusters.
    2. Go to Infrastructure > Clusters.
      The Clusters page is displayed and the Cluster list tab is open by default.
    3. Click the name value link of the cluster to view more information.
      In the cluster details page, the Overview tab is open by default.
    4. In the Actions menu, select Destroy clusters to remove the cluster.
  8. To verify the deletion of the hosted cluster, do the following steps:
    1. Log in to the OpenShift Container Platform web console of the IBM Storage Fusion HCI System hub, and select All clusters.
    2. Go to Infrastructure > Clusters.
      The Clusters page is displayed and the Cluster list tab is open by default.
    3. Go through the list of the associated clusters and confirm that the Cluster ID of the deleted hosted cluster does not exist.
  9. Remove the Backup & Restore connection.
    For the procedure to remove connections, see Disabling the connection.