Fix geo up: pin the object store to pgsty/silo and resume a failed up

just lab geo up stopped at the object-storage step on 2026-11-17. The quay.io/minio/minio image now answers unauthorized and the mc download from dl.min.io returns 410, so the registry Postgres never started. Every re-run then refused, because the VMs and state already existed.

flowchart TD
  A[geo up] --> B{pair state?}
  B -->|finished| X[refuse]
  B -->|unfinished, same names| C[resume]
  B -->|none| D[create primary]
  C --> D
  D --> E[license gate]
  E --> F[create secondary]
  F --> G[pull object store image by digest]
  G --> H[wait for health/live 200]
  H --> I[mc wrapper over bundled mcli, make registry bucket]
  I --> J[registry Postgres]
  J --> K[replicate, verify]
  A -. failure or signal .-> Z[print retry and down commands]

What changed

  • Object store. geo.sh runs docker.io/pgsty/silo pinned by tag and index digest (RELEASE.2026-11-12T00-00-00Z). Silo is the community fork of minio/minio (formerly pgsty/minio), which keeps the MINIO_* variables and /minio/health/live. The client ships inside the image as mcli, so /usr/local/bin/mc on the VM becomes a one-line wrapper and the ~40 existing mc call sites are unchanged. The step waits on the health endpoint before it makes the bucket.
  • Alternatives. Chainguard's free tier serves only latest, which a tag cannot pin. A build from source costs a Go toolchain and minutes per site. The Garage the caproni base uses is chart-internal, so no VM base can share it. The Docker Hub pgsty/minio image is frozen at 2026-08-04.
  • Resume. up writes an unfinished marker to the pair state first. A re-run with the same names resumes and reuses healthy installs. A finished pair, or different names against an unfinished one, still refuses. On failure, INT or TERM, up prints the retry command and the down command, naming the instances.
  • Records. The pin and its provenance are a row in the upstream dependency register in docs/maintenance.md, with a renovate comment on the constant. geo.md words were cut to hold the word budget (40488 of 40489).

Proof

  • engine-selftest.sh asserts the pin format, the run line, that no floating or upstream reference remains, the refusals, and the retry and down hint.
  • Live just lab geo up on GCE: run 1 was killed after the primary VM was created. Run 2 printed geo up (resuming), reused that VM, and finished. On both sites /minio/health/live returned 200, the regdb Postgres container was running and accepting connections, the registry bucket existed, and the secondary was in recovery on the primary's slot. Both VMs were then torn down and the instance, snapshot, disk and address lists were empty.

docker.io/library/postgres:16 for the registry database is still a major tag and is out of scope here.

Merge request reports

Loading
Loading