CaaS cluster in an inconsistent state after cluster backed VMs deleted from vCenter UI
search cancel

CaaS cluster in an inconsistent state after cluster backed VMs deleted from vCenter UI

book

Article ID: 314245

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

  • Unable to delete the Management and workload cluster from TCA UI as the VIM registration is not unregistered gracefully
  • When we try to unregister Harbor from Partner system we get the following error:
    error while trying to de-register a cluster from Harbor.user confirmed that password is correct getting error Login to Remote Cloud failed with errors : [{"code":"E_OPERATION_FAILED","message":"Login to cloud with provided credentials failed"}]
  • Unable to delete the inconsistent Network Functions error: 
    This VIM is used by some of the network function instances. 
    First you must delete all the instances deployed on this VIM and then try to delete the VIM.
    Please contact the system administrator.





Environment

2.3

Cause

Deleting the CaaS cluster from the TCA UI will take care of deleting the backend VMs from vCenter UI. Manually deleting the VMs leaves TCA ignorant of the changes.

Resolution

Clean up TCA

Usage :

./cleanExtensionForVimName.sh <workload_cluster_name>

Steps:

  1. Download the attached scripts cleanExtensionForVimName.sh & FilterVimNameFromExtension.sql
  2. Copy to TCA-M appliance /home/admin/ folder.
    Note: Both files must exist in the same folder.
  3. SSH to TCA appliance as ‘admin’ using appropriate credentials.
  4. Make the scripts executable [chmod +x filename] then run the script using below command:
    ./cleanExtensionForVimName.sh workload_cluster_name
  5. Verify via TCA UI > Partner Systems UI that the cluster VIM that was included in the above script is not listed under ‘VIM Associations’ for any of the registered Harbor systems.
  6. From the TCA partner systems UI, click on 'Edit' button adjacent to harbor that was unregistered. Click on next after providing the harbor password on next screen.
  7. Confirm that other workload cluster(s) that are associated with the harbor are selected from the map view and hit finish.
  8. Confirm that there are no network functions deployed on the cluster that is to be deleted.
  9. Delete the cluster from ‘Virtual Infrastructure’ page of TCA UI after filtering out and identifying the cluster to be deleted.
  10. Verify that the delete goes through and doesn’t throw any error indicating cluster is associated with one or more repositories.

 



 



Additional Information

  • The VIM delete will work only if there are no NF’s instantiated on this cluster via TCA UI.
  • Orphaned NFs may need to removed first so that VIM can be deleted even after partner repository de-registration is done via attached script.

 



Attachments

FilterVimNameFromExtension get_app
cleanExtensionForVimName get_app