Fix revert regression
Merge pull request #343 from xenolog/q_fix_ha_PR1

FIX: resource MUST be cleanupped before using
Merge pull request #344 from aglarendil/develop

Fix revert regression
Merge branch 'develop' into q_fix_ha_PR1
cache in _get_agents_by_type
temporary disable cleanupping ports