"An upgrade for the vSphere Distributed switch in datacenter is in progress" status after VDS Upgrade
search cancel

"An upgrade for the vSphere Distributed switch in datacenter is in progress" status after VDS Upgrade

book

Article ID: 448707

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

After performing a vSphere Distributed Switch (vDS) upgrade, the vSphere Client incorrectly displays a persistent banner stating that an upgrade is in progress. This occurs even when the switch shows the correct target version in the summary tab.

Symptoms:

  • The banner "An upgrade for the vSphere Distributed switch in datacenter is in progress" remains visible.
  • Some ESXi hosts may show as "Out of Sync" with the Distributed Switch.

Environment

  • VMware vCenter Server 6.x
  • VMware vCenter Server 7.x
  • VMware vCenter Server 8.x

Cause

The vDS upgrade_status flag in the vCenter Database (VCDB) is not manually or automatically cleared following the upgrade completion. This typically happens when host members fail to acknowledge the upgrade or are unavailable during the process.

Resolution

If the issue persists after a successful upgrade, use  the following method to synchronize the status.

Workaround:

 

Reset Status via vCenter Database

  1. Take a snapshot of the vCenter Server.
  2. Open an SSH session to the vCenter Server and log in as root.
  3. Access the vCenter Database (VCDB):
     
    /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
  4. Run the following command to reset the upgrade status:
     
    update vpx_dvs upgrade_status set upgrade_status=0;
  5. Exit the database:
     
    \q
  6. Restart the VPXD service to refresh the UI:
     
    vmon-cli -r vpxd

Additional Information

Upgrading vSphere Distributed Switch after upgrading vCenter to 6.7 shows the message “An upgrade for the vSphere Distributed switch in datacenter is in progress”