Edge node configuration state shows as Failed in NSX UI
search cancel

Edge node configuration state shows as Failed in NSX UI

book

Article ID: 376854

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • In NSX UI: System --> Fabric --> Nodes --> Edge Transport Nodes, the "Configuration State" for the affected node shows as "Failed".

  • When clicking on "Failed", following error seen: "Host configuration: Failed to send the HostConfig message. [TN=TransportNode/########-####-####-####-########6f6c]. Reason: Mac address for a vnic null is not found on edge node /infra/sites/default/enforcement-points/default/edge-transport-node/########-####-####-####-########6f6c"



  • From the NSX Manager logs, the desired_state_manager.json file reports the transport node status as below:

    /nsxapi/api/v1/transport-nodes/state":

{
  "details": [
    {
      "failure_code": 8804,
      "failure_message": " Host configuration: Failed to send the HostConfig message. [TN=TransportNode/########-####-####-####-########6f6c]. Reason: Mac address for a vnic null is not found on edge node /infra/sites/default/enforcement-points/default/edge-transport-node/########-####-####-####-########6f6c.",
      "state": "failed",
      "sub_system_id": "########-####-####-####-########6f6c",
      "sub_system_type": "Host"
    }
  ],
  "failure_code": 8804,
  "failure_message": "Host configuration failed. Number of retries : 11. Next retry attempt will be between 2024-Aug-19 23.10.31 PM and 2024-Aug-19 23.13.31 PM (UTC).",
  "maintenance_mode_state": "DISABLED",
  "node_deployment_state": {
    "details": [],
    "failure_code": 0,
    "failure_message": "",
    "state": "NODE_READY"
  },
  "state": "failed",
  "transport_node_id": "########-####-####-####-########6f6c"
}

  • The Edge Transport Node state API shows host configuration as failed: GET /policy/api/v1/infra/sites/default/enforcement-points/default/edge-transport-nodes//state transport_node_state. State is failed, with failure_code 8804.

  • An uplink profile used by the affected Edge Node has a default teaming policy of Load Balance Source (LOADBALANCE_SRCID), and one or more active uplinks were recently added to it.

Environment

VMware NSX 4.x, 9.0.x, 9.1.x

Cause

This issue can be seen if there is a misconfiguration / mismatch in the UplinkHostSwitchProfile being used.

For example, from desired_state_manager.json file, below is the configuration for the two edges that are part of the same cluster:

Working edge node:

"display_name": "edge01",
"failure_domain_id": "########-####-####-####-########aafb",
"host_switch_spec": {
  "host_switches": [
    {
      "cpu_config": [],
      "host_switch_id": "########-####-####-####-########6608",
      "host_switch_mode": "STANDARD",
      "host_switch_name": "Edge-NVDS",
      "host_switch_profile_ids": [
        {
          "key": "UplinkHostSwitchProfile",
          "value": "########-####-####-####-########d478"
        }
      ],
      "host_switch_type": "NVDS",
      "ip_assignment_spec": {
        "ip_pool_id": "########-####-####-####-########1c2c",
        "resource_type": "StaticIpPoolSpec"
      },
      "is_migrate_pnics": false,
      "not_ready": false,
      "pnics": [
        {
          "device_name": "fp-eth0",
          "uplink_name": "uplink-1"
        },
        {
          "device_name": "fp-eth1",
          "uplink_name": "uplink-2"
        }

Problematic edge node:

"display_name": "edge02",
"failure_domain_id": "########-####-####-####-########aafb",
"host_switch_spec": {
  "host_switches": [
    {
      "cpu_config": [],
      "host_switch_id": "########-####-####-####-########6608",
      "host_switch_mode": "STANDARD",
      "host_switch_name": "Edge-NVDS",
      "host_switch_profile_ids": [
        {
          "key": "UplinkHostSwitchProfile",
          "value": "########-####-####-####-########4988"
        }
      ],
      "host_switch_type": "NVDS",
      "ip_assignment_spec": {
        "ip_pool_id": "########-####-####-####-########1c2c",
        "resource_type": "StaticIpPoolSpec"
      },
      "is_migrate_pnics": false,
      "not_ready": false,
      "pnics": [
        {
          "device_name": "fp-eth0",
          "uplink_name": "uplink-1"
        },
        {
          "device_name": "fp-eth1",
          "uplink_name": "uplink-2"
        }

From the above, we can see that, both the nodes are mapped to fp-eth0 and fp-eth1. However, the UplinkHostSwitchProfile is different. The working node uses "########-####-####-####-########d478" and the problematic node uses "########-####-####-####-########4988".

Now, checking the configuration of these UplinkHostSwitchProfile, we can see that, the working node's UplinkHostSwitchProfile, i.e. ########-####-####-####-########d478 has two uplinks. Whereas, the problematic node's UplinkHostSwitchProfile, i.e. ########-####-####-####-########4988 has four uplinks. However, still the problematic node reported only two uplinks mapped. This is the misconfiguration/mismatch.

"display_name": "host-uplinkprofile",
"id": "########-####-####-####-########4988",
"overlay_encap": "GENEVE",
"resource_type": "UplinkHostSwitchProfile",
"tags": [],
"teaming": {
  "active_list": [
    {
      "uplink_name": "uplink-1",
      "uplink_type": "PNIC"
    },
    {
      "uplink_name": "uplink-2",
      "uplink_type": "PNIC"
    },
    {
      "uplink_name": "uplink-3",
      "uplink_type": "PNIC"
    },
    {
      "uplink_name": "uplink-4",
      "uplink_type": "PNIC"
    }
  ],
  "policy": "LOADBALANCE_SRCID",
  "rolling_order": false
},
  "transport_vlan": 1046
}

"display_name": "edge-uplinkprofile",
"id": "########-####-####-####-########d478",
"overlay_encap": "GENEVE",
"resource_type": "UplinkHostSwitchProfile",
"tags": [],
"teaming": {
  "active_list": [
    {
      "uplink_name": "uplink-1",
      "uplink_type": "PNIC"
    },
    {
      "uplink_name": "uplink-2",
      "uplink_type": "PNIC"
    }
          ],
          "policy": "LOADBALANCE_SRCID",
          "rolling_order": false
        },
        "transport_vlan": 1046
      },

Resolution

Workaround 1 (recommended): Map the new uplink on each affected Edge

  1. Identify every Edge Transport Node that uses the modified uplink profile.
  2. On each Edge node, map the newly added uplink to an available fp-eth interface in the host switch configuration:
    1. Go to UI: System > Fabric > Nodes > Edge Transport Nodes
    2. Edit the Edge and set the uplink-to-interface mapping
    3. Save the change.
  3. Alternatively, if using API, update the  host_switch_spec section so that it includes a pnic entry for the new uplink.
  4. Host configuration is applied on the next sync or automatic retry.

 

Workaround 2: Revert the uplink profile

  1. Edit the uplink profile and remove the active uplinks that aren't mapped on the Edges.
  2. Host configuration recovers on the next sync or automatic retry.