vSAN HCL DB on SDDC Manager is out of date. This is a critical error if vSAN HCL DB has not been updated within the last 90.0 day(s) and a warning if vSAN HCL DB has not been updated within the last 60.0 day(s).
Api call to /v1/vsan-hcl/content failed.
Caused by: java.lang.IllegalArgumentException: URI path begins with multiple slashes
VMware Cloud foundation 5.x
psql -h localhost -U postgres -d lcm -c "select * from vsan_hcl_attributes;" > /tmp/hclattributes.txt
If SDDC Manager is 5.1.1 then use the below command
/usr/pgsql/13/bin/psql -U postgres -h localhost -d lcm-c "select * from vsan_hcl_attributes;" > /tmp/hclattributes.txt
less /tmp/hclattributes.txt
note down the local_data_timestamp value which records the latest HCL publish date for vsan_hcl_attributes. To convert the local_data_timestamp like 1704067200 to human readable format - run date -d@1704067200. This makes it easier to see when the HCL was last updated.
Note: if the value is outdated and/or not the latest then you get an error/warning as per the threshold valuecurl --location 'http://<sddcmanager_fqdn>/v1/tokens' --header 'Content-Type: application/json' --data-raw '{"username":"<SSO_USERNAME>","password":"<SSO_PASSWORD>"}'
curl -X PUT --location 'http://<sddcmanager_fqdn>/v1/vsan-hcl/content' --header 'Authorization: Bearer <put the token grabbed from step 7>' --header 'Content-Type: text/plain' -d@all.json