Error "The vCenter Server should not be in ELM" while trying to Import or Upgrade vCenter to VCF 9.1
search cancel

Error "The vCenter Server should not be in ELM" while trying to Import or Upgrade vCenter to VCF 9.1

book

Article ID: 454990

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • During the vSphere 8 to VMware Cloud Foundation (VCF) 9.1 upgrade, the VCF installer fails during the existing component precheck with below error message:

    "The vCenter Server should not be in ELM for <vCenter_fqdn> . Remove the vCenter Server from the ELM ring"

  • Import a vCenter to existing VCF Environment as Workload Domain Fails with the same error message.




  • vCenter is not part of Enhanced Linked Mode and executing Repadmin command does not show any ELM Partners (shows blank result).

    /usr/lib/vmware-vmdir/bin/vdcrepadmin -f showservers -h localhost -u administrator

  • Topology service on vCenter shows any of the following error message:

    /var/log/vmware/topologysvc/topology-svcs.log

    Internal Server Error (Failed to get client affinity information for (<Stale fqdn or IP Address>). CDC Native platform error [code: 382312491]

    OR

    Internal Server Error (Failed to get client affinity information for (<Stale fqdn or IP Address>). CDC Native platform error [code: 382312513]

Environment

  • VCF 9.1.
  • vCenter 9.1
  • vCenter Server 8.0

Cause

vCenter import workflow connects to Topology Service on vCenter to list all the ELM nodes. This function fails when there are stale vCenter objects in Computers container on VMDIR DB on vCenter Server.

Resolution

Remove the stale entries by following the below steps:

  1. Take snapshot or file level backup of the vCenter.
  2. SSH to vCenter.
  3. Execute ldapsearch command to list the entries.

    ldapsearch ldap://localhost -LLL -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W -b "ou=Computers,dc=vsphere,dc=local" -s sub

    Sample result:
    root@ [ ~ ]# ldapsearch ldap://localhost -LLL -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W -b "ou=Computers,dc=vsphere,dc=local" -s sub
    Enter LDAP Password:
    dn: ou=Computers,dc=vsphere,dc=local
    
    dn: cn=stale_vcenter.example.com,ou=Computers,dc=vsphere,dc=local


  4. Delete the entries using below ldapdelete command.

    ldapdelete -H ldap://localhost  -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W "cn=<stale entry to delete>,ou=Computers,dc=vsphere,dc=local"

    Sample Result:
    root@ [ ~ ]# ldapdelete -H ldap://localhost  -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W "cn=stale_vcenter.example.com,ou=Computers,dc=vsphere,dc=local"
    Enter LDAP Password:
    root@ [ ~ ]#
    
  5. Retry the VCF installer precheck or vCenter Import workflow.

Additional Information

Alternatively, Jxplorer can be used to connect to the VMDIR database and manually remove the stale entries under "Computers" container. Refer Using JXplorer to connect to the vSphere Single Sign-on.