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 moref id from vCenter:
GET https://<manager-ip>/api/v1/transport-nodes/<tn-id> Updating just the vm_id of the edge node that is present in the new vCenter using addOrUpdatePlacementReferences API call will throw the below error:To change the Edge VM parameters to match the new vCenter values after cross-vCenter migration:
GET https://<manager-ip>/api/v1/transport-nodes/<tn-id>
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": [ "#.#.#.#" ], "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": "########", "search_domains": [ "####" ], "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:
POST https://<manager-ip>/api/v1/transport-nodes/<tn-id>?action=redeploySince 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.
Documentation on Redeploying an NSX Edge Node