def _get_console_pid(node_uuid):
    """Get the terminal process id from pid file."""

    pid_path = _get_console_pid_file(node_uuid)
    try:
        with open(pid_path, 'r') as f:
            pid_str = f.readline()
            return int(pid_str)
    except (IOError, __HOLE__):
        raise exception.NoConsolePid(pid_path=pid_path)
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/console_utils.py/_get_console_pid