How to manually delete the left-over resourses in case management cluster deployment is failed.
search cancel

How to manually delete the left-over resourses in case management cluster deployment is failed.

book

Article ID: 345718

calendar_today

Updated On:

Products

VMware VMware Telco Cloud Automation

Issue/Introduction

Symptoms:

Unable to deploy management cluster. The management cluster status is Failure and need to manually delete left-over resources related with management cluster.


Environment

VMware Telco Cloud Automation 2.3

Cause

Some resources can't be deleted from bootstrap cluster, so Tanzu CLI reports errors. The management cluster deletion is stuck there, even if deletion operation is performed multiple times.

Resolution

To resolve this, left-over resources related with management cluster needs to be manually deleted

 


Workaround:

1. SSH login to tca-cp VM, delete vme CR instance under admin user context/minukube context

 Example:

[admin@tca ~]$ kubectl get vme -n <namespace>

[admin@tca ~]$ kubectl delete vme <Management cluster> -n <namespace>

2. Request force delete from UI to delete MC

3. When step2 finishes, switch to root user instead of admin, run the below command to delete data on TKG side. Like, it will delete MC data from `/root/.config/tanzu/config.yaml`, etc.

[root@tca /home/admin]# tanzu config server delete <namespace>

4. Cluster nodes of management cluster has been deleted from vCenter? If not, please delete node manually from vCenter

5. Login to tca-cp VM, under admin user context/minukube context, check whether there are other resource are left in minikube cluster. Directly query namespace of management cluster, if namespace exist, delete it.

[admin@tca ~]$ kubectl get ns <namespace>

if namespace exist, delete it.

[admin@tca ~]$ kubectl delete ns <namespace>


Additional Information

Impact/Risks:

Management cluster deployment is failed.