Uninstalling DevOps Test Hub from IBM® Red Hat OpenShift

When you want to install a new version of HCL DevOps Test Hub (Test Hub) or you want to reinstall Test Hub when an ongoing installation fails, you can uninstall Test Hub and its components from the Red Hat OpenShift platform.

Before you begin

You must have completed the following tasks:
  • Installed Test Hub.

  • Closed Test Hub, any open web browsers, and all other applications that are enabled by Test Hub.

  • Optional: Backed-up data from the previous version of Test Hub.

Procedure

  1. Open and log in to the terminal.
  2. Run the following command to stop the workload that is running:
    oc delete all,cm,secret -lexecution-marker -n devops-system
    Remember: The devops-system is the name of the namespace. If you created a namespace by using a different value, then you must use that value in place of devops-system in all the instances in this procedure.
  3. Run the following command to uninstall Test Hub:
    helm uninstall {main} -n devops-system

    The PersistentVolumeClaims and PersistentVolumes that were created during the installation are not deleted automatically. If you reinstall Test Hub, the user data is reused unless you specifically delete those volumes.

  4. Run the following command to delete all user data that is contained in PersistentVolumeClaims and PersistentVolumes:
    oc delete project devops-system
    Important: If you want to migrate data from a previous version to the latest version of the product, then you must ensure to back up the data before you run this command.

Results

You have uninstalled Test Hub from the Red Hat OpenShift platform.