vSphere Cluster Services (vCLS) fail to deploy due to EAM extension certificate thumbprint mismatch
search cancel

vSphere Cluster Services (vCLS) fail to deploy due to EAM extension certificate thumbprint mismatch

book

Article ID: 369055

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • VCLS VMs are not provisioned.
  • This may cause issues with remediation, resulting in: "Error to remediate cluster, error for service ESX Agent Manager"
  • ESX Agent Manger will have multiple error traces. Where the error: "EAM is Still loading from database".

    In the vCenter Server /log/vmware/eam/eam.log the following entries occur

| WARN | vim-async-1 | ExtensionSessionRenewer.java | 227 | [Retry:Login:com.vmware.vim.eam:###########] Re-login failed, due to:
com.vmware.eam.security.NotAuthenticated: Failed to authenticate extension com.vmware.vim.eam to vCenter.
| ERROR | vlsi | DispatcherImpl.java | 468 | Internal server error during dispatch
com.vmware.vim.binding.eam.fault.EamServiceNotInitialized: EAM is still loading from database. Please try again later.

        In the vCenter Server/var/log/vmware/vpxd/vpxd.log the following entries occur

error vpxd[#######] [Originator@6876 sub=Default opID=########] [VpxLRO] -- ERROR lro-8243441 -- 52ba1322-####-db6b-####-1fc7c21ae343 -- SessionManager -- vim.SessionManager.login
ExtensionByCertificate: :vim.fault.InvalidLogin
--> Result:
--> (vim.fault.InvalidLogin) {
-->    faultCause = (vmodl.MethodFault) null,
-->    faultMessage = <unset>
-->    msg = ""
--> }
--> Args:
-->
--> Arg extensionKey:
--> "com.vmware.vim.eam"
--> Arg locale:
-->

Environment

vCenter Server 7.x
vCenter Server 8.x

Cause

There is a mismatch between vpxd-extension certificate stored in VECS and the certificate information stored in vCenter Server Database for EAM extension.

Resolution

Verify and resolve mismatched EAM extension thumbprints using one of the following methods.

Note: Ensure there is a valid backup or offline snapshot of the vCenter Server Appliance (VCSA) before proceeding. Refer to VMware vCenter in Enhanced Linked Mode pre-changes snapshot best practices.

Method 1: Manual Thumbprint Extension Update (using vCenter CLI)

  1. Log in to the vCenter Server Appliance using SSH.

  2. Run these commands to create a directory and retrieve the vpxd-extension solution user certificate and key: This command will make changes to your system. Review it carefully before running.

    1. mkdir certificate

    2. /usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store vpxd-extension --alias vpxd-extension --output /certificate/vpxd-extension.crt

    3. /usr/lib/vmware-vmafd/bin/vecs-cli entry getkey --store vpxd-extension --alias vpxd-extension --output /certificate/vpxd-extension.key

  3. Identify the vCenter Server's PNID: Review this command before running it.

    /usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
     
  4. Update the Extension Certificate: Run the following command, replacing <PNID/FQDN of vCenter Server> with the PNID obtained in the previous step. This command will make changes to your system. Review it carefully before running.

    python /usr/lib/vmware-vpx/scripts/updateExtensionCertInVC.py -e com.vmware.vim.eam -c /certificate/vpxd-extension.crt -k /certificate/vpxd-extension.key -s <PNID/FQDN of vCenter Server> -u [email protected]

    Note: If the default domain was changed, update [email protected] to match your environment. Type the Administrator password when prompted.

  5. Restart the VMware ESX Manager service: This command will make changes to your system. Review it carefully before running.

    service-control --stop vmware-eam && service-control --start vmware-eam
     

Method 2: Update Thumbprints using vCert Script

Note: This script is intended for use at the direction of Broadcom Support.

  1. Download the vCert script from the official source.
  2. Upload the script to your vCenter Server appliance.
  3. Unzip and make the script executable: This command will make changes to your system. Review it carefully before running.
    1. unzip -q vCert-<version>.zip
    2. cd vCert<version>
    3. chmod +x vCert.py
       
  4. Launch the script: Review this command before running it.
    ./vCert.py
     
  5. Navigate to Certificate Management: From the main menu, select: 3. Manage Certificates From the sub-menu, select: 7. vCenter Extension thumbprints

The script will automatically check for and resolve mismatches between stored thumbprints and actual certificates.