After upgrading to vCenter 6.7 and then attempting a vSphere Distributed Switch upgrade from vDS 6.5 to vDS 6.6 or later version via the web client, results in the following message:
An upgrade for the vSphere Distributed switch in datacenter is in progress
The message "An upgrade for the vSphere Distributed switch in datacenter is in progress" may still appear even after the upgrade is complete. This happens if no host member is available in the vSphere Distributed Switch configuration, or if a host member has failed to upgrade several times.
This is resolved in vCenter 6.7 U2 - VMware vSphere 6.7 Release Notes. Download Broadcom products and software through KB Download Broadcom products, patches and software.
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgresupdate vpx_dvs upgrade_status set upgrade_status=0;\qvmon-cli -r vpxdAdd a new portgroup on the VDS and then delete the newly added portgroup. This will make the web client to show the synced status.
In some cases, there are host(s) that have not updated during the upgrade and their vDS versions from the 'etherswitch' (vDS 6.5) to the 'cswitch' (vDS 6.7 or later).
This can be confirmed by:
net-dvs -l | lessTo resolve this discrepancy, remove the identified 'etherswitch' ESXi host(s) from the vDS through the 'Remove Host(s)' wizard in the vDS 'Networking' tab on vCenter, followed by re-adding it back. It may be required to remove all associations from the vDS first before the ESXi host removal. In other words, moving VMs, vmkernel(s) and uplinks from the vDS to a standard switch.
Reference the following KBs on guidance on how to migrate VMs and VMKernel adapters from Distributed Switches (vDS) to Standard Switches (vSS).