When managing cluster images in vCenter Server, you may experience the following symptoms:
hcl_python_lib.log
2142-##-##T##:##:##.###Z ERROR hardware_discovery.services.vc_service Unknown exception during retrieving of service contentTraceback (most recent call last):...pyVim.sso.SoapException: SoapException:faultcode: ns0:FailedAuthenticationfaultstring: Invalid credentials...2142-##-##T ERROR main Internal error occurred##:##:##.###Z
To resolve this issue, the future-dated DB entry for the affected cluster must be manually cleared from the PostgreSQL VCDB. Once removed, newly run HCL checks will successfully save to the database.
Important: Always take an offline snapshot or file-based backup of the vCenter Server Appliance (vCSA) before making manual modifications to the database.
Workaround :
1. Connect to the vCenter Server Appliance via SSH and log in as root.
2. Download and copy the script attached to this KB to the location
/tmp/hcl_cleanup.sh.
Instructions for running script :
1. Make the script executable: chmod +x /tmp/hcl_cleanup.sh
2. Run the script: /tmp/hcl_cleanup.sh
3. When prompted, enter the Cluster ID of the problematic cluster (e.g., domain-cXX).
4. Once the script confirms the row(s) have been deleted, return to the vSphere Client and manually trigger a new Cluster Image Compliance check.