Merge branch 'nix': Phase 2 record

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 09:31:27 +04:00
commit 91a274ee34
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -20,17 +20,32 @@ step.** Every step below that touches a server says so.
Hetzner console. Hetzner console.
- [ ] Delete the two offline runners (ids 1 and 2) in Forgejo → Site - [ ] Delete the two offline runners (ids 1 and 2) in Forgejo → Site
administration → Runners. administration → Runners.
- [ ] Phase 2 (asxpio-ops), below. - [x] Phase 2 (asxpio-ops), 2026-11-17.
- [ ] One week after Phase 2: `rm -rf /old-root` on asxpio-ops, delete its - [ ] Merge asxpio's `podman-healthcheck` branch: until then its CI
snapshot. 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) ## Where things stand (2026-11-17)
**asxpio-services runs NixOS** since 2026-11-17 (Phase 1 below, done) and **Both servers run NixOS** since 2026-11-17 (Phases 1 and 2 below, done)
is deployed by `.forgejo/workflows/nixos.yaml` from `main`. **asxpio-ops and are deployed by `.forgejo/workflows/nixos.yaml` from `main`, ops
still runs Debian**, deployed by Ansible from `main`; Ansible no longer first. Ansible's deploy is gone; its code stays until Phase 3. Snapshots
manages services (inventory group `nixos`). Snapshot `pre-nixos-2026-11-17` `pre-nixos-2026-11-17` (services) and `asxpio-ops-pre-nixos-2026-11-17`
of services is kept until `/old-root` is deleted. 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 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 for XMPP at 03:31), most of it the first build. What it taught, and is