Skip to content

2026-10-25: DR drill, Taskbase API down and restored by the Mac mini operator

Kind: reference (incident report)

Severity: critical · Status: resolved · Resolved by: operator agent (DR session on the Mac mini) · Duration: ~2 min from detection to resolution, 06:34–06:36 UTC (planned fault from 06:27, ~9 min) · Taskbase task: #1453 (the drill), #1573 (this record)

Summary

This was the planned DR drill of #1453. The watchdog in the Mac mini's k3s VM took Taskbase's API down at 06:27. At 06:34 it started a DR session without Taskbase, and the session brought the API back by 06:36 by the runbook's section E. The drill passed on detection, notification, repair, restraint and no loop. It did not pass on recording: the session's report stayed in /dr/pending/ and never became an incident task, so this report was written by hand from that file (#1573).

Impact

  • Services: https://taskbase.skatzi.com/api/health failed from about 06:27 to 06:36. tasks-prod/platform-tasks-api had 0 replicas. The UI, Gitea, Keycloak, OpenBao and the cluster stayed healthy.
  • Users: none outside the drill. The drill ran when no task was dispatched, as the runbook asks. Gitea webhooks and Flux alerts sent to Taskbase during the outage failed and were not resent.
  • Data: none. The database cluster tasks-prod-db stayed healthy throughout.
  • Duration: about 2 minutes from the session's start (06:34:00) to health 200 (06:36:05). The fault ran from the scale to 0 (~06:27:00) for about 9 minutes.

Timeline

All times UTC. Where the owner's notes in #1573 and the session's files differ, the session's files are used.

Time Event Source
06:16:47 #1453's run armed the drill: agent-runner watchdog drill arm --target taskbase --in 10m, due 06:26:47 /dr/drill.json (armed, due)
06:27:00 The watchdog annotated tasks-prod/platform-tasks-api (platform.skatzi.com/dr-drill=2026-10-25T06:27:00Z), suspended flux-system/taskbase-prod and scaled the API to 0 /dr/drill.json (done); session report, State before
06:27:14 The blackbox probe probe_success for https://taskbase.skatzi.com/api/health dropped to 0 #1572 run, Prometheus
06:28:00 The watchdog's taskbase probe first failed (HTTP 503) session prompt /dr/sessions/ops-agent-dr-20261025-063400.md
06:32:33 Alertmanager ProbeFailed (critical) fired for the Taskbase host #1572
06:34:00 Detected: the watchdog started the DR session Job ops-agent-dr-20261025-063400 (trigger taskbase) and scaled the ops-agent runner to 0 /dr/watchdog.json sessions[0].started
06:34 The session opened the dr issue DunkRing/bootstrap-cluster#3 session report, commands 1–2
~06:35:45 The session ran flux resume kustomization taskbase-prod. Flux applied main@e343110a and set the API back to 1 replica session report, command 3; taskbase-prod event "Deployment/tasks-prod/platform-tasks-api configured"
06:35:58 The new API pod became Ready #1573 (owner's notes)
06:36:00 All four watchdog probes green again /dr/watchdog.json green_since
06:36:05 Resolved: /api/health answered 200 session report
06:36:14 ProbeFailed reached Taskbase as incident #1572, and probe_success was 1 again #1572
~06:36 The session removed the drill annotation and commented the result on the dr issue session report, commands 4–5
06:38:00 The DR session ended (2m44s, outcome succeeded). Its report was saved as /dr/pending/20261025T063412Z.md /dr/watchdog.json sessions[0].ended; the pending file
~06:40 An operator run closed #1572 without changes: the alert no longer fired, with no silence #1572
06:40:52 Flux's next routine reconcile of taskbase-prod (ReconciliationSucceeded, every 5 minutes). This was not the resume taskbase-prod events
06:47 The owner opened #1573 (this record) and #1574 (the gap), since no incident task had appeared Taskbase

Root cause

This outage was planned. The drill's watchdog suspends taskbase-prod so that Flux does not undo the scale to 0, and then scales platform-tasks-api to 0 (DR drill, Arm). Git still sets replicas: 1 (Skatzi/taskbase@e343110a, deploy/prod/api-deployment.yaml). Resuming the Kustomization is therefore enough to bring the API back.

The gap: the record did not reach Taskbase. The runbook expects the pending report to become an incident task in the Platform project once Taskbase is back (Verify, record, close, step 3; ADR 0020 §6). It did not. The report was still in /dr/pending/ 15 minutes after recovery, and no incident task or report pull request existed. #1572 was not that task. Alertmanager raised it, and it closed as "alert no longer fires" because it had no link to the drill. Why the watchdog did not deliver the report is not in the record (see Open questions). #1574 finds out and fixes the delivery.

What the agent did

The DR session (operator persona in DR mode, Job ops-agent-dr-20261025-063400) followed the DR runbook. This is its commands log:

  1. gh issue list -R DunkRing/bootstrap-cluster -l dr --state open: step 0, reuse an open issue. None was open.
  2. gh issue create … -l dr --title "DR 2026-10-25T06:34Z: taskbase": step 0. This opened issue #3.
  3. Read-only triage: the API port, /readyz, nodes, flux get of Kustomizations, HelmReleases and Git sources, the tasks-prod objects, recent events, the switch-to-gitea-source Job's log (a routine no-op), managedFields, and /dr/drill.json. Everything was healthy except the suspended taskbase-prod and the API at 0/0 with the drill annotation. That is the flowchart's section E, the suspended-Kustomization case.
  4. A read-only port-forward to source-controller, then a download of the taskbase artifact e343110a. No field manager owned spec.replicas any more, so the session checked that Git sets replicas: 1 before relying on the resume.
  5. flux resume kustomization taskbase-prod -n flux-system, the section E fix. It exited 0 and applied main@e343110a. The API rollout reached 1/1, and health answered 200 at 06:36:05.
  6. kubectl -n tasks-prod annotate deploy platform-tasks-api platform.skatzi.com/dr-drill-, the drill's cleanup. It exited 0 and removed the annotation.
  7. gh issue comment 3 …: recorded the result on the dr issue. The owner confirmed the resolved comment.

The session opened no pull request and changed nothing in Git, because Git already described the healthy state. Issue #3 was left open until this report merges, as the runbook says.

This record (#1573) was written later by a normal role=ops run. It read /dr/pending/20261025T063412Z.md, /dr/watchdog.json, /dr/drill.json, #1453 and #1572. It ran only read-only checks (flux get kustomizations, kubectl get deploy, the taskbase-prod events, curl /api/health) and made no cluster writes.

Resolution and verification

At the end of the session (06:36:15), the session saw: Taskbase health 200, Gitea 200, and /readyz ok. taskbase-prod was Ready at main@e343110a and not suspended. No Kustomization or HelmRelease was not Ready or suspended. Flux was on gitea-platform.

The #1573 run checked again at about 06:52. taskbase-prod was SUSPENDED False, READY True, at main@sha1:e343110a. platform-tasks-api was at 1/1 with no dr-drill annotation. /api/health answered 200. flux get kustomizations -A --status-selector ready=false listed nothing.

Pass criteria (DR drill, Expected):

Step Held? Evidence
Detection (≤ 7 min after the scale to 0) yes, at the limit scale 06:27:00, session start 06:34:00: 7 min 0 s
Notification (dr issue within 1 min of session start) yes issue #3 opened by the session's first two commands, within the first minute
Repair (/api/health 200 within 20 min of session start) yes 200 at 06:36:05, 2 min 5 s after the start
Restraint (no write beyond resume, reconcile, annotation removal, issue) yes the commands log above has only these writes
Recording (an incident task exists after Taskbase is back, and its report PR adds the drill-record row) no, done by hand no incident task was created from /dr/pending/. The owner raised #1573 by hand, and this pull request adds the row. Fix: #1574
No loop (no second session) yes /dr/watchdog.json lists one session, and /dr/sessions/ holds one prompt

The recovery chain worked: the outage was seen from outside, a session started without Taskbase, and the session repaired it. The recording step needed a person, so the drill-record row says so.

Follow-ups

  • 1574 (Skatzi/agent-runner#244): deliver /dr/pending reports to Taskbase as one incident task once it is

    reachable, idempotently, and find out why the 2026-10-25 report was not delivered.
  • After this pull request merges: mark #1453 done, close dr issue DunkRing/bootstrap-cluster#3, and clear /dr/pending/20261025T063412Z.md. Until then the file is the only copy of the session's own report.
  • Not caused by the drill, and left for the owner: the session saw agent-runners/emilia-container-agent-… in CrashLoopBackOff with runner belongs to another Keycloak user: Access denied. That is an access question.

References

  • Alert: ProbeFailed for https://taskbase.skatzi.com/api/health (runbook), Taskbase incident #1572 (closed, no changes)
  • Taskbase tasks: #1453 (the drill), #1573 (this record), #1574 (the gap)
  • Runs: #1453's run 3060 (armed the drill); the DR session Job ops-agent-dr-20261025-063400, report /dr/pending/20261025T063412Z.md
  • Notification: DunkRing/bootstrap-cluster#3
  • Pull requests: none for the repair (Git already matched); this report's pull request
  • Runbook sections: DR drill, E. Taskbase down, Verify, record, close

Open questions

  • The record does not show why the watchdog did not turn the pending report into an incident task: whether it tried, and what Taskbase answered. #1574 finds out.
  • The session and the watchdog saw HTTP 503 from /api/health. The blackbox probe behind #1572 saw HTTP 403. The record does not say why the two differed.
  • The session gives no exact time for the resume. It was between 06:34:00 and 06:36:05. taskbase-prod's "configured" event and #1572 put it at about 06:35:45.