* TODO: check current agent status and updateAgentStatus to removed. If
* it was already removed, that means someone is deleting host
* concurrently, return. And consider the situation of CloudStack
* shutdown during delete. A global lock?
*/
AgentAttache attache = _agentMgr.findAttache(hostId);
// Get storage pool host mappings here because they can be removed as a
// part of handleDisconnect later
// TODO: find out the bad boy, what's a buggy logic!
List<StoragePoolHostVO> pools = _storagePoolHostDao
.listByHostIdIncludingRemoved(hostId);