Symptoms:
Cancelling bundle update failed.UPGRADE_CANCEL_CONFLICT; Failed to cancel upgrade; UpgradeId={Upgrade_ID}. Reason: Upgrade: {Upgrade_ID} cannot be cancelled in the given state: INPROGRESS as the only remaining upgrade element is in progress"UPGRADE_GET_FAILED; Failed to get upgrade; UpgradeId={Upgrade_ID}. Reason: No enum constant com.vmware.evo.sddc.lcm.model.upgrade.UpgradeStatus.FAILED",YEARDATETIME INFO [51209ef353aa0dd6,91af] [c.v.e.s.l.a.i.i.LogicalInventoryClient,pool-5-thread-5] acquired the resource lock for the resource : { "status": "FAILED", "createdTimeStamp": 0, "errorMessage": "DOMAIN ({DOMAIN_ID}) currently locked by below resources (/LCM/deployment/) having Description : Acquired DEPLOYMENT level lock for VMWARE_SOFTWARE upgrades", "resourceType": "DOMAIN" }YEARDATETIME WARN [51209ef353aa0dd6,91af] [c.v.evo.sddc.lcm.orch.Orchestrator,pool-5-thread-5] Cannot start upgrades since there are pending or, failed workflowsYEARDATETIME INFO [51209ef353aa0dd6,91af] [c.v.e.s.l.e.s.i.LcmEventServiceImpl,pool-5-thread-5] Creating LCM audit event for notification for eventName: UPGRADE_CANCELLEDYEARDATETIME INFO [51209ef353aa0dd6,91af] [c.v.e.s.l.e.s.i.LcmEventServiceImpl,pool-5-thread-5] Creating LCM audit event for notification for eventName: UPGRADE_ABORTEDYEARDATETIME ERROR [51209ef353aa0dd6,91af] [c.v.evo.sddc.lcm.orch.Orchestrator,pool-5-thread-5] Couldn't acquire lock for the domain {DOMAIN_ID}YEARDATETIME INFO [51209ef353aa0dd6,91af] [c.v.evo.sddc.lcm.orch.Orchestrator,pool-5-thread-5] have acquired all the locks required for the upgrade : false
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
The issue has occurred because the previous task received an "Internal Error" and the lock was not released.
To clear the lock follow the steps below, before proceeding ensure snapshot the SDDC Manager VM.
curl localhost/locks | jqOR
psql -h localhost -U postgres -d platform -c "select * from lock;"
psql -h localhost -U postgres -d platform -c "truncate lock;"
systemctl restart lcm