Commit b10f5f9
committed
feat(admin-cli): inspect a machine's MachineBootInterface across its lifecycle
We formalized boot-interface management around a single MachineBootInterface and
now track it across the machine lifecycle, but that view lives in four stores --
the owned machine_interfaces rows, predicted_machine_interfaces, the
explored_endpoints default, and the retained_boot_interfaces pairs we keep across
a delete and re-ingest. There was no one place to see what each store believes a
machine's boot interface is.
Add `admin-cli machine boot-interfaces <machine-id>`: a read-only command that
gathers all four stores for one machine and prints them together as an ASCII
table, JSON, or YAML, alongside the effective boot interface the system would
select (pick_boot_interface) and a flag for when the stores disagree.
- New read-only GetMachineBootInterfaces Forge RPC + handler that gathers the four
stores in one read transaction; the report messages include boot_interface_id
explicitly (the existing MachineInterface message omits it).
- A non-consuming, non-window-filtered retained_boot_interfaces read so the
troubleshooting view surfaces stale records that the window-aware reads hide.
- The machine boot-interfaces subcommand with the three renderers, the
effective-pick summary, and the divergence flag.
Tests cover the three renderers and api-core integration tests that seed all four
stores and assert the per-store entries, the effective pick, and divergence.
Signed-off-by: Chet Nichols III <chetn@nvidia.com>1 parent 1312781 commit b10f5f9
14 files changed
Lines changed: 1078 additions & 1 deletion
File tree
- crates
- admin-cli/src
- machine
- boot_interfaces
- api-core/src
- auth
- handlers
- tests
- api-db/src
- rpc
- proto
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments