Edge node "UUID" vmId is not found on NSX Manager. Please refer to https://kb.vmware.com/s/article/90072> get upgrade progress-status***************************************************************************Node Upgrade has been started. Please do not make any changes, untilthe upgrade operation is complete. Run "get upgrade progress-status"to show the progress of last upgrade step.***************************************************************************Upgrade steps:download_os [2022-09-16 17:35:52 - 2022-09-16 17:36:21] SUCCESSVMware NSX-T Data Center
VMware NSX
This issue can be encountered in relation to two different causes (noted below). In the first, a warning is issued for Edge Nodes following the pre-checks. In the second, the edge node upgrade is stuck indefinitely at the 'switch_os' step.
This issue is resolved in VMware NSX 4.1.0, available at Broadcom downloads.
This issue can be encountered in relation to two different issues (noted below). In the first, a warning is issued for Edge Nodes following the pre-checks. In the second, the edge node upgrade is stuck indefinitely at the 'switch_os' step.
Vmid attribute is missing from EdgeNodeExternalconfigEntityId (VmMoreF) is stale in the DeploymentUnitInstance database table
Workaround for Issue 1: "Vmid attribute is missing from EdgeNodeExternalconfig"
API Method : [This method is available only from NSX version 3.2.3 through 4.1.0]
Note: If the API fix is not applicable due to the version, there is a workaround that involves making changes on the database. Please contact Broadcom Support in such a situation, referencing this KB article and providing the details about this along with the rest of the issue description.
*Ensure there is a viable backup available before taking the steps below.
vmID (VmMoreF Id) from vCenter vmID (VmMoreF Id) from the URL after completing the previous step.
nsxmgr> get nodesGET https://<nsxMgrIp>/api/v1/transport-nodes/<edgeTnId> nsxMgrIp with the FQDN or IP address of an NSX Manager node and <edgeTnId> with the node UUID value obtained in Step 2.--> If it is same then we can proceed to step 5.
--> If its different, please proceed to step 5 but make sure to update the vc_id value with correct ID when executing the step 6 (in the payload)
5. Create the payload for the POST API in the format below, using the output collected from step 3 including the vmID collected from Step 1b. { "vm_deployment_config": { }, "node_user_settings": { }, "node_settings": { }, "vm_id": " " }Example reference output:{ "vm_deployment_config": { "vc_id": "c47f70db-####-####-####-###########", ----> Need to make sure its the correct ID as on the NSX UI compute manager ID "compute_id": "domain-##", "storage_id": "datastore-###", "host_id": "host-##", "management_network_id": "dvportgroup-##", "management_port_subnets": [ { "ip_addresses": [ "192.168.#.# ], "prefix_length": 24 } ], "default_gateway_addresses": [ "192.168.#.#" ], "data_network_ids": [ "dvportgroup-###", "dvportgroup-###" ], "reservation_info": { "memory_reservation": { "reservation_percentage": 100 }, "cpu_reservation": { "reservation_in_shares": "HIGH_PRIORITY", "reservation_in_mhz": 0 } }, "resource_allocation": { "cpu_count": 4, "memory_allocation_in_mb": 8192 }, "placement_type": "VsphereDeploymentConfig" }, "node_user_settings": { "cli_username": "admin" }, "node_settings": { "hostname": "######", "search_domains": [ "example.com" ], "dns_servers": [ "192.168.#.#" ], "enable_ssh": true, "allow_ssh_root_login": true }, "vm_id":"vm-##"}
6. Execute an API call similar to the following: POST https://<nsxMgrIp>/api/v1/transport-nodes/<edgeTnId>?action=addOrUpdatePlacementReferences
In the Body section, use the payload drafted from Step 4 and replace the in the URL above like in step 3.nsxMgrIp
7. Retry the upgrade
Workaround for Issue 2: "EntityId (VmMoreF) is stale in DeploymentUnitInstance table"
If you have identified the issue as Issue #2 noted above, and the NSX version is between 3.2.3 and 4.1.0, the previous POST API workaround described under Workaround for Issue #1 will resolve it.
Note:
If you are contacting Broadcom support about this issue, please provide the following:
Handling Log Bundles for offline review with Broadcom support