'Retrieve resource info.
This method is called when nova-compute launches, and
as part of a periodic task.
:returns: dictionary describing resources'

def get_available_resource(self, nodename):

    host_stats = self._vc_state.get_host_stats(refresh=True)
    stats_dict = self._get_available_resources(host_stats)
    return stats_dict
