‘Duplicate key vds_name’ error while adding or creating a cluster in an imported/converted domain in SDDC Manager.
search cancel

‘Duplicate key vds_name’ error while adding or creating a cluster in an imported/converted domain in SDDC Manager.

book

Article ID: 421943

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • When creating a new cluster in SDDC Manager within an imported environment, the workflow fails at 65% with the error “Duplicate key vds_name”.

  • Log file /var/log/vmware/vcf/domainmanager/domainmanager.log will show entries similar to 

YYYY-MM-DDTHH:MM:SS ERROR [vcf_dm,692705ad2254fee5a07f48623cbb7f5a,abfc] [c.v.v.c.f.a.UpdateInventoryVdsWithNsxDetailsForClustersAction,dm-exec-1]  Failed to update the VDS in the invent
ory
java.lang.IllegalStateException: Duplicate key vds_name (attempted merging values class Vds {
    

Environment

VCF 5.2.x 

Cause

This issue occurs because the Add Cluster workflow triggers a VDS inventory synchronization for the imported domain. In environments where multiple clusters share the same vDS, SDDC Manager attempts to update that vDS multiple times, resulting in the “Duplicate key vds_name” error.

Resolution

If you encounter the symptoms outlined above, please contact Broadcom Technical Support for further assistance, as the resolution involves modifying SDDC Manager database.