Incident response
Real incidents taken apart: the first wrong guess, how the root cause was proven and what changed afterwards.
19 posts
- Metrics absent for four hours: the cluster was alive, its data was stuck in a queueThree ServiceAbsent criticals fired for a healthy production cluster. A degraded network path had turned remote-write into a FIFO backlog. The most important decision was not to restart the agent.
- The certificate was valid. The CI image just did not know its new rootOvernight a CI job started failing with "self signed certificate in certificate chain", while the browser opened the same URL fine. The server had switched to a newer CA root, and the job image sat on an end-of-life Debian whose trust store predated it.
- CI was red, and the CI code was fine: two silent expiries behind one VaultA pipeline failed at its first stage, and every later stage was skipped. The CI code never ran: Vault was crashlooping on an expired auto-unseal token, and once it was back up, its serving certificate had expired too.
- A sleep(3) race, proven with a dose-response testAbout a third of workspace provisioning runs failed with two unrelated-looking errors, and the CI retry made it worse. Both came from one fixed timer racing systemd inside an LXC container. Changing the timer from 3 to 5, 7 and 10 seconds turned a correlation into proof.
- A 30-second network blip, seven minutes without Kafka metadata: the KRaft election stormNo broker restarted, yet backends drowned in NotLeaderForPartition and rebalances. KRaft default quorum timeouts are five times shorter than the time to re-establish a connection, so one reconnect turns into a self-sustaining election loop.
- A node reboot froze dozens of test environments: their readiness gate was a pod nobody ownedAfter an in-place worker reboot, every test environment with data on that node hung in Init for hours. The node, the volumes and the platform were fine. The setup steps ran as plain Pods without a controller, the reboot deleted them, and the apps waited for a pod that no longer existed.
- I moved one NVMe to another slot, and GPU passthrough stole another VM's diskAfter a hardware window two VMs on a Proxmox host refused to start. One error looked like a storage fault. The real cause: a VM passed its GPU through by PCI address, the bus got renumbered, and vfio grabbed the NVMe that held the other VM's volume group.
- S3 said 403 Access Denied. The file simply was not thereUploaded images returned 403 from a public bucket, and the first idea was to open access wider. The real cause was a key that did not exist: the SDK had put the bucket name into the object path.
- Autovacuum ran 443,863 times and cleaned nothing: orphan queries on a read replicaPayments were credited 85 minutes late. The outbox relay was alive, traffic was normal and vacuum never stopped working. Nine forgotten queries on a replica were holding the xmin horizon of the primary.
- An AI agent on my ops work: the guardrails that make it safeI run much of my operations work with an AI agent in the terminal: kubectl, logs, manifests, git, cloud APIs. Speed is the easy part. These are the rules that make it safe, and the mistakes they caught.
- The loading screen was a retry loop, not a hang — and the reboot was never neededA game on my Linux workstation froze on its loading screen, and the known fix was a full reboot. Five seconds of /proc counters showed a hot retry loop that a single SIGTERM could end.
- NotReady for six hours, and the node was alive the whole timeEvery signal said the node was dead. It was thrashing on memory, and the obvious fix — delete the node and force-detach the volume — was one command away from corrupting a database.
- Four checks that lied while the system was fineIn one day of platform migrations, four verification steps reported failure while everything was healthy. When one signal disagrees with all the others, suspect the signal first.
- Vault kept sealing itself. The cause was a 15-minute VM freeze below the clusterFour Vault seals in three weeks, each treated as a separate incident. A journald gap analysis showed the hypervisor stunning the VM during backups, and Longhorn turning that into a cascade.
- One stale DHCP option took down a whole Kubernetes clusterAfter a host reboot about fifty pods crashlooped while every node was Ready. The cause was a forgotten DHCP classless-route option that silently removed the default gateway.
- Three incidents that were one: a database IP baked into a configLogin 500s, backends in CrashLoopBackOff and a stuck rollout looked like three problems. All of them were one hardcoded database IP in a pgbouncer config.
- The "disk errors" were an OOM: how Longhorn volumes lost their backendEIO (input/output error), read-only ext4, a corrupted MySQL datadir and a sealed Vault looked like a failing disk. kubectl debug node and host dmesg showed a node-wide OOM: the OOM killer took out the Longhorn instance-manager first.
- A Longhorn volume that would not grow: an attachment ticket pinned to a bad nodeA PVC sat in Resizing forever while Longhorn retried the expansion every five seconds without an error. The volume was locked to one unhealthy node by a stale attachment ticket.
- Helm says "another operation is in progress" — and nothing is runningA cancelled CI job left two Helm releases stuck in pending-upgrade and blocked every deploy. How to find the lock, release it safely and check a whole namespace at once.