diff --git a/MIGRATION.md b/MIGRATION.md index 9e48536..e7e6961 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -20,17 +20,32 @@ step.** Every step below that touches a server says so. Hetzner console. - [ ] Delete the two offline runners (ids 1 and 2) in Forgejo → Site administration → Runners. -- [ ] Phase 2 (asxpio-ops), below. -- [ ] One week after Phase 2: `rm -rf /old-root` on asxpio-ops, delete its - snapshot. +- [x] Phase 2 (asxpio-ops), 2026-11-17. +- [ ] Merge asxpio's `podman-healthcheck` branch: until then its CI + deploy times out waiting for "healthy" (the app itself runs). +- [ ] **2026-11-24 or later:** `rm -rf /old-root` on asxpio-ops (the old + image layers are already gone; what is left are the Postgres 17/18 + rollback volumes and Debian itself), then delete its snapshot + `asxpio-ops-pre-nixos-2026-11-17`. +- [ ] Delete `claude-test-nixos-a` and the rehearsal network and firewall + (they hold restored production data). +- [ ] Phase 3. ## Where things stand (2026-11-17) -**asxpio-services runs NixOS** since 2026-11-17 (Phase 1 below, done) and -is deployed by `.forgejo/workflows/nixos.yaml` from `main`. **asxpio-ops -still runs Debian**, deployed by Ansible from `main`; Ansible no longer -manages services (inventory group `nixos`). Snapshot `pre-nixos-2026-11-17` -of services is kept until `/old-root` is deleted. +**Both servers run NixOS** since 2026-11-17 (Phases 1 and 2 below, done) +and are deployed by `.forgejo/workflows/nixos.yaml` from `main`, ops +first. Ansible's deploy is gone; its code stays until Phase 3. Snapshots +`pre-nixos-2026-11-17` (services) and `asxpio-ops-pre-nixos-2026-11-17` +are kept until each host's `/old-root` is deleted. + +Phase 2 took 18.5 minutes of downtime (04:52–05:10 UTC) plus a minute +for the reboot. WireGuard was down from 04:52 to 05:04 and came back with +the first `test` activation; the dead-man reboot was not needed. Found on +the day: nixos-infect's bootstrap system only accepts the keys Debian's +root had (the RSA key from `terraform/keys.tf`); on the new system root +takes the `me@asxp.io` key. The disk reached 90% with the old Docker +store under `/old-root`; deleting its image layers brought it to 71%. Phase 1 took 34 minutes of downtime (02:29–03:03 UTC, plus a few seconds for XMPP at 03:31), most of it the first build. What it taught, and is