Skip to content

multihost_runner.py has incorrect gcloud command for finding number of workers #2781

@MrGeislinger

Description

@MrGeislinger

Bug report

Running the following:

python3 maxtext/tools/orchestration/multihost_runner.py \
  --ZONE=$ZONE \
  --TPU_PREFIX=$QR_NAME \
  --COMMAND="bash maxtext/tools/setup/setup.sh MODE=nightly LIBTPU_GCS_PATH=${LIBTPU_GCS_PATH}"

will lead to an a CalledProcessError.

This was done on a 2 slice v6e-8 (from a Queued Resource)

Logs/Output

Starting multihost runner...
2 slices found.
Traceback (most recent call last):
  File "maxtext/tools/orchestration/multihost_runner.py", line 493, in <module>
    main()
    ~~~~^^
  File "maxtext/tools/orchestration/multihost_runner.py", line 464, in main
    slices = get_slices()
  File "maxtext/tools/orchestration/multihost_runner.py", line 182, in get_slices
    completed_command = subprocess.run(command, capture_output=True, check=True)
  File "/usr/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['gcloud', 'compute', 'tpus', 'describe', 'REDACTED_QR_NAME-1', '--flatten=networkEndpoints[]', '--format=csv[no-heading](networkEndpoints.ipAddress)', '--project=REDACTED_PROJECT_ID', '--zone=us-central2-b']' returned non-zero exit status 2.

Environment Information

Ran from 796eaeb

Additional Context

Google

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions