Attended Infrastructure Maintenance.
Preview, checkpoint and recover a host maintenance window.
Problem.
Several containers shared an older host kernel, so updating an application or guest package would not activate the fix. Rebooting the hypervisor also meant interrupting storage consumers, databases and services. I needed to preserve the previous running state and check storage before allowing application writers to return.
Implementation.
- 01
Captured running guests and application state, quiesced writers and dependencies, and shut down guests before the attended host reboot. Verified storage identities and health before restoring only the workloads that had previously been running.
- 02
Turned the procedure into an exact-version preview and checkpointed maintenance engine. Approval binds to source, profile and observed state, expires and is consumed durably. Interrupted mutation is not replayed automatically; recovery inspects the recorded phase.
- 03
Ordered package download before the service outage, then required every guest to be stopped before cache-only installation. This avoids depending on a DNS service that is intentionally offline during maintenance.
- 04
Added a GitHub Actions interface for inspect, preview, apply and recovery. An outbound local bridge validates the approved source and request identity, claims work once and calls the same maintenance engine. Host credentials stay local; scheduled requests only inspect.
- 05
Published separate monitoring evidence for the GitHub request and the actual host phases so a successful request cannot stand in for successful maintenance.
Result.
The manual kernel activation, reboot, storage checks and selective workload restoration completed. The subsequent automation passed CI and real end-to-end inspect/preview requests. The full automated package-install, shutdown, reboot and recovery lifecycle has not yet been exercised on hardware.
Recorded manual activation and service/storage checks; 29 host/bridge tests at the documented final release; successful exact-source CI and owner-dispatched inspect/preview. No automated mutating outage, end-to-end playback test, full backup restore or downtime guarantee is claimed.
What I learned.
Maintenance order is part of the dependency model. Downloading after shutting down DNS creates a failure that a package test alone will miss. Preserving a guest's stopped state matters as much as bringing running services back. A successful preview also remains a preview, especially when readiness gates block a maintenance window.
Questions about this project?
Email Binh ↗