VM IP Address Missing in NSX Group
search cancel

VM IP Address Missing in NSX Group

book

Article ID: 433109

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • You have an NSX group configured with dynamic criteria e.g., VM Name contains specific text.
  • When viewing the group members in the NSX inventory, the Virtual Machine's IP address is displayed, but the VM name is missing or blank.
  • The port is empty, when viewing Virtual Interface details in the UI:
    Inventory > Virtual Machines > VIEW DETAILS
  • On an NSX Manager, when reviewing the desired_state_manager.json file, you observe that the _last_sync_time is stale for the affected VM.
    _last_sync_time": ############# 
    Note:  the time is in Unix epoch time and needs converting 
  • Impact: The Distributed Firewall (DFW) rule does not apply to this specific VM, while the other VMs in the group match the rule correctly.
  • This issue is observed in VMware NSX 4.2.3.

Note: The preceding log excerpts only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware NSX

Cause

This issue occurs because the host transport node configuration is out of sync with the NSX Manager, leading to incomplete inventory realization for the affected virtual machine.

Resolution

This is a condition that may occur in a VMware NSX environment.

To resolve this issue, force a resync of the affected ESXi host transport node from the NSX Manager using the Policy API:

  1. Identify the UUID of the host transport node where the affected VM is currently residing.
  2. Authenticate to the NSX Manager and execute the following API call to force a host configuration resync:
    POST https://<nsx-manager>/policy/api/v1/infra/sites/default/enforcement-points/default/host-transport-nodes/<host-uuid>?action=resync_host_config
  3. Refresh the NSX UI and verify the group to confirm the VM name is now correctly populated alongside its IP address.

Additional Information

NSX-T API usage