I thing we should do that check inside the Resource->migrate() method. That way there is no need to export that is_on_node() API. There is no real need to do an additional check inside exec_resource_agent()?