IBM Support

How to delete runtime manually

Troubleshooting


Problem

If user deletes the project without stopping the runtime, even administrators will not be able to remove the runtime from the UI like following image.
The message "Error: runtime could not be stopped. Please try again later." is shown.
image 8420

Resolving The Problem

We have to delete deployment, replicase, pod and svc on Kubernetes manually to delete runtime.
  1. Run the command "kubectl get deployment" on terminal to find some deployment related on runtime you want to delete. For example, the deployment “jupyter-py36-xxxx” is created for Notebook runtime, “jkg- deployment-xxxx” and “spark-worker-xxxx” is created for spark runtime.
    image 8421
     

    If you don't know which deployment should be deleted, you can identify the deployment to delete by checking when the deployment was created. The UI shows the date and time when the runtime was started, so compare it.
    image 8422

    image 8423
     

  2. Delete the deployment associated with runtime you want to stop. "jkg-deployment-xxxx" and "spark-worker-xxxx" may have already been deleted. If they haven't been deleted, delete them. If you delete the deployment, the replicaset and pods will be deleted automatically.
    image 8427
     
  3. Delete the svc associated with runtime you want to stop. Similarly to the above, if there are svcs called "jkg-deployment-xxxx", "spark-worker-xxxx" and "jupyter-pyxx-xxxx"  associated with the runtime you want to stop, delete them as well.
    image 8426
     
  4. Refresh the browser.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"ARM Category":[{"code":"a8m0z000000bmNbAAI","label":"Admin"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.2.0;and future releases"}]

Document Information

Modified date:
03 June 2021

UID

ibm16415995