Upgrading a Platform Service Controller (PSC) or vCenter Server Appliance (vCenter Server) to versions 6.5, 6.7, or 8.x fails during the vmafd firstboot phase.
Symptoms:
Error message: Failed to force refresh TRUSTED_ROOTS; Error code - 183.
Upgrade fails during the execution of vecs-cli force-refresh.
Log files /var/log/firstboot/vmafd-firstboot.py_xxxxx_stderr.log or vmafdd.log contain Error - 1006 or VecsSrvAddCertificate returning 1006.
This may occur during a converge operation when migrating from external PSC to an embedded deployment.
The issue is caused by an unexpectedly high number of certificate entries residing in the TRUSTED_ROOT_CRLS store within the VMware Endpoint Certificate Store (VECS).
To resolve this issue, the extra entries in the TRUSTED_ROOT_CRLS store must be removed.
Log in to the PSC or vCenter Server node via SSH.
Verify the number of entries in the TRUSTED_ROOTS store:
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS | grep Number
Verify the number of entries in the TRUSTED_ROOT_CRLS store:
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOT_CRLS | grep Number
Download the crl-fix.sh script attached and upload it to the /tmp folder of the impacted appliance.
Change directory to /tmp:
cd /tmp
Make the script executable:
chmod +x crl-fix.sh
Remove DOS return characters from the script:
sed -i -e 's/\r$//' crl-fix.sh
Execute the script:
./crl-fix.sh
Restart services on all vCenter Servers and PSCs within the same SSO domain.
For instructions on removing expired CA certificates specifically from the TRUSTED_ROOTS store, refer to Broadcom KB 326288.