Host commission in SDDC Manager fails with error - Failed to validate vSAN HCL status
book
Article ID: 387124
calendar_today
Updated On:
Products
VMware SDDC ManagerVMware Cloud Foundation 5.x
Issue/Introduction
ESXi host commission in SDDC Manager fails with error Failed to validate vSAN HCL status
Error in /var/log/vmware/vcf/operationsmanager/operationsmanager.log
ERROR [vcf_om,6793fd6019650b807d52e05fbff94ecc,6c38] [c.v.v.h.f.v.s.impl.HostHclValidator,host-comm-decomm-exec-3] Failed to query HCL from LCM service.
org.springframework.web.client.HttpServerErrorException$ServiceUnavailable: 503 Service Temporarily Unavailable: "<html><EOL><EOL><head><title>503 Service Temporarily Unavailable</title></head><EOL><EOL><body><EOL><EOL><center><h1>503 Service Temporarily Unavailable</h1></center><EOL><EOL><hr><center>nginx</center><EOL><EOL></body><EOL><EOL></html><EOL><EOL>"
DEBUG [vcf_om,6793fd60d90e4a3d14865a6f7cdcac32,9e07] [c.v.e.s.c.c.v.vsan.VsanManagerBase,host-comm-decomm-exec-1] HCL check failed for test vSAN HCL DB up-to-date due to red status
2025-01-24T20:52:46.999+0000 ERROR [vcf_om,6793fd60d90e4a3d14865a6f7cdcac32,9e07] [c.v.v.h.c.s.i.CommissionHostsValidator,host-comm-decomm-exec-1] Host validation failed for Host: esxi01.example.com
Take a note of local_data_timestamp value which records the latest HCL publish date for vsan_hcl_attributes Note: if the value is outdated and/or not the latest then you get an error/warning as per the threshold value
Save the file as all.json on your local machine. If you are unable to save the file, you must copy the entire content and create a new file with extension".json"
Copy the latest all.json file from your local machine to /home/vcf folder onto your sddc manager via tools like WinSCP
cd to /home/vcf (where the latest local copy of all.json is placed)
Upload the HCL file using the HCL upload API using the below command
curl -X PUT --location 'http://<sddcmanager_fqdn>/v1/vsan-hcl/content' --header 'Authorization: Bearer <put the token grabbed from step 8>' --header 'Content-Type: text/plain' [email protected]
Post successful execution of the API the contents of local_data_timestamp in vsan_hcl_attributes at lcm db will get updated to a new value, please verify the same as stated in step # 4