Failed to delete Tier-0 Gateway with VCF NSX-T Edge Cluster Deployment Removal Tool
search cancel

Failed to delete Tier-0 Gateway with VCF NSX-T Edge Cluster Deployment Removal Tool

book

Article ID: 429666

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Running remove_edge_cluster.sh from VCF NSX-T Edge Cluster Deployment Removal Tool.
  • The script output shows:
    Delete attempt failed for tier-0 (<TIER-0-GATEWAY>) /policy/api/v1/infra/tier-0s/<TIER-0-GATEWAY>:
    {'error_code': 500030,
     'error_message': 'The object path=[/infra/tier-0s/<TIER-0-GATEWAY>] '
                      'cannot be deleted as either it has children or it is being '
                      'referenced by other objects '
                      'path=[/infra/tier-0s/<TIER-0-GATEWAY>/static-routes/<STATIC_ROUTE>]',
     'httpStatus': 'BAD_REQUEST',
     'module_name': 'Policy'}
    Cleaner is stopping now.

Environment

NSX 9.0

Cause

To delete Tier-0 Gateway, objects that references the gateway such as static routes have to be deleted.

According to VCF NSX-T Edge Cluster Deployment Removal Tool, configuration on top of Edge cluster has to be deleted manually.

Any additional services, interfaces or segments created/deployed on top of the Edge cluster deployment should either be deleted or unlinked. 

Resolution

  1. On NSX UI, navigate to Networking > Tier-0 Gateways and edit target Tier-0 gateway.
  2. In ROUTING section, delete all static routes.
  3. CLOSE EDITING to complete.
  4. Run remove_edge_cluster.sh again.

Additional Information

When deleting a Tier-1 or Tier-0 it cannot be deleted because of referenced objects