NSX Edge in a Failed state with error "Host configuration: Failed to send HostConfig message" due to nsx-opsagent-appliance service not responding.
search cancel

NSX Edge in a Failed state with error "Host configuration: Failed to send HostConfig message" due to nsx-opsagent-appliance service not responding.

book

Article ID: 441045

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • You may be alerted to this issue by an error result from NSX upgrade pre-check for the Edge nodes stating "Edge node <UUID> has either realization pending or realization failed."

  • The Edge node error message reads "Edge node <UUID> has either realization pending or realization failed" "Host configuration: Failed to send HostConfig message" "Reason: Failed to send HostConfig RPC to MPA" "Error: Unable to reach client" "application SwitchingVertifcal"

  • In VMware NSX, when the nsx-edge-api-server service is stopped, the nsx-opsagent-appliance service is simultaneously stopped.

    • Here, when the nsx-edge-api-server service is subsequently restarted, the nsx-opsagent-appliance service does not automatically restart and remains offline.

  • During a configuration push operation (potentially an NSX Manager push for password policy changes), only the NAPI service may be restarted, but not OpsAgent, causing OpsAgent to remain in a stopped state for an extended period. 

  • The following /var/log/syslog log prints indicate nsx-edge-api-server and nsx-opsagent going down;

2026-04-14T05:23:32.014Z ######### nsx-edge-api-server 263885 - -   * Stopping nsx-edge-api-server
2026-04-14T05:23:32.867Z #########  nsx-edge-api-server 263885 - -     ...done.
2026-04-14T05:23:32.038Z #########  systemd 1 - -  nsx-edge-api-server.service: Deactivated successfully.

2026-04-14T05:23:26.680Z nsx-opsagent-appliance 263804 Shutting down NSX-OpsAgent watchdog
2026-04-14T05:23:27.664Z nsx-opsagent-appliance 263804 Shutting down NSX-OpsAgent service
2026-04-14T05:23:32.161Z systemd 1 nsx-opsagent-appliance.service: Deactivated successfully.
2026-04-14T05:23:32.540Z systemd 1 Stopped NSX OpsAgent. 

  • The /var/log/api_roothelper.log may show this error as well.

2026-02-06 16:47:57,018 napi.root.node.services.telegraf_conf WARNING Signal to Telegraf failed: Command '['/usr/bin/pkill', '-1', 'telegraf']' returned non-zero exit status 1. - Traceback (most recent call last):
  File "/opt/vmware/nsx-node-api/bin/python/management_api/napi/root/node/services/telegraf_conf/telegraf_conf.py", line 210, in signal_telegraf_config_update
    subprocess.check_call(["/usr/bin/pkill", "-1", "telegraf"])
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/pkill', '-1', 'telegraf']' returned non-zero exit status 1.

Environment

VMware Cloud Foundation (VCF)

VMware NSX

Cause

The nsx-edge-api-server.service systemd configuration utilizes a RequiredBy dependency on nsx-opsagent-appliance.service. While this dependency ensures the NSX API (NAPI) is running before the opsagent starts during bootup, the strict RequiredBy binding forces the opsagent to halt when NAPI is stopped without triggering a corresponding restart.

Resolution

This issue is fixed in VMware Cloud Foundation (VCF) 9.1. See Download Broadcom products, patches and software for steps to download this release. 

Workaround: To work around this issue, re-start the affected services on the NSX Edge node:

  1. SSH to the affected NSX Edge node as the root user.

  2. Restart the nsx-opsagent-appliance service by running the following command: /etc/init.d/nsx-opsagent-appliance restart

  3. Restart nsx-proxy service by running the command: /etc/init.d/nsx-proxy restart