After NSX-T edge cross-vCenter vmotion while both the vCenters are registered in NSX manager as compute managers, there might be alarms generated on NSX UI for missing VM morefid from vCenter:
VMware NSX-T Data Center
VMware NSX
GET https://<manager-ip>/api/v1/transport-nodes/<tn-id>
addOrUpdatePlacementReferences
API call will throw the below error:++ Make a note of the output returned in the GET API call for the edge transport node reporting the alarms:GET https://<manager-ip>/api/v1/transport-nodes/<tn-id>
++ The below parameters will need to be updated for the edge VM as per the new vCenter values:POST https://<manager-ip>/api/v1/transport-nodes/<tn-id>?action=addOrUpdatePlacementReferences
"deployment_config": {
"vm_deployment_config": {
"vc_id": "#####-#####-#####-####-#######",
"compute_id": "domain-#####",
"storage_id": "datastore-#####",
"host_id": "host-####",
"compute_folder_id": "group-#####",
"management_network_id": "dvportgroup-####",
"ipv4_assignment_enabled": true,
"management_port_subnets": [
{
"ip_addresses": [
"#.#.#.#"
],
"prefix_length": 23
}
],
"default_gateway_addresses": [
"x.x.x.x"
],
"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": 8,
"memory_allocation_in_mb": 32768
},
"placement_type": "VsphereDeploymentConfig"
},
"node_user_settings": {
"cli_username": "admin"
}
},
"node_settings": {
"hostname": "xxxxxxxx",
"search_domains": [
"xxxx"
],
"ntp_servers": [
"#.#.#.#",
"#.#.#.#"
],
"dns_servers": [
"#.#.#.#",
"#.#.#.#"
],
"enable_ssh": true,
"allow_ssh_root_login": false,
"syslog_servers": [
{
"server": "#.#.#.#",
"port": "###",
"protocol": "TCP",
"log_level": "INFO"
}
],
"enable_upt_mode": false
},
"vm_id": "vm-####"
}
All of the above-highlighted values can be found in the URLs by navigating to the below paths in vCenter:
++ The alarms might not get resolved even after updating the deployment config parameters per the values present in new vCenter.
We can run the below redeploy API call now for the edge node:POST https://<manager-ip>/api/v1/transport-nodes/<tn-id>?action=redeploy
Since the deployment config parameters were updated as per new vCenter values, NSX manager will now try to redeploy the node in the new vCenter itself.