Back to Engineering Blog
Infrastructure & Reliability 3 min read

The Fleet Shutdown Drill: Clean Everywhere Except the Host That Mattered

We triggered a real fleet-wide shutdown through the UPS system. Six hosts shut down and rebooted cleanly in four minutes. The main hypervisor reconnected to its UPS server 2.5 hours late, then fell into a shutdown loop because both UPS servers were briefly unreachable at boot.

Jason NevillBy , Houston, TX
#NUT#UPS#DisasterRecovery#Drill

Key Architectural Takeaways

  • A readiness review before the drill found two NUT coverage gaps that would have left hosts running.
  • Reconstruct the outcome from journals on each host; the pre-drill write-up only recorded intent.
  • A MINSUPPLIES policy needs a test for both UPS servers briefly unreachable at your own boot.

The setup

The lab has two UPS units on separate circuits and Network UPS Tools (NUT) automation that shuts hosts down cleanly when power is critical. A drill triggers the same path on demand: one command, with a typed confirmation, sets the forced-shutdown flag on the UPS servers, and every client follows.

The readiness review

Before the drill we reviewed NUT coverage across the fleet and found two real gaps: two hosts that were not covered by the shutdown path, which would have kept running. They were fixed and merged first.

What happened, from the logs

Because the session that triggered the drill expected to die mid-run, the pre-drill note only recorded intent. The real outcome was reconstructed afterwards from journals across the fleet.

Most of the fleet: clean and fast. The forced-shutdown flag went up at 19:10:30. The second hypervisor, the backup server, both infrastructure nodes, a DNS host and the edge host all shut down and rebooted cleanly within about four minutes and stayed stable.

The main hypervisor, and everything on it, did not. Its NUT client lost its connection to the UPS server when that server rebooted, which is expected, but it did not reconnect for two and a half hours. The UPS server's own journal shows its first login at 21:43, not around 19:14 like every other client. upsmon should retry every five seconds, so the gap is unexplained by the config, and we did not root-cause it. It finally shut down at 22:06 as a graceful whole-host shutdown, all 21 containers stopped in order, but with no upsmon trigger line before it. We could not conclude whether that was a very late reaction to the original flag or a separate trigger.

The session's own assumption that the drill would kill the management container within minutes did not hold for three hours. That container lived on the hypervisor that kept running.

Then, a reboot loop

The hypervisor rebooted at 23:09 and shut itself down again at about 23:13. It did the same at 23:30 and again at 00:13, when it finally stayed up. Each intermediate boot logged connect failed: No route to host for one of the two UPS servers immediately after boot.

That fits a MINSUPPLIES-driven false positive: if both monitored UPS servers are briefly unreachable during the host's own boot and neither is actually critical, the host decides it has lost power and shuts down. The module's tests had covered one UPS permanently unreachable (safe) and one critical while the other is unreachable (correctly shuts down), but not this. It is a reproducible reliability risk for the most important host in the fleet, and we flagged it for a dedicated fix.

Final state

The cluster was quorate, all 21 containers on the main hypervisor were running, and the other node's guests were up.

Takeaway

Run the drill, then read every host's journal. The failures that matter are in the one place you assumed would behave.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.