3.x
There is discrepancy for the management cluster name between the metadata in the database and in the TCA UI.
Note : Please make sure you take a snapshot of the TCA Manager Virtual machine and also a back up of the TCA database or the TCA application back up from the UI as outlined below before making any changes.
SSH into the TCA Manager as admin and switch to root.
Execute backup file of the tca database:kubectl exec -it postgres-0 -n tca-mgr -- pg_dump -U tca_admin tca > /home/admin/tca_db_backup_$(date +%F).sql
Verify the backup file: Check that the file was created and has a size greater than 0:ls -lh /home/admin/tca_db_backup_*.sql
See Backing Up VMware Telco Cloud Automation Control Plane
kubectl exec -it postgres-0 -n tca-mgr -- psql -d tca -U tca_adminSELECT val->'metadata'->>'name' as cluster_name, val->'status'->'currentMgmtClusterName' as current_mgmt FROM public."K8sClusterDetails" WHERE val->>'rowType'='cluster' AND val->'metadata'->>'name'='workload cluster name';UPDATE public."K8sClusterDetails" SET val = jsonb_set(val, '{status, currentMgmtClusterName}', '"<correct management cluster name>"') where val->>'rowType'='cluster' and val->'metadata'->>'name'='<workload cluster name>';