To solve this issue:
1. Take a SSH session to the vCenter
2. enable shell
3. navigate to /etc/systemd/network/10-eth0.network
4. The 10-eth0.network file should look like the sample shown below:
---------------------------------------------------------------------------
[Match]
Name=eth0
[Network]
Gateway=192.168.0.1
Address=192.168.0.45/24
DHCP=yes
DNS=192.168.0.10
Domains=example.com
[DHCP]
UseDNS=false
10-eth0.network
--------------------------------------------------------------------------------------
5. In case the Domains field has a stale or duplicate entry other than the domain name of your vCenter then correct it to the right value.
Eg: Domains=example.com example.com change this to Domains= example.com
6. Retry / restart the upgrade from stage 2 and the upgrade would bypass the network test as the mismatch of the domain name is corrected.