@task_manager.require_exclusive_lock
    def reboot(self, task):
        driver_info = _parse_driver_info(task.node)
        driver_info['macs'] = driver_utils.get_node_mac_addresses(task)
        ssh_obj = _get_connection(task.node)

        # _power_on will turn the power off if it's already on.
        state = _power_on(ssh_obj, driver_info)

        if state != states.POWER_ON:
            raise exception.PowerStateFailure(pstate=states.POWER_ON)
Runs a given hook type (eg. post-commit)
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ssh.py/SSHPower.reboot--crossover with--dataset/ETHPy150Open aelse/cpthook/cpthook.py/CptHook.run_hook