'Reboot the node.
:return Effect:'

def reboot(self):

    def do_reboot(_):
        with start_action(action_type=u'flocker:provision:aws:reboot', instance_id=self._instance.id):
            self._instance.reboot()
            _wait_until_running(self._instance)
    return run_remotely(username='root', address=self.address, commands=run_from_args(['sync'])).on(success=do_reboot)
