NSX Preparation Fails at 48% on host transport-nodes
search cancel

NSX Preparation Fails at 48% on host transport-nodes

book

Article ID: 431615

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • When adding new ESXi hosts to a vCenter environment managed by NSX, the host preparation process (NSX installation) fails to complete.
  • The installation progress typically hangs at 48% before eventually timing out or failing with a registration error.



  • Analysis of the /var/run/log/nsx-syslog.log on the affected ESXi host reveals a socket.gaierror:
<Timestamp>-WARNING nsx-sfhc 2249693 [nsx@4413 comp="nsx-esx" subcomp="nsxsfhc" threadID="<thread-Id>"] Command nsxcli -c "join management-plane <NSX-manager-FQDN>\n thumbprint <API-Thumbprint_of_the_NSX_manager>\n  token **********  node-uuid <Transport-node-UUID>\n validate-manager-cert  " failed with return-code 4 (% Node registration failed: 'NSX Manager API certificate is not valid: curl_wrapper: (28) Failed to connect to <NSX-manager-FQDN> port 443: [Errno -2] Name or service not known'\n).
  • This error confirms that the curl_wrapper used by the NSX installation script cannot translate the FQDN into an IP address.
  • Performing an: nslookup <nsx-manager-ip> on ESXi host fails with error: connection time out

Environment

VMware NSX 4.x
VMware NSX 9.x

Cause

The ESXi host is unable to resolve the NSX Manager's FQDN during the "join management-plane" phase. While the host may have basic IP connectivity, the NSX registration process specifically requires successful DNS lookups to validate certificates and establish a secure connection.

Resolution

The issue is typically caused by an incorrectly configured or unreachable DNS server on the ESXi host's management network.

  1. Ensure Correct DNS Configuration: Ensure the ESXi host is configured with the correct DNS server IPs that hold the records for the NSX infrastructure.

    • Navigate to Host > Configure > Networking > TCP/IP configuration.

    • Edit the Default stack to update DNS settings.

  2. Verify Resolution: From the ESXi command line, ensure nslookup <NSX_Manager_FQDN> returns the correct IP. If not, then add the missing DNS entries on the respective DNS server.

  3. Restart nsx-opsagent on the ESXI host transport node, by navigating to the host CLI and run the following command: /etc/init.d/nsx-opsagent restart
  4. Retry Installation: * In the NSX Manager UI, go to System > Fabric > Nodes > Host Transport Nodes.

    • Select the failed host and click Resolve.

Additional Information

To confirm if your host is experiencing this specific DNS issue, perform the following:

  1. SSH into the affected ESXi host.

  2. Attempt to ping the NSX Manager using its IP address: ping <NSX_Manager_IP> (This should succeed).

  3. Attempt to ping the NSX Manager using its FQDN: ping <NSX_Manager_FQDN> (This will likely fail with "Name or service not known").

  4. Check the configured DNS servers on the host: esxcli network ip dns server list