Show the step up is on and the components the lab runs

What changes

up now records where it is, and status --json lists what the lab runs.

  • Step (#36 (closed)). While up runs, state carries step, step_index, step_total and step_since, written at each step boundary through the state writer, so a concurrent status --json reads them. A finished up clears them. A failed up keeps the failed step beside failed_step. Omnibus, caproni and each Geo rig go through the same cmd_up, so all three report. omnibus_rerun shares vm_recovery's index.
  • Components (#37 (closed)). status --json carries components, a list of name, kind and ready, with components_source, components_read_at and components_error. Readiness is a real check: omnibus runs gitlab-ctl status plus a 200 from /users/sign_in inside the VM; caproni reads deployment and statefulset readiness in the gitlab namespace. The AI gateway container and the runner service appear only when the lab has them. Plain status --json never touches the VM and says the list is cached; --live reads the VM (bounded SSH, 8 s connect) and says live. up writes the cache just before it finishes. When the VM cannot be read, components is null and components_error says why.
  • schema_version is 9. The keys are documented in gce/operations.md beside the existing ones, with a CHANGELOG entry.

No diagram: each call returns two or three fields and one list in one document, as the issues say.

Proof

Selftests: new cases for the step sequence per base (caproni, --no-aigw, --no-gitlab, dev, omnibus), clearing on success, a failure that keeps the step, and every components path (live, cached, unreachable, error, empty output, VM terminated, --live without --json).

Live, one omnibus rig (--no-aigw, 11 steps), polled every 30 s during up:

03:32:43 booting       startup_wait        3/11
03:33:46 installing    omnibus_first_pass  6/11
03:48:18 bootstrapping omnibus_rerun       7/11
03:55:33 configuring   rails_config        9/11
03:57:37 configuring   license            10/11
03:58:39 ready         (step keys null)    components_source cached

After up, status --json --live returned [{"name":"vm","kind":"vm","ready":true},{"name":"gitlab","kind":"service","ready":true}] with source live. The rig was torn down and no instance remains. The caproni path is covered by selftests only, not a live rig.

The word budget stays under its ceiling: the docs added are paid for by cuts elsewhere.

Closes #36 (closed) Closes #37 (closed)

Merge request reports

Loading
Loading