This article provides a solution to address the certificate validation error when HCX VM is installed in the vCenter.
Symptoms:
info mobilityagent[02425] [Originator@6876 sub=Solo.Vmomi opID=########-####
user=:VSPHERE.LOCAL\Administrator] Activation <<########-####-####-####-############, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 36042'>>, ha-certificate-manager, vim.host.CertificateManager.listCACertificates, <vim.version.v8_0_2_0, internal, 8.0.2.0>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x00007f6b5c009188]> : Invoke done [listCACertificates] on [vim.host.CertificateManager:ha-certificate-manager]
info mobilityagent[02425] [Originator@6876 sub=Solo.Vmomi opID=########-#### user=:VSPHERE.LOCAL\Administrator] Throw vmodl.fault.SecurityError
info mobilityagent[02425] [Originator@6876 sub=Solo.Vmomi opID=########-####
user=:VSPHERE.LOCAL\Administrator] Result:
--> (vmodl.fault.SecurityError) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
VMware Cloud foundation 5.1
VMware HCX
To resolve the issue remove the HCX VM and retry the precheck.
Workaround
IMPORTANT NOTE: Make sure that backup/snapshots have been taken prior to any modification.
/opt/vmware/vcf/operationsmanager/scripts/assessment/common-validations/vsphere8_upgrade_certificate_checks.py
to /root/vsphere8_upgrade_certificate_checks.py.backup
folder.cp /opt/vmware/vcf/operationsmanager/scripts/assessment/common-validations/vsphere8_upgrade_certificate_checks.py /root/vsphere8_upgrade_certificate_checks.py.backup
vsphere8_upgrade_certificate_checks.py.new
attached to the article in SDDC manager /tmp
folder using WinSCP.vsphere8_upgrade_certificate_checks.py.new
file.chmod 555 vsphere8_upgrade_certificate_checks.py.new
chown vcf_operationsmanager:vcf vsphere8_upgrade_certificate_checks.py.new
cp /tmp/vsphere8_upgrade_certificate_checks.py.new /opt/vmware/vcf/operationsmanager/scripts/assessment/common-validations/vsphere8_upgrade_certificate_checks.py
ls -lha /opt/vmware/vcf/operationsmanager/scripts/assessment/common-validations/vsphere8_upgrade_certificate_checks.py
It must be: vcf_operationsmanager vcf