In certain scenarios, an NSX Edge node may experience a failure or require out-of-band manual intervention directly from the NSX Manager interface.
While modifying components outside of VMware Cloud Foundation (VCF) workflows is strongly discouraged, deleting an Edge node directly from NSX leaves a stale, orphaned node reference within the SDDC Manager inventory.
As a result, attempting to shrink the Edge cluster using the SDDC Manager UI (reference Remove Edge Nodes from an NSX Edge Cluster) fails with the following error:
Validation for edge cluster spec failing. Please check the table for details, when shrinking an NSX Edge node cluster
This issue occurs because the SDDC Manager database retains a reference to the deleted NSX Edge node. Because the node was removed out-of-band directly in NSX-T rather than through the automated SDDC Manager workflows, the SDDC inventory becomes desynchronized from the actual NSX inventory.
psql -h localhost -U postgres -d platform -c "select * from nsxt_edge_cluster where name='<edge cluster name>'"curl localhost/inventory/nsxt-edgeclusters?id=<ID from step #3> | json_pp
Sample Output
curl localhost/inventory/nsxt-edgeclusters?id=<ID from step #3> | json_pp
[
{
"clusterIds" : [
"UUI"
],
"edgeClusterNsxtId" : "##",
"id" : "##",
"isTier0ManagedBySystem" : true,
"name" : "<Cluster_name>",
"nsxtClusterId" : "##",
"nsxtEdgeNodes" : [
{
"edgeNodeNsxtId" : "##",
"hostName" : "en01.example.com",
"id" : "###",
"managementIpAddress" : "#.#.#.#"
},
{
"edgeNodeNsxtId" : "##",
"hostName" : "en02.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
},
{
"edgeNodeNsxtId" : "##",
"hostName" : "en03.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
}
],
"originType" : "CLASSIC",
"skipTepRoutabilityCheck" : false,
"status" : "ACTIVE"
}
][
{
"clusterIds" : [
"UUI"
],
"edgeClusterNsxtId" : "##",
"id" : "##",
"isTier0ManagedBySystem" : true,
"name" : "<Cluster_name>",
"nsxtClusterId" : "#",
"nsxtEdgeNodes" : [
{
"edgeNodeNsxtId" : "##",
"hostName" : "en01.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
},
{
"edgeNodeNsxtId" : "##",
"hostName" : "en02.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
},
{
"edgeNodeNsxtId" : "##",
"hostName" : "en03.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
}
],
"originType" : "CLASSIC",
"skipTepRoutabilityCheck" : false,
"status" : "ACTIVE"
}
]vi ec.json
{
"clusterIds" : [
"UUI"
],
"edgeClusterNsxtId" : "##",
"id" : "##",
"isTier0ManagedBySystem" : true,
"name" : "<Cluster_name>",
"nsxtClusterId" : "##",
"nsxtEdgeNodes" : [
{
"edgeNodeNsxtId" : "##",
"hostName" : "en01.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
},
{
"edgeNodeNsxtId" : "##",
"hostName" : "en02.example.com",
"id" : "##",
"managementIpAddress" : "#.#.#.#"
}
],
"originType" : "CLASSIC",
"skipTepRoutabilityCheck" : false,
"status" : "ACTIVE"
}
curl localhost/inventory/nsxt-edgeclusters/<nsxt edge cluster id from step #3 > -X PUT -H 'Content-Type: application/json' -d @ec.json | json_ppcurl localhost/inventory/nsxt-edgeclusters?id=<ID from step #3> | json_pp