applyDVPort Network API operation failed and was rolled back because the task caused the host to disconnect from vCenter Server.The operation applyDVPort on the host <host-fdqn> disconnected the host and was rolled back.info hostd[2121212] [Originator@2121 sub=Vimsvc.ha-eventmgr opID=HB-host-<host-uuid>-DvsHandleHostReconnect-<dvs-uuid> user=vpxuser] Event 166 : Network configuration on the host <hostname> is rolled back as it disconnects the host from vCenter server.
ESXi and vCenter Server
vmnicX) used by the vSphere Distributed Switch (VDS).applyDVPort), but the operation failed because the necessary management network connectivity (gateway and/or vCenter) was lost due to the faulty uplink, triggering an automatic rollback.The issue can be resolved by correcting the uplink configuration and ensuring the VDS had proper physical connectivity for its uplinks:
Remove the Uplink: Remove vmnicX from the vSphere Distributed Switch (VDS).
Re-add the Uplink: Re-add vmnicX and assign it to a different available uplink slot, in this case, uplinkY.
Reboot the Host: Reboot the ESXi host after making the VDS configuration change.
After this procedure, the host should not experience disconnection errors or the issues above with the VDS.