'PolicyEdgeNode #### can not be deleted as it is being referenced by entity(s)' when trying to delete and edge node which has a Transit Gateway
search cancel

'PolicyEdgeNode #### can not be deleted as it is being referenced by entity(s)' when trying to delete and edge node which has a Transit Gateway

book

Article ID: 441894

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • When you attempt to remove or delete an Edge node from an Edge cluster in VMware NSX, the operation fails. You see the following error in the UI or via API:

[Routing] Entity PolicyEdgeNode '####' can not be deleted as it is being referenced by entity(s): Transit Gateway 'Default Transit Gateway' (Error code: 10026) (Error code: 500157)

The object path=[/infra/sites/default/enforcement-points/default/edge-transport-nodes/####] cannot be deleted as either it has children or it is being referenced by other objects path=[/infra/sites/default/enforcement-points/default/edge-clusters/####/edge-nodes/####]

Environment

VCF NSX 9.1

Cause

The Edge cannot be deleted when there are dependent objects or references under them. If an Edge node is part of an Edge cluster referenced by a Transit gateway (TGW), removal is blocked.

Resolution

You must remove the dependent objects to allow the edge to be removed.

Note: This operation will lead to traffic loss/interruption, if this is a production environment, plan to do the workaround in a maintenance window.

  • In the error message above, the 'Default Transit Gateway' was the one blocking the edge removal.
  • Go to 'Networking, VPC Connectivity, Transit Gateways'.
  • Click the 3 dots (hamburger menu) beside the 'Default TGW' and click 'Edit'.
  • Set the 'Connection' to 'None', accept the warning that traffic interruption may occur.
  • Click the 'x' beside the 'HA Mode' and also accept the traffic interruption warning.
  • When the 'HA Mode' is removed, the 'Transit Gateway Edge Cluster' is also removed.
  • Now click 'SAVE'.
  • Then proceed to 'System, Fabric, Edges' and expand the Edge Cluster and place the edge you wish to delete in Maintenance mode, then once in maintenance mode, delete the edge.
  • Once the edge has been deleted, you can go back to the 'Networking, VPC Connectivity, Transit Gateways', edit the 'Default TGW' and add back the 'Connection', Select desired 'HA Mode', selecting the 'Transit Gateway Edge Cluster'.

Note: The 'x' to delete the HA Mode will only show once the Connection is removed (set to None), prior to this, you can only select a HA Mode (Active Standby or Active Active). 

 

In VCF NSX 9.1, additional TGW's can be added, therefore the message above may list a different TGW name.

You need to ensure that once the operation is complete, there are enough edge nodes in the cluster to support the number of gateways.

Additional Information

Add a Transit Gateway with a Centralized Connection