BOSH tasks hang during Apply Changes and produce the following error when looking at the details of a particular hung task.
L Error: Unknown CPI error 'Unknown' with message 'Could not power on VM '<[Vim.VirtualMachine] vm-128883>': Insufficient resources to satisfy configured failover level for vSphere HA.' in 'crPI request ID: 'cpi-839390') Task 164775 | 16:35:54 | Error: Error resolving problem '3153': Unknown CPI error 'Unknown' with message 'Could not power on VM '<[Vim.VirtualMachine] vm-128883>': Insufficient resources to satisfy configured failovA.' in 'create_vm' CPI method (CPI request ID: 'cpi-839390')
Note: If you have a running deployment, it is not recommended to cancel queued tasks. It may result in a broken deployment.
To see all currently active tasks, run this command:
Admission control is a policy used by vSphere High Availability (HA) to ensure failover capacity within a cluster.
This issue occurs when the HA configuration of CPU or memory resources reserved for failover is violated or is insufficient to perform the intended task.
Symptoms include:
In the vSphere Console, navigate to the cluster experiencing the issue and do the following: Configure > vSphere Availability > Edit vSphere HA > Admission Control > Disable Host Failover Capacity or Modify the Reserved Capacity
This allows the tasks to resume processing and the Apply Changes or upgrade to continue.