VCF Adapter Creation Fails with "java.lang.IllegalStateException: Duplicate key" During vSphere 8.x to VCF 9.1 Convergence
search cancel

VCF Adapter Creation Fails with "java.lang.IllegalStateException: Duplicate key" During vSphere 8.x to VCF 9.1 Convergence

book

Article ID: 451249

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

  • When performing a convergence of a vSphere 8.x environment to VMware Cloud Foundation (VCF) 9.1, the VCF adapter instance creation fails, preventing the deployment of the unified Cloud Proxy (CP).

  • Reviewing the /storage/logs/vcops/logs/collector.log in VCF Operations reveals errors similar to the following:
    [com.vmware.vrops.adapter.vcf.util.VropsSuiteApiUtil.releaseClientConnection] - Failed to close suite api client!
    java.lang.RuntimeException: com.vmware.ops.api.client.exceptions.ClientSideException: Value "null" is invalid for request param "username". Allowed values are = "[not null and not empty]".
    ...
    ERROR collector [com.vmware.adapter.management.components.extensions.VcExtensionsComponent.getExtensionInfoForVc] - Unable to connect to VC
    java.lang.IllegalStateException: Duplicate key caad######################################1fd43 (attempted merging values com.integrien.alive.common.adapter3.config.CertificateConfig@####### and com.integrien.alive.common.adapter3.config.CertificateConfig@#######)

Environment

  • VMware Cloud Foundation (VCF) 9.1
  • VCF Operations 9.1
  • VMware vSphere 8.x

 

Cause

This issue occurs when duplicate vCenter Server certificates or thumbprints exist across multiple endpoints within the VCF Operations database:

  1. Certificates previously imported manually through the UI or REST API are stored in the Operations database with the type CERTIFICATE_AUTHORITY.
  2. When creating the VCF adapter instance, the workflow attempts to retrieve the same certificate from the Management Domain.
  3. Attempting to merge these identical certificates results in a Java java.lang.IllegalStateException: Duplicate key runtime exception, breaking the adapter setup workflow.

Resolution

This issue is scheduled to be resolved in a future release.

To resolve this issue, a database modification is required. Open a support case with Broadcom Support for assistance.