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
upruns, state carriesstep,step_index,step_totalandstep_since, written at each step boundary through the state writer, so a concurrentstatus --jsonreads them. A finishedupclears them. A failedupkeeps the failed step besidefailed_step. Omnibus, caproni and each Geo rig go through the samecmd_up, so all three report.omnibus_rerunsharesvm_recovery's index. - Components (#37 (closed)).
status --jsoncarriescomponents, a list ofname,kindandready, withcomponents_source,components_read_atandcomponents_error. Readiness is a real check: omnibus runsgitlab-ctl statusplus a 200 from/users/sign_ininside the VM; caproni reads deployment and statefulset readiness in thegitlabnamespace. The AI gateway container and the runner service appear only when the lab has them. Plainstatus --jsonnever touches the VM and says the list iscached;--livereads the VM (bounded SSH, 8 s connect) and sayslive.upwrites the cache just before it finishes. When the VM cannot be read,componentsis null andcomponents_errorsays why. schema_versionis 9. The keys are documented ingce/operations.mdbeside 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 cachedAfter 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)