Error "This endpoint is being used by # compute resources and # storage paths and cannot be deleted" when you attempt to delete an endpoint in vRA 7.0 through 7.4
search cancel

Error "This endpoint is being used by # compute resources and # storage paths and cannot be deleted" when you attempt to delete an endpoint in vRA 7.0 through 7.4

book

Article ID: 317132

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • After collecting data against an endpoint in vRealize Automation 7.0 - 7.4, you are unable to delete the endpoint regardless of any assigned compute resources.
  • When you attempt to delete the endpoint, you see an error similar to:

    You cannot delete this endpoint because 2 compute resources and 0 storage paths use it


Environment

VMware vRealize Automation 7.5.x
VMware vRealize Automation 7.1.x
VMware vRealize Automation 7.6.x
VMware vRealize Automation 7.3.x
VMware vRealize Automation 7.4.x
VMware vRealize Automation 7.0.x
VMware vRealize Automation 7.2.x

Cause

This issue occurs when compute resources have been collected against an endpoint preventing you from deleting it.

Resolution

This is a known issue affecting vRealize Automation 7.0 through 7.4.
 
This issue is resolved in vRealize Automation 7.5.  Endpoints can be deleted from the user interface if the machines and reservations have been removed from management.


    Workaround:
    As a workaround, remove an endpoint from VMware vRealize Automation 7.0 - 7.4 versions, use the Cloud Client tool:
     
    To remove the endpoint:
    1. Download and install the appropriate version of CloudClient tool based on your vRA version.
       
    2. Delete the hosts and compute resources that are not associated with any active Fabric groups or reservations.

      Note: This procedure will not remove any resources from vRealize Automation that are actively in use.
    Procedure:
    1. Ensure that there are no managed VMs on the endpoint that is to be deleted.
    2. Delete all reservations for the endpoint that needs to be deleted.
    3. Go to the Infrastructure > Endpoints > Fabric Groups page and remove all compute resources associated with this endpoint from all fabric groups.
    4. Log in to cloud client:

      CloudClient>vra login userpass --server <enter server name e.g., vra.corp.local> --tenant <enter tenant name> --user <enter username> --password <enter password> --promptForIaasCreds yes
       
    5. Enter IaaS credentials.
    6. List the inactive Compute Resources by running the command:

      CloudClient>vra computeresource inactive list
       
    7. Confirm that the compute resources that are listed are no longer in use as these will be removed from vRA.
    8. Stop all vSphere agent services even for endpoints that are being used.
    9. Remove the inactive Compute Resources by running the command:

      CloudClient>vra computeresource inactive remove
       
    10. The endpoint can now be removed in the UI or use the Cloud Client to remove the endpoint as follows:

      CloudClient>vra endpoint list

      Find the id of the endpoint to be deleted. Then execute the following command:
      CloudClient>vra endpoint remove --id <endpoint id>

       
    11. Restart the vSphere agents. The vSphere agents associated with the endpoints that have been removed can remain or be uninstalled.


    Additional Information

    For instructions on removing an endpoint in vRA 6.x, see KB2105809
     
    Error 'This endpoint is being used by # compute resources and # storage paths and cannot be deleted' when you delete an endpoint in vRA

    Impact/Risks:
    This procedure modifies the IaaS SQL database. Ensure to take back up of your database prior to making any changes.