cli.reservation

otto reservation — read-only helpers over the configured reservation backend.

Subcommands:

  • otto reservation whoami — show the resolved identity and backend. Needs no lab: identity and backend come from repo settings + root options.

  • otto --lab LAB reservation check — run the reservation check and print a human-readable report. Useful as a pre-flight before a long otto test. Loads the lab (which defines the required resources) lazily; never contacts a host.

The group is registered lab_freecheck is the one subcommand that needs lab data, and it pulls the lab in itself via ensure_lab_context.

otto.cli.reservation.reservation_callback(ctx: Context) None

Inspect and verify lab reservations.

Reservation queries are informational and touch no remote host, so this command creates no per-invocation output directory.

otto.cli.reservation.whoami(ctx: Context) None

Show the resolved reservation identity and backend (no lab required).

otto.cli.reservation.check(ctx: Context) None

Run the reservation check for the top-level --lab and report.