--upgrade-store: upgrade the store layout, then exit #448

Merged
jcoffey-dev merged 1 commits from feat/upgrade-store into main 2026-11-18 15:56:02 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 122b7f7d2d --upgrade-store: upgrade the store layout, then exit
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 9m47s
For an orchestrator that upgrades the store as a job of its own before it
rolls a release out (27.1's step to layout 3 can't roll; lab spike S5).
It runs what a start runs on the store before serving, opens no ports and
starts no services, and exits 0 when the store is at this build's layout
(upgraded or found so), 1 when the upgrade failed, 2 when it refused.

Unlike a starting node it doesn't wait out another node's lease: it
refuses, and leaves that lease alone. A step that needs every other node
stopped waits up to six minutes for them to count as gone, so pods
stopped just before it don't fail the job, and is refused after that.

The arguments are now read with CONFIG_PATH set too, an option that takes
no value no longer swallows the next argument (so --upgrade-store
--config <PATH> works in that order), and a store command without a
configuration exits 1 instead of 0.

Closes #426
2026-11-18 08:42:33 -07:00