If you encounter this issue while Installing Pivotal CF then here is a potential fix. A web search showed no public fix to this so this might help others and the fix is fairly simple. The exact error I received is below and this occurred while installing Pivotal Cloud Foundry v1.2.2. on ESX 5.5.
`block in wait_for_task’: The operation is not allowed in the current connection state of the host. (RuntimeError)
To fix this issue, log in to vCenter and disconnect each of your servers that you are installing CF to. Right-click and choose disconnect. Wait for a moment and then right click and reconnect them. This fixes an issue where ESX appears to think the servers are in a state where it can’t power on or clone VMs, despite the fact the servers report no issues and connections appear fine.