'Let the resource tracker know that an instance has changed state.'

def _update_resource_tracker(self, context, instance):

    if (instance.host == self.host):
        rt = self._get_resource_tracker()
        rt.update_usage(context, instance, instance.node)
