Using API call to Redeploy an NSX Edge Node After VM is Removed From vCenter.
search cancel

Using API call to Redeploy an NSX Edge Node After VM is Removed From vCenter.

book

Article ID: 435842

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • NSX Edge VMs have been deleted from the vSphere inventory.

  • The logical Edge Transport Node configuration remains in the NSX Manager inventory.

  •  NSX Edge is in the MPA Connectivity Down state.
  • GET https://<nsx-manager-ip>/api/v1/transport-nodes/<Edge-UUID>/state
    node_deployment_state": {"state": "VM_PLACEMENT_REFRESH_FAILED"}



    Note: From version NSX 4.2.2, it is possible to redeploy the Edge from the UI Actions menu.

Environment

VMware NSX 4.2.1

Cause

The Edge Virtual Machine was manually deleted directly from the vCenter Server inventory.
As NSX is the source for the Edge node's configuration, deleting the underlying VM in vCenter breaks the database link between NSX and vCenter.

Resolution

Before running Redeploy API, user needs to Resolve alarm from UI. Go to Home -> Alarms -> Select this Alarm -> Click on 3 dots and Resolve. For more information, see Edge VM present in NSX inventory not present in vCenter alarm

Redeploy the Edge node using the exact configuration payload. For more information, see Using API calls to Redeploy Edge Node.