When scheduled daily job to synchronize the inventory versions fails to acquire lock, due to other parallel operations currently running, a task failure would be observed in the VMware Cloud Foundation task panel.
VCF 5.2
Synchronize inventory versions workflow failed to acquire lock. The Task "Acquire Lock" would fail, with error message saying "Lock is unavailable" and remediation to try again later. This can happen when another parallel workflow has already obtained the inventory lock, when the scheduled daily job triggers.
Workaround:
If you are using a version of VCF prior to 5.0, the deployment lock can be manually removed by following these steps:
Important: Always take a snapshot of the SDDC Manager appliance before performing any database-level modifications.
psql -h localhost -U postgres -d platform -c "select * from lock;"psql -h localhost -U postgres -d platform -c "delete from lock where resource_type='deployment';"After performing these steps, domain-related operations in SDDC Manager should proceed without issue.