NSX Manager services SEARCH, SHA, and APPLIANCE_PROXY show UNKNOWN status in NSX 9.0.2
search cancel

NSX Manager services SEARCH, SHA, and APPLIANCE_PROXY show UNKNOWN status in NSX 9.0.2

book

Article ID: 429705

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • On NSX UI, System > Appliance, multiple services are Unknown



  • When running the get cluster status command from the NSX CLI, the cluster status may be is reported as DEGRADED. Multiple management services, including SEARCH, APPLIANCE_PROXY, and SHA, show an UNKNOWN status on one or more nodes.

  • The NSX Manager log, /var/log/syslog, has an error similar to this example

    <DATE>T15:26:36.914Z Manager NSX 74795 - [nsx@4413 comp="nsx-manager" subcomp="sha" username="nsx-sha" level="WARNING" s2comp="metric-collector"] Failed to collect metrics, Exception:cannot release un-acquired lock, trace:Traceback (most recent call last):#012  .........<snip>

Environment

  • VMware NSX 4.x
  • VCF 9.0.2

Cause

This issue occurs when the NSX logging-server is configured with the facility field e.g. set logging-server <IP/FQDN>:514 proto udp level info facility auth.

This issue is triggered when the NSX logging-server is configured with the facility field (e.g., auth). The System Health Agent (SHA) fails to collect or report metrics correctly due to a reporting mismatch in the SHA metric store.

Resolution

This issue is resolved in VCF 9.1, available at Broadcom downloads.

If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.

To resolve the UNKNOWN status in impacted versions, follow this specific sequence on the affected NSX Manager node:

  1. Clear Logging Server Configuration: Delete the existing logging-server configuration that includes a facility field.

    • Command: del logging-server <server_ip> proto <udp/tcp> level <level> facility <facility>
  2. Re-configure Logging Server (Without Facility): Add the logging server back without specifying a facility.

    • Command: set logging-server <server_ip> proto <udp/tcp> level <level>
  3. Restart the SHA Service: Log in as the root user and restart the System Health Agent.

    • Command: /etc/init.d/nsx-sha restart
  4. Check and Restart the Service Manager: If the status does not change to UP after 15 minutes, restart the internal service manager.

    • Commands:
      get service <service_name>
       restart service-manager
  5. Reboot the Node: If services remain UNKNOWN, perform a reboot of the NSX Manager node.

    • Note: In version 9.0.2, the cluster typically stabilizes and services return to UP within 10 minutes following the reboot.

 

Additional Information

Standalone reboots or service restarts may not resolve the issue if the logging-server facility configuration is still present. The steps must be followed in the order listed above.