Atlas and Metal reliability audit
38failure scenarios
15handled
21with a gap
26tested by fault injection
31handled after fixes
33findings
24findings fixed
9critical or high
71log entries
How to read this
- Status: Fix pass on a branch: 23 commits fix 23 findings; 2 are partly fixed, 1 stays open, 1 is unchanged on purpose, and 5 are deferred. Fault tests T14, T19, T21, T26 and T27 were run again on development hosts and now pass. Atlas dependency tests D1 to D8 ran on the local site; they found one issue in Frappe itself (F33, kept out of the Atlas and Metal scores); F34 and F35 turned out not to be issues.
- Scenarios has one row per failure: what breaks, what the system does, and whether it recovers. "Handled" means it recovers without an operator and without data loss. "Partial" means it recovers with a gap. "Not handled" means an operator must act, or state or data can be lost. "Untested" means code reading only.
- Findings lists bugs and missing fallbacks, most severe first. Critical means data loss or a stuck system with no automatic recovery. High means a customer outage or a stuck operation that needs an operator.
- Fault injection ran only on development hosts and the local development Atlas site. The fix pass is on a branch of the Atlas repository; "After fixes" and "Resolution" show its result. Host names and addresses are left out on purpose.
Reliability matrix
One row per area. The score is the average of its scenario scores at audit time; "After fixes" is the same average after the fix pass on 2026-10-23. The score weighs failed customer requests and data loss. A control write that its caller retries, such as a route change from Central, counts as a short impact, not a failure. A score is out of 10: 10 means the system recovers by itself with no data loss and no customer impact; 7 to 9 means it recovers with a short impact or a small gap; 4 to 6 means an operator must act, but no data is lost; 0 to 3 means data can be lost or the area stays broken.
| Area | Score | After fixes | Scenarios | Handled | Partial | Not handled | Untested | Weakest scenario |
|---|---|---|---|---|---|---|---|---|
| Private network (WG Mesh) | 2/10 | 9/10 | 1 | 0 | 0 | 1 | 0 | S20 wg0 is restarted on a host (systemctl restart wg-quick@wg0, a WireGuard package upgrade, or the Configure WireGuard action). |
| Data durability | 2/10 | 2.5/10 | 2 | 0 | 0 | 2 | 0 | S27 A host is lost for good (both disks fail, the provider reclaims the machine, or an operator wipes it). |
| Host storage | 3/10 | 7.5/10 | 2 | 0 | 0 | 1 | 1 | S7 The host ZFS pool fills up (guests write more than the pool holds). |
| Placement | 4.7/10 | 8.3/10 | 3 | 1 | 0 | 2 | 0 | S38 Customers create VMs with large disks. |
| Metal daemon | 5.7/10 | 9/10 | 3 | 1 | 0 | 2 | 0 | S3 One VM or migration record on a host is corrupt. |
| Migration | 5.9/10 | 8.9/10 | 7 | 4 | 0 | 3 | 0 | S37 Atlas loses contact with the destination host at cutover for longer than 10 min (network partition, Atlas outage, destination API hang). |
| Images | 6/10 | 8.7/10 | 3 | 1 | 1 | 1 | 0 | S9 A VM uses an image that was archived more than 6 h ago, then restarts on a host that pruned the image. |
| Atlas dependencies | 6/10 | 7.8/10 | 4 | 0 | 2 | 1 | 1 | S10 The Atlas queue Redis hangs (accepts connections but does not answer). |
| Public network | 6/10 | 9/10 | 2 | 0 | 2 | 0 | 0 | S35 The host NAT table is flushed (iptables -t nat -F, a firewall package reload, or an operator mistake). |
| Host daemon (metald) | 7.2/10 | 9/10 | 4 | 2 | 1 | 1 | 0 | S25 metald hangs (process alive, not answering), for example a deadlock or a ZFS call stuck in the kernel. |
| Atlas control plane | 7.5/10 | 8/10 | 2 | 1 | 1 | 0 | 0 | S5 Atlas cannot reach one host (network cut or host API down). |
| HTTP proxy | 8/10 | 8/10 | 1 | 1 | 0 | 0 | 0 | S14 One node of a 3-node proxy cluster is down. |
| Guest VM | 9/10 | 9/10 | 3 | 3 | 0 | 0 | 0 | S4 A guest Firecracker process exits (kill or guest crash). |
| Fleet operations | 9/10 | 9/10 | 1 | 1 | 0 | 0 | 0 | S33 A new metald build fails on a host during a rollout. |
Failure scenarios
| # | Area | Failure | What the system did at audit time | Status | Score | After fixes | What it should do (fallback) | Evidence |
|---|---|---|---|---|---|---|---|---|
| S1 | Metal daemon | metald crashes or is killed (kill -9). | VMs run in their own metal-vm@ systemd units and keep running. systemd restarts metald; it was ready again in 3 s. A guest writing every 0.2 s saw no pause above 0.4 s. | Handled | 10/10 | Same as now. | T1 on a development host. | |
| S2 | Metal daemon | metald fails at startup 5 times in 10 s (bad config, pool not imported yet, wg0 not up). | Confirmed in T29: 5 restarts in about 6 s, then systemd left the unit failed. After the cause was fixed, metald stayed down until systemctl reset-failed and a manual start. VMs kept running, unmanaged. metald also exits at start when WG Mesh setup fails (for example wg0 not up yet at boot). | Not handled | 4/10 | Handled 9/10 metald restarts every 5 s with no start limit (unit properties checked on two hosts). | Restart forever with a growing delay (StartLimitIntervalSec=0, RestartSec=5), and alert on a failed unit. See F2. | T29 on a development host. |
| S3 | Metal daemon | One VM or migration record on a host is corrupt. | Startup validation fails for the whole daemon, so no VM on the host is managed. | Not handled | 3/10 | Handled 8/10 metald now starts and leaves only that VM unmanaged; the other VMs stay managed. Host sync lists it in invalid_virtual_machines, the host offers no capacity, and Atlas logs it. Allocation refuses while a desired record is unreadable, and metald no longer writes a record that a read would reject. Tested on a development host by corrupting a VM's observed record. | Quarantine only the bad record, start the daemon, and report the record in sync and the API. See F3. | Code: recordStore.validateAll returns the first error. |
| S4 | Guest VM | A guest Firecracker process exits (kill or guest crash). | The VM unit has Restart=no. The reconciler saw desired running, observed stopped, and started the VM 2 s later. ext4 journal recovery ran; all synced writes were present. | Handled | 9/10 | Same, plus a crash-loop limit and a visible crash count on the VM. | T2 on a development host. | |
| S5 | Atlas control plane | Atlas cannot reach one host (network cut or host API down). | VMs on the host keep running. Power changes fail in 5 s with a clear error. Reading a VM takes 19 s and fails, so Desk forms hang. A create placed on the host in the first 2 min becomes a draft; after recovery the draft check gets 404 and deletes it. After 2 min without a capacity sample, placement skips the host. Sync writes one Error Log row every 10 s. | Partial | 7/10 | Partial 8/10 Failures are logged once an hour instead of on every pass. VM reads still wait for the Metal timeout. | Mark the host unreachable after the first failed sync, skip it in placement at once, fail VM reads fast with a cached last-known state, and log only state changes. See F6. | T3 on a development host. |
| S6 | Atlas control plane | Atlas web, workers, and scheduler are down for hours. | Hosts keep the last complete sync (peers, image policies, privileged addresses) and keep running every VM. No create, change, or migration is possible. Proxy routes and telemetry stop updating. Creates fail with an out-of-capacity error after 2 min (F27). | Handled | 8/10 | Same, plus an external health check that pages when the scheduler stops. | T3 (Atlas cut off from a host for 5 min) and T25 (scheduler stopped): running VMs were not affected. | |
| S7 | Host storage | The host ZFS pool fills up (guests write more than the pool holds). | Every guest on the host got I/O errors at once, even guests that did not write. Every reconcile failed because Metal could not write its state file. A stop request returned a bare HTTP 500. The host kept reporting 880 GiB free to placement. When space came back, Metal recovered by itself, but the guests stayed broken (SSH dead) until a restart, and each restart waited 30 s for a guest that could not shut down. A writer that waits for fsync got a clean EIO; all 93 acknowledged writes survived the event. | Not handled | 2/10 | Partial 7/10 No overcommit: available storage is pool size less every provisioned disk. The state dataset keeps 1 GiB, and a full disk returns 507 host_storage_full. Snapshots and image data can still fill a pool. | Never overcommit physical space without a limit: count provisioned disk in placement, reserve space for Metal state, alert at 80 % pool use, and stop placement on the host. See F1 and F12. | T4 and T4b on a development host. |
| S8 | Migration | An operator or an error aborts a disk-only migration after the destination VM booted, before Atlas commits. | Confirmed in T21. The destination cold-booted and ran for 29 s before Atlas committed; the guest wrote and synced a file. An abort then deleted the destination disk and restarted the source from its pre-cutover disk. The file and 30 s of synced writes were lost, with no error or warning. Triggers: the Abort button while the status is cutting_over, starting or finalizing before commit, or a non-transient worker error during commit (the worker then fails the migration and aborts). | Not handled | 2/10 | Handled 9/10 Retested T21: Metal refused rollback, Atlas finished the migration, the marker written on the destination survived. | Keep the destination paused or offline until finish, or allow only finish after the destination starts. See F7. | T21 on development hosts (Atlas worker frozen at cutover, abort sent while the destination ran). |
| S9 | Images | A VM uses an image that was archived more than 6 h ago, then restarts on a host that pruned the image. | The VM cannot start: the kernel download fails. | Not handled | 2/10 | Handled 8/10 Archived images keep their artifacts while any VM names them (unit tests). | Keep image artifacts while any VM references the image. See F8. | Seen on a pre-production host. |
| S10 | Atlas dependencies | The Atlas queue Redis hangs (accepts connections but does not answer). | Every code path that enqueues a job blocks for as long as Redis hangs. In the test an enqueue took the full 60 s pause. Web requests that enqueue (migrate, public IP changes) and scheduler ticks pile up. | Not handled | 4/10 | Partial 7/10 Retested D1: an enqueue blocked for the full 120 s and host sync stopped. VMs kept running, no data changed, and all recovered at once when Redis answered. Central retries its calls. The socket timeout in frappe/pilot#686 (F14) makes requests fail fast; in production the worker-pool starts a stopped scheduler again within about 10 minutes (F33). | Set a socket timeout (for example 5 s) on the queue and cache Redis clients so a request fails fast with a retry-later error. Alert on Redis latency. See F14. | T5 on the local site (CLIENT PAUSE 60000). |
| S11 | Atlas dependencies | MariaDB for Atlas is down or full. | Atlas web and jobs stop. Hosts keep running VMs with their last sync. When MariaDB returns, the scheduler and reconcilers continue from stored state; no host data depends on Atlas being up. | Untested | 7/10 | Handled 9/10 Tested D3, D3b, D4: with the database unreachable or read-only, web failed fast (no hang), host sync paused, a migration in copy finished, and all recovered within 10 s. | Alert on database errors and free disk. Keep large log tables (Error Log, Metal Server Usage, Scheduled Job Log) under retention so a slow leak cannot fill the disk. | Code reading. Not injected: no root access to the local database service. |
| S12 | Migration | metald on the destination is killed during the disk copy. | The source stream broke. The destination restarted in 2 s, resumed the migration from its records, and completed. Data checksum and the guest counter were intact. | Handled | 10/10 | Same as now. | T6 on development hosts. | |
| S13 | Migration | The network between source and destination drops all transfer packets for 2 min during the copy. | The TCP stream stalled and resumed after the block (stall limit is 2 min). The migration completed in 172 s with a correct checksum. Atlas showed copying with no sign of the stall. | Handled | 8/10 | Show stalled progress in Atlas (for example no progress for 60 s). See F16. | T7 on development hosts. | |
| S14 | HTTP proxy | One node of a 3-node proxy cluster is down. | Requests keep working: each node serves from its local route map with no quorum, and Route 53 drops the dead node after 2 failed checks 30 s apart. A client that cached the dead node's address can fail until the 120 s regional TTL ends, unless it tries the next address. Route writes (new site, domain change) return 503 while the node is down; Central retries them. | Handled | 8/10 | Same. A majority write quorum (F17) would also keep route writes working, but that is a convenience, not a request failure. | Code and handbook: control-cluster _required_acknowledgements, Route 53 health check (30 s interval, 2 failures), regional DNS TTL 120 s. | |
| S15 | Host daemon (metald) | The host root file system is 100 % full. | VM restart and records kept working: VM state, chroots and disks live on ZFS. Only logs and package updates use the root file system. But Vector, the host log and metric shipper, failed with ENOSPC, hit its systemd start limit, and stayed dead after space came back. Host telemetry and logs stopped silently. | Partial | 6/10 | Handled 8/10 Vector now restarts every 5 s with no start limit (checked on a host). | Restart Vector without a start limit and alert when a host stops sending telemetry. Alert on root disk use. See F28. | T11 on a development host. |
| S16 | Host daemon (metald) | A whole host reboots. | The host was gone for 4 min 42 s. metald was ready 3 s after boot and all 6 VMs ran 5 s after boot. WireGuard peers and WG Mesh came back; cross-host mesh traffic worked. | Handled | 9/10 | Same. Customers still see the full hardware restart time; a planned reboot should drain the host first. | T8 on a development host. | |
| S17 | Placement | 20 creates arrive at the same moment on a 3-host region. | 7 were placed across all hosts, 13 were rejected at once with placement_busy. No duplicates and no double booking. | Handled | 8/10 | Same; clients retry placement_busy. This is the accepted fixed placement deadline. | T9 on the local site. | |
| S18 | Images | Object storage is unreachable while a host needs an image it has not cached. | Metal retries the download forever with backoff and the VM starts within a minute after storage returns. For the whole outage the API shows state unknown with no error, because each retry clears the last error. | Partial | 6/10 | Handled 8/10 The last VM error stays visible until the operation completes (unit test fails on the old code). | Keep the last error visible until a pass succeeds, and report a clear phase such as downloading image. Cache every image that running VMs use. See F20. | T12 on a development host. |
| S19 | Atlas dependencies | Central is down for hours. | Token checks keep the last valid key set. VM state webhooks retry 3 times (5 min, 30 min, 2 h), then stop for good. | Partial | 6/10 | Partial 7/10 Tested D6: VMs are not affected and failed state events are kept and retried. A retried old event can arrive after a newer one and leave Central with the wrong state until the next change. Central owns the ordering fix (F19). | Periodic full state resync to Central, and ordering by observed_at. See F19. | Code reading. |
| S20 | Private network (WG Mesh) | wg0 is restarted on a host (systemctl restart wg-quick@wg0, a WireGuard package upgrade, or the Configure WireGuard action). | Host WireGuard peers come back at the next Atlas sync (10 s), but the WG Mesh eBPF program on wg0 is lost. Cross-host VM private traffic to and from that host stops and stays down. No error or metric shows it. A metald restart attaches the program again and traffic recovers at once. The 2026-10-16 incident fix covers only the Configure WireGuard script. | Not handled | 2/10 | Handled 9/10 Retested T14: host sync attached the mesh hook again 18 s after the wg0 restart. | metald checks the wg0 hooks on every sync (or reacts to the interface coming back) and attaches them again. Alert when the hook is missing. See F21. | T14 on development hosts. Also seen earlier on a pre-production region. |
| S21 | Host storage | The pool disk stops answering or fails (single vdev on software RAID 1). | The pool uses failmode=wait, so all pool I/O blocks: guests freeze and zfs commands from Metal hang in the kernel where timeouts cannot stop them. Reconciler workers and API calls that touch ZFS can hang until the pool returns. ZFS sits on top of mdadm RAID 1, so ZFS can detect but not repair a bad block. | Untested | 4/10 | Handled 8/10 Rescored: the pool sits on md RAID 1 (checked on a host), so one failed disk is absorbed by md with no guest impact, and mdmonitor logs the event; the monitoring alert tells operators to replace the disk. Only a loss of both disks or a hung md device freezes the pool. Without a ZFS mirror (F22), ZFS can detect but not repair a corrupted block. | Give ZFS the 2 disks as a mirror so it can repair bad blocks; alert on md and ZFS health (metrics exist); keep API health and sync paths free of ZFS calls that can block forever. | Code reading and host layout. Not injected: no zinject on hosts. |
| S22 | Images | metald is killed while a new VM's image downloads. | On restart Metal removed the unfinished import (no manifest), downloaded again, verified SHA-256, and started the VM 23 s after the kill. | Handled | 10/10 | Same as now. | T15 on a development host. | |
| S23 | IPv6 router (not in production) | The host of the IPv6 router VM fails, or the router service stops. | Each IPv6 block has one router VM, and the provider routes the block to one host. All public IPv6 traffic for that block stops until the host or VM returns. Atlas keeps showing the router as Active; the handbook says Active does not prove forwarding works. | Not handled | 3/10 | Health-check forwarding through the router and alert. Document and automate the block move to a standby router on another host where the provider allows it. See F23. | Code reading and IPv6 router handbook. | |
| S24 | Guest VM | metald restarts while a VM sleeps (idle stop with saved memory). | After the restart the traffic watch was armed again. A TCP connection woke the VM and it answered in 7 s with its memory restored. | Handled | 9/10 | Same. The first packet can be lost while the VM wakes; clients retry. | T16 on a development host. | |
| S25 | Host daemon (metald) | metald hangs (process alive, not answering), for example a deadlock or a ZFS call stuck in the kernel. | systemd still shows the unit active and does not restart it: there is no watchdog. VMs keep running, but nothing is managed. In Atlas, a network change held the VM row lock for 17 s while Metal reads timed out, and another writer waited for the row the whole time. | Not handled | 4/10 | Handled 9/10 Retested T19: the systemd watchdog restarted a frozen metald after 55 s; all VMs kept running. | Add WatchdogSec and notify from the reconciler and API loops, so systemd restarts a hung daemon (VMs survive restarts, T1). Do not hold database row locks across Metal calls (F5). See F24. | T19 on a development host. |
| S26 | Guest VM | Many conflicting operations reach one VM at the same time (stop, start, restart, resize, metadata, keys). | All requests returned in under 1 s (resize 4 s). Metal serialized them with its per-VM lock and generations, and converged in under 30 s with no stuck phase or error. The last stored power request wins. | Handled | 9/10 | Same. Clients that need ordering must wait for the generation they caused. | T20 on a development host. | |
| S27 | Data durability | A host is lost for good (both disks fail, the provider reclaims the machine, or an operator wipes it). | VM disks exist only on that host's ZFS pool. Atlas keeps the VM records, but there is no off-host copy to restore from. Data is lost unless the application inside the VM keeps its own backups. | Not handled | 1/10 | Scheduled, incremental ZFS snapshots sent off the host (to object storage or a peer host), with a restore-to-new-host action. Machine images already upload snapshots, so the transfer path exists. See F25. | Code reading: no backup or replica feature for VM disks. | |
| S28 | Data durability | The Atlas database is lost or restored from an old backup. | Hosts keep running every VM. Atlas forgets VMs created after the backup, and reuses their names; placement does not count them. Restoring needs the site backup together with site_config.json (encryption key). There is no tool to rebuild Atlas records from the hosts. | Not handled | 3/10 | Partial 4/10 Host sync now logs VMs that have no Atlas record. Importing them back is not built. | Frequent Atlas database backups off the Atlas VM, a tested restore runbook, and a command that lists host VMs unknown to Atlas and imports or flags them. See F9 and F26. | Code reading and host access handbook. |
| S29 | Atlas dependencies | Log tables grow without limit and fill the Atlas database disk. | Error Log (14 days), Scheduled Job Log (7 days), Webhook Request Log (30 days) and capacity samples (3 h) have retention. SSH Task rows, which keep command output, have none. A flood of errors (F6) still fills Error Log within its 14 days. | Partial | 7/10 | Handled 8/10 Checked D7: the 14-day Error Log cleanup works. The sync-failure flood is fixed by F6. | Retention for SSH Task and Metal Server Console Log, and an alert on database size. | Local site: Log Settings and table sizes. |
| S30 | Migration | metald on the destination is killed during cutover (after the source stopped). | The daemon restarted, continued from its checkpoint, and the migration completed 4 s later with intact data. | Handled | 10/10 | Same as now. | T22 on development hosts. | |
| S31 | Migration | metald on the source is killed while it stops the VM for cutover. | The migration completed 6 s later. Data intact, and the source disk and records were removed. | Handled | 10/10 | Same as now. | T23 on development hosts. | |
| S32 | Host daemon (metald) | An operator stops metal.service for maintenance, then starts it. | All VMs kept running without a pause. On start, metald adopted every serial console from the systemd descriptor store. | Handled | 10/10 | Same as now. | T24 on a development host. | |
| S33 | Fleet operations | A new metald build fails on a host during a rollout. | upgrade-metald.sh checks the binary hash and version, waits up to 120 s for ready, checks that no VM stopped, and restores the previous build otherwise. The rollout stops at the first failed host (canary first). | Handled | 9/10 | Same. A build with new state patches cannot roll back by design; ship those with extra care. | Code reading of the upgrade script and Metald Update. | |
| S34 | Placement | The Atlas scheduler stops, or the default job queue falls more than 2 min behind. | Host sync stops, every capacity sample becomes older than 2 min, and placement rejects every create with No Metal Server has capacity. Retry later. Existing VMs are not affected. Creates recover 10 s after sync resumes. Host syncs share the default queue with 15-min image transfers and provider calls, and an unreachable host holds a worker for up to 30 s, so a few bad hosts can starve sync for all hosts. | Not handled | 4/10 | Handled 8/10 Placement fails fast with "Some Metal Servers have not reported their capacity" and orders no new host (D8). Creates work again within 20 s of the scheduler coming back. The usual way the scheduler stops is F33, an issue in Frappe that is not scored here. | Run host sync on its own queue and workers with a short timeout. Return a distinct capacity_data_stale error. Alert when the newest capacity sample is older than 1 min. See F27. | T25 on the local site. |
| S35 | Public network | The host NAT table is flushed (iptables -t nat -F, a firewall package reload, or an operator mistake). | Metal re-added the per-VM public IPv4 SNAT and DNAT rules within 12 s. The shared masquerade rule for 10.0.0.0/8 is added only by the metald start script, so VMs without a public IPv4 had no IPv4 internet until metald restarts. | Partial | 5/10 | Handled 9/10 Retested: a timer restored the masquerade rule within 30 s. | Let the reconciler own the masquerade rule too and check it on every pass, like the per-VM rules. See F29. | T26 on a development host. |
| S36 | Public network | The host filter table is flushed. | Metal re-added the per-VM public IPv4 FORWARD rules. The rule that drops guest traffic to the host private network was not re-added. A direct test with that rule gone still could not reach another host's migration port, so another layer blocks it; one layer of defence stays missing until metald restarts. | Partial | 7/10 | Handled 9/10 Retested: a timer restored the private-network drop rule after 23 s. | Reconcile the isolation rule on every pass, or move host rules into one nftables table that Metal owns and checks. Alert when it is missing. See F30. | T27 on a development host. |
| S37 | Migration | Atlas loses contact with the destination host at cutover for longer than 10 min (network partition, Atlas outage, destination API hang). | The destination finished cutover by itself and ran the guest for 11 min. Atlas hit its 10-min visibility timeout, marked the migration canceling, and sent abort when the network returned. Metal deleted the destination disk and restarted the source from its old disk. 11 min of synced guest writes were lost, with no operator action. The migration ended failed with destination_unreachable. | Not handled | 0/10 | Handled 8/10 Same path as the T21 retest: at ready the destination refuses rollback, so Atlas finishes once contact returns. | After the destination started the guest, never roll back automatically: keep retrying finish (the destination already holds the newest disk). Abort only before the source stops. See F7. | T28 on development hosts. |
| S38 | Placement | Customers create VMs with large disks. | Placement put 8 VMs of 512 GiB each (4 TiB) on one host with an 864 GiB pool, because it reads physical free space and new thin disks use almost none. Nothing limits overcommit, so the host pool fills as guests write (S7). | Not handled | 2/10 | Handled 9/10 Checked on a host: 53,248 MiB of provisioned disks now lower available storage from 837,557 MiB to 804,096 MiB. | Count provisioned disk against an explicit overcommit ratio per host, and stop placement at a pool-use threshold. See F12. | T31 on the local site and development hosts. |
| S39 | Migration | The destination host dies for good after the source stopped the VM for cutover. | The source VM stays stopped and locked: Metal never expires a stopped source. Atlas keeps the migration canceling and keeps the VM action lock, so the customer VM stays down and no other action (start, migrate, resize) is allowed. There is no force-rollback action in Atlas. | Not handled | 1/10 | Partial 7/10 An operator runs Dangerous Actions > Restore Source once the destination has not reported for 15 minutes. Metal starts and unlocks the source; a destination that returns is discarded. Tested end to end on development hosts. Writes on the lost destination after cutover are gone. | An operator action (Dangerous Actions) that rolls the source back without the destination after confirming the destination is gone, and an alert for migrations stuck in canceling. See F32. | Code reading, following T28 (Atlas waits in canceling while the destination is unreachable). |
| S40 | Frappe (external) | The cache Redis hangs, or answers with errors. | A hang freezes every web request and stops host sync until Redis answers. With a socket timeout, requests fail fast, but in lite mode the runner's scheduler thread stopped and was not started again (F33). | Not handled | 3/10 | Requests fail fast and the scheduler survives a Redis error: catch errors per scheduler tick, and restart a dead scheduler thread. Alert on the scheduler heartbeat. | D2 and D2b on the local site. |
Findings
| # | Severity | Area | Problem | Effect | Fallback or fix | Where | Verified | Resolution |
|---|---|---|---|---|---|---|---|---|
| F1 | Critical | Host storage | VM volumes are thin ZFS clones with no reservation. The Metal state dataset has no reservation either. The pool is shared. | A full pool breaks every guest on the host at the same time (I/O errors, then dead services until restart). Metal cannot write records, so every reconcile fails and an API stop returns HTTP 500. | Reserve space for metal/state. Alert and stop placement at a pool-use threshold. Count provisioned disk in placement (F12). | metal/internal/storage/disk.go, host install | T4 fault injection | Fixed: metald counts provisioned disks, and the state dataset keeps a 1 GiB reservation. |
| F7 | Critical | Migration | A disk-only migration cold-boots the guest on the destination before Atlas commits ownership. Abort is still allowed in that window, and Atlas aborts by itself when the destination is silent for 10 min. Abort deletes the destination disk and restores the source from the pre-cutover snapshot. | Writes that the guest made and synced on the destination are lost after an abort, silently. The guest goes back in time by the length of the window. | Once the destination has started the guest, allow only finish: reject abort in Atlas and Metal, and make the worker retry commit instead of failing. Or keep the destination guest paused (and with no network) until Atlas commits, so it cannot write. | metal/internal/vm/migration | T21 (operator abort) and T28 (11-min Atlas-to-destination network cut, no operator): synced guest writes lost | Fixed: a disk-only destination refuses abort at ready, and Atlas finishes the migration instead. Retested T21. |
| F12 | Critical | Placement | Hosts report pool free space from zpool list as available storage. Thin VM disks use little space at first, so placement can sell the same space many times. | No limit on disk overcommit. Together with F1 this leads to a full pool as guests grow. During T4 the host reported 880 GiB free while every dataset had 0 bytes available. | Report storage as pool size minus provisioned volume sizes (or apply an explicit overcommit ratio), and read available from zfs get, not zpool list. | metal/internal/storage/zfs_pool.go Capacity, metal/internal/host/service.go | T4 and T31: 4 TiB of disks placed on an 864 GiB pool | Fixed: available storage is the smaller of free pool space and pool size less every provisioned disk. Verified on a host. |
| F25 | Critical | Data durability | There is no off-host copy of VM disks: no scheduled snapshot shipping, no replica, no restore-to-new-host flow. | Losing one host's pool loses the data of every VM on it. RAID 1 protects only against one disk failure, not against host loss, provider reclaim, operator error, or pool corruption. | Add scheduled incremental snapshot shipping (the machine image upload path already streams ZFS data to object storage) with a retention policy and a restore action. Make it at least opt-in per VM, and on by default for tenant data VMs. | Metal storage and Atlas VM module | Code reading | Deferred: needs off-host storage and an architecture. |
| F2 | High | Metal daemon | metal.service uses the default start limit (5 starts in 10 s) with RestartSec=1. | A transient startup failure (for example WG Mesh setup before wg0 is ready at boot) leaves the daemon failed for good. Nothing on the host manages VMs until an operator runs systemctl reset-failed metal. | Set StartLimitIntervalSec=0 and a longer RestartSec, and alert on a failed unit. | Host install unit for metal.service | T29 fault injection | Fixed: StartLimitIntervalSec=0, RestartSec=5. |
| F8 | High | Images | Archived images lose their artifacts after the retention time even while VMs use them. Image cleanup counts a VM as a user of its image only while its reported state is running, stopped or paused, so a VM that is failing to start does not protect its image. | A VM with an archived image cannot start again after a restart, resize, or migration. | Keep the kernel and root file system artifacts while any VM references the image. | Image reclaim in Atlas, ensureImage in Metal | Known open issue, seen on a pre-production host | Fixed: artifacts are deleted only with the image record, after the last VM record. |
| F21 | High | Private network (WG Mesh) | WG Mesh attaches its eBPF program to wg0 only when metald starts. The fix for the 2026-10-16 incident makes configure-wireguard.sh restart metald, but any other wg0 restart (manual systemctl restart wg-quick@wg0, a package upgrade hook, a unit dependency restart) still removes the program for good. | Any wg0 restart cuts the private network of every VM on the host until someone restarts metald. Nothing reports it. | Make the mesh hook check part of each sync: if the program is missing, attach it again (the attach is already safe to repeat). Export a metric for hook presence. | metal/cmd/metald/main.go connectMesh, metal/internal/network/mesh.go | T14 fault injection (repeats the root cause of the 2026-10-16 incident through another path) | Fixed: each host sync checks the mesh hooks and configures the mesh again when one is missing. Retested T14. |
| F23 | High | IPv6 router (not in production) | Each public IPv6 block depends on one router VM on one host, with no health check of forwarding. | One host failure stops public IPv6 for every VM that uses the block, and Atlas still shows the router as Active. | Add a forwarding health check that marks the router unhealthy and alerts. Keep a runbook (or automation) to move the block to a standby router. | atlas/service/core/ipv6_router, services/ipv6-router | Code reading and handbook | Deferred: the IPv6 router is not used in production yet. Not counted in the scores. |
| F27 | High | Placement | Placement uses only capacity samples newer than 2 min, and those samples depend on the scheduler plus the shared default queue. | Any scheduler stop or queue backlog over 2 min turns into a region-wide create outage with a misleading out-of-capacity error. Nothing alerts on stale samples. | Give host sync a dedicated queue and worker pool with a short job timeout; return a separate stale-data error; alert on sample age and on a disabled scheduler. | atlas/metal_server/usage.py, atlas/vm/core/placement/context.py | T25 fault injection | Partial: stale samples no longer order a new host and the error says why. A separate queue does not help, because one worker group serves all queues. |
| F32 | High | Migration | Source rollback is driven only by the destination. If the destination host is lost after the source stopped, nothing can restart the source, and Atlas has no force action. | A hardware failure of the destination during cutover keeps the customer VM down until the destination returns or someone edits host records by hand. | Add a Metal source API and an Atlas Dangerous Action to roll back a stopped source when the destination is confirmed gone, plus an alert on migrations in canceling for more than 15 min. | metal/internal/vm/migration/source.go, atlas/vm/core/vm_migration.py | Code reading | Fixed as a manual Dangerous Action: Restore Source, allowed only before commit and after 15 minutes without a destination report. A returning destination is discarded. Tested end to end. |
| F33 | High | Frappe (external) | During a Redis outage with a socket timeout set, the scheduler thread of the lite-mode Frappe runner stopped and was never started again. Frappe's scheduler loop catches errors for each site, so the exact cause is not confirmed; the runner sends a dying thread's traceback only to its terminal. The runner turns off the restart that the worker-pool has: FrappeWorker.run_maintenance_tasks starts a missing scheduler again at the RQ maintenance interval (10 minutes). | Lite mode: host sync stops until the runner restarts (7+ minutes in the test). Worker-pool (production with systemd): at most about 10 minutes without host sync, and placement rejects creates meanwhile. | In Frappe: let the runner start its scheduler thread again when it ends, as the worker-pool does. Production does not use lite mode. | frappe/utils/scheduler.py start_scheduler, frappe/runner.py Scheduler (frappe/frappe) | D2b fault injection | Open: tracked for a fix in frappe/frappe. Not counted in the Atlas and Metal scores. |
| F3 | Medium | Metal daemon | One unreadable VM or migration record stops daemon startup. | Blast radius is the whole host instead of one VM. | Quarantine the bad record and start the daemon for the other VMs. | metal/internal/vm/records.go validateAll | Code reading | Fixed: records are checked per VM, invalid writes are refused, and the bad VM is reported. Tested on a development host. |
| F4 | Medium | Metal daemon | The VM reconciler runs 4 workers and waits for the whole pass. One VM operation can take up to 35 min (for example an image download). | 4 slow VMs delay stop, restart, and delete for every other VM on the host. | Track in-flight VMs and start work for idle VMs without waiting for the slowest one. | metal/internal/reconciler/virtual_machines.go | Code reading | Fixed: VM operations share slots across passes; a pass does not wait for slow VMs. |
| F5 | Medium | Atlas control plane | Network and route changes lock the Virtual Machine row (FOR UPDATE) and then call Metal twice. | A slow host holds the row lock for up to about 90 s, so other writers hit lock wait timeouts. | Do not hold a row lock across a Metal call. Compare Metal generations instead. | atlas/vm/core/vm_service.py lock_network | T19: a second writer waited 17 s for the row while Metal hung | Fixed: a per-VM file lock serializes network changes; no row lock waits on Metal. |
| F6 | Medium | Atlas control plane | Each failed host sync, draft check, and termination check writes an Error Log row on every pass. | One unreachable host writes about 8,640 rows a day for sync alone, plus rows per VM. | Log the first failure and state changes. Keep the last error and a failure count on the Metal Server. | atlas/metal_server/usage.py, atlas/vm/core/reconciliation.py | T3: 30 rows in 5 min for one host | Fixed: repeated sync and reconcile failures are logged once an hour. |
| F13 | Medium | Metal daemon | When Metal cannot write its state, API mutations return a bare internal server error. | Atlas shows Metal request failed: internal server error. The operator cannot see that the host disk is full. | Map ENOSPC to a stable error code such as host_storage_full with a clear message. | metal/internal/api | T4 fault injection | Fixed: ENOSPC returns 507 host_storage_full. |
| F14 | Medium | Atlas dependencies | The Redis clients for the queue have no socket timeout. | A hung Redis blocks web requests and scheduler ticks with no limit. Workers are used up and the whole Atlas site stops answering. | Set socket_timeout and socket_connect_timeout on the Redis connections, and map the timeout to a retry-later error. | Frappe Redis connection setup used by frappe.enqueue | T5 fault injection | Open: tracked in frappe/pilot#686 (socket timeouts on the Redis URLs that Pilot writes). |
| F18 | Medium | Images | Machine image transfer marks the image Failed on any Metal client error, including timeouts and 502/503. The pending-transfer job skips Failed images. | A short host or network problem during an image upload fails the image for good. The staged snapshot on the host is pruned after 48 h. | Keep the status and retry when the error is retryable; fail only on a definite error. | atlas/vm/core/vm_image_transfer.py transfer | Code reading | Fixed: a retryable Metal error keeps the transfer running and shows the error. |
| F19 | Medium | Atlas dependencies | VM state reaches Central only through Frappe webhooks with 3 retries (5 min, 30 min, 2 h). Retries can deliver an older state after a newer one. | A Central outage longer than about 2.5 h loses state events for good. A late retry can make Central show a stale state. | Have Central drop events older than its stored observed_at, and add a periodic full state resync between Atlas and Central. | atlas/vm/core/state_webhook.py | Code reading (Frappe webhook retry schedule) | Deferred: owned by Central. |
| F20 | Medium | Host daemon (metald) | Every reconcile phase sets the observed error to empty before it runs. A VM whose start fails on each pass shows no error between passes. | During a 5-min image download outage the API showed only unknown with no reason. Operators and customers cannot see why a VM does not start. | Clear the stored error only after a phase succeeds, and keep a failure count and the time of the last failure. | metal/internal/vm/reconcile.go runOperation | T12 fault injection | Fixed: the stored error stays until the operation completes. |
| F22 | Medium | Host storage | The ZFS pool is created on a single md RAID 1 device instead of a ZFS mirror of the 2 disks. | ZFS detects checksum errors but cannot repair them, and md RAID 1 cannot tell which copy is good. Silent corruption on one disk can reach guests. | Create the pool as a ZFS mirror of the 2 partitions for new hosts. Plan a migration path for existing hosts (drain, rebuild). | atlas/scripts/install-metal-storage.sh, provider disk layout | Host layout on development hosts | Deferred: needs host rebuilds. |
| F24 | Medium | Host daemon (metald) | metal.service has no systemd watchdog. | A hung daemon stays hung: no restart, no alert from systemd. All VM management on the host stops until someone notices. | Set WatchdogSec= and send WATCHDOG=1 from a loop that proves the reconciler and API still make progress. | Host install unit for metal.service, metal/internal/platform/systemd* | T19 fault injection | Fixed: metald pings the systemd watchdog; WatchdogSec=60. Retested T19. |
| F26 | Medium | Data durability | Atlas cannot rebuild its VM records from the hosts. | After an Atlas database loss or old restore, operators cannot find or adopt VMs that exist only on hosts. | Add a reconcile command that compares GET /v1/vms on every host with Atlas records and reports or imports the differences. | atlas/metal_server | Code reading | Partial: unknown VMs are now reported (F9). Import is not built. |
| F28 | Medium | Observability | Vector on hosts uses the default systemd start limit. One transient failure (for example a full disk) leaves it dead for good. | Host logs and metrics, including the metald push to Datum, stop with no alert. Operators lose visibility exactly when a host has problems. | Set StartLimitIntervalSec=0 and Restart=always with a delay for Vector, and alert in Atlas or Insights when a host has sent no telemetry for 5 min. | Host install (Vector unit), telemetry alerting | Seen after T11 on a development host | Fixed: Vector drop-in with no start limit and RestartSec=5. |
| F29 | Medium | Public network | The shared IPv4 masquerade rule is created only by ExecStartPre=network-setup when metald starts. | Any flush of the NAT table cuts IPv4 internet for every VM on the host without a public IPv4, and nothing repairs it until metald restarts. | Ensure the masquerade rule in the network reconcile path (it already re-creates per-VM rules) and export a metric when it is missing. | metal/internal/network/nat.go, metal-network-setup in atlas/scripts/install-metald.sh | T26 fault injection | Fixed: a 30-second timer runs the host network setup again. |
| F31 | Medium | Placement | Each host sync (every 10 s) saves the Virtual Machine State document of every VM on the host, with a commit each, even when nothing changed. | Measured 3.5 ms per VM on the local site. At 100 hosts with 200 VMs each that is about 70 s of database work every 10 s. Sync then falls behind, and stale capacity blocks every create (F27). | Write a state row only when its status changes, keep synced_at once per host, and batch the writes in one transaction. | atlas/vm/core/vm_state.py store_reported_states | Local benchmark (6 VMs, 5 runs) | Fixed: only new or changed VM states are saved as documents; unchanged ones get one update per host. |
| F9 | Low | Atlas control plane | No check compares the VMs on each host with Atlas records. | After an Atlas database restore, VMs created after the backup run on hosts without Atlas records. Placement does not count them. | Report unknown VM IDs from sync and show them on the Metal Server. | atlas/metal_server/usage.py | Code reading | Fixed: host sync logs VMs that have no Atlas record. |
| F10 | Low | Atlas control plane | A disk resize stores disk_mib in Atlas in a later write after Metal accepts it. | If the Atlas write fails, placement counts the old, smaller disk. | Write the reservation before the Metal call, or read it from Metal state. | atlas/vm/core/vm_service.py update_disk | Code reading | Fixed: a retried resize repairs the stored disk size. |
| F11 | Low | Migration | Terminal destination records stay on the host with no cleanup. | Directories collect over time. Seen 8 days after an aborted migration. | Remove terminal records after a retention time. | metal/internal/vm/migration/records.go | Seen on a development host | Fixed: clean aborted destination records are removed after 7 days. |
| F15 | Low | Migration | Migration transfer rows store 0 throughput even for a 3.7 GiB transfer. | Operators cannot see the copy speed, which makes slow or stalled copies hard to find. | Store the measured throughput from Metal, or compute it from bytes and duration. | atlas/vm/core/vm_migration.py upsert_transfers | T7 fault injection | Fixed: Atlas measures throughput from copied MiB and elapsed time. |
| F16 | Low | Migration | A stalled copy shows the same copying status as a healthy one. | During the 2-min stall nothing in Atlas showed a problem. | Show the time since the last byte moved and warn after 60 s. | atlas/vm/core/vm_migration.py, Metal migration status | T7 fault injection | Fixed: the migration status shows live bytes for the interval in flight. |
| F17 | Low | HTTP proxy | Proxy and gateway clusters with 3 or fewer nodes require an acknowledgement from every node for each route write. | One node down blocks route writes in the region (new sites, domains) until it returns. Requests are not affected, and Central retries the writes. | Use a majority for writes and rely on snapshot catch-up for the stale node, or require at least 4 nodes in production. | services/control-cluster/atlas_control/cluster.py | Code reading | Deferred: route writes are retried by Central; requests keep working. |
| F30 | Low | Public network | The FORWARD rule that drops guest traffic to the host private network is created only by the metald start script. | After a filter table flush, one isolation layer between guests and the host private network stays missing until metald restarts. In the test another layer still blocked the traffic. | Own the rule in the network reconciler next to the per-VM rules, and check it on every pass. | atlas/scripts/install-metald.sh (metal-network-setup), metal/internal/network | T27 fault injection and a direct connection test | Fixed: the same timer restores the drop rule. |
| F34 | Low | Migration | The migration worker treats a lost database connection as a definite error and tries to fail the migration. | During a long outage the fail write also fails, so nothing changes (D3b). A blip that ends between the two writes can fail a healthy migration. | Treat lost-connection errors (2003, 2006, 2013, interface errors) as transient. | atlas/vm/core/vm_migration.py is_transient_error | D3b fault injection and code reading | Not reachable: Frappe does not reconnect inside a job, so after a lost connection the worker's frappe.db.rollback() raises (2006) before it can fail the migration. The next reconcile resumes it (D3b). Checked by killing a live connection. No change. |
| F35 | Low | Atlas dependencies | The VM state webhook sends observed_at in local site time with no time zone. | Central cannot order events safely when its time zone differs from the Atlas site. | Add an optional field with a time zone (for example Unix seconds) and have Central order by it. | atlas/vm/core/state_webhook.py | D6 fault injection | Not an issue: Atlas sites run in UTC, and Central reads observed_at as UTC. |
Reliability checklist per feature
✓ the feature has this property. ~ partly. ✗ missing.
VM create
- ✓ Draft is committed before the Metal call; the VM name is the Metal ID, so a retry is idempotent (T3).
- ✓ A draft whose create never reached Metal is deleted after a confirmed 404 (T3).
- ✓ Concurrent creates do not double-book a host (T9).
- ~ Placement can pick a host that stopped answering less than 2 min ago (T3).
- ✗ Placement does not count provisioned thin disk, so disk can be oversold without limit (F12).
- ~ While an image downloads, Atlas shows state
unknowninstead of a clear starting phase (T12).
VM delete
- ✓ Destroy runs in checkpointed steps (runtime, network, storage) and resumes after a crash.
- ✓ Atlas deletes the record only after Metal confirms absence; all host resources were removed (T9).
- ~ A host that cannot write state (full pool) cannot destroy a VM to free space (F1).
Power and restart
- ✓ Metal stores desired state and the reconciler converges; a killed guest restarts in 2 s (T2).
- ~ A guest that cannot shut down costs the full 30 s graceful timeout per restart (T4).
- ✗ No crash-loop limit or crash counter for a guest that keeps failing.
Migration
- ✓ Destination daemon crash during copy: resumed and completed with intact data (T6).
- ✓ 2-min network cut during copy: stream resumed, data intact (T7).
- ✓ Atlas commits ownership before Metal destroys the source; finish and abort are exclusive.
- ✗ A 10-min Atlas-to-destination network cut at cutover makes Atlas roll back and lose the guest's writes (T28).
- ~ Abort after the destination booted discards destination writes (F7).
- ✗ Stall and throughput are not visible in Atlas (F15, F16).
- ✗ No operator action to recover a source when the destination host is lost (F32).
Host sync and control
- ✓ Hosts keep running VMs and last sync when Atlas is down or cut off (T3).
- ✓ Controller sets (peers, images, privileged addresses) are complete and replace the old set, so a missed sync heals on the next one.
- ✗ A host that cannot reach Atlas is not marked unreachable; errors go to Error Log every 10 s (F6).
Host daemon (metald)
- ✓ Crash and reboot recovery: ready in 3 s, VMs restarted after boot (T1, T8).
- ✓ State files are written atomically with fsync.
- ✗ Start limit can leave the daemon failed after 5 quick failures (F2).
- ✗ One corrupt record stops the whole daemon (F3).
Host storage
- ✓ fsync-acknowledged guest writes survive a full pool (T4b).
- ✗ No reservation for Metal state, no pool alert, no placement stop near full (F1).
Machine images
- ✓ Downloads verify SHA-256 and retry transient errors; partial imports are removed.
- ✗ Archived images lose artifacts while VMs still use them (F8).
- ✗ A transient Metal error during image upload marks the image Failed for good (F18).
Atlas dependencies
- ✓ Central outage: the last valid key set stays in use for token checks.
- ✗ Queue Redis hang blocks requests with no timeout (F14).
- ~ VM state webhooks to Central stop after 3 retries (about 2.5 h) and can arrive out of order (F19).
HTTP proxy
- ✓ Each node serves from its local route map; DNS health checks drop a bad node.
- ~ With 3 or fewer nodes, one bad node blocks route writes (F17).
Fleet operations
- ✓ metald rollouts use a canary batch, health checks, and stop on the first failure.
- ✓ Daemon upgrade restarts in place; VMs keep running.
Host provisioning
- ✓ Provider create is idempotent by name; setup runs as one deduplicated job and each step is safe to repeat.
- ✓ Storage setup refuses a device that has any partition table, file system or signature, so it cannot wipe data.
- ✗ The state dataset gets no space reservation (F1); the pool is one md device, not a ZFS mirror (F22).
Host networking
- ✓ WireGuard peers are re-applied on every sync, so a
wg0restart heals peers in 10 s (T14). - ✗ The WG Mesh program is not re-attached after a
wg0restart (F21). - ~ Per-VM NAT and FORWARD rules are reconciled; the shared masquerade and isolation rules are not (F29, F30).
Next
- Add socket timeouts to the Redis URLs that Pilot writes (F14, frappe/pilot#686). Production uses the worker-pool, which starts a stopped scheduler again within 10 minutes.
- Add socket timeouts to the Redis URLs that Pilot writes (F14, frappe/pilot#686). Production uses the worker-pool, which starts a stopped scheduler again within 10 minutes.
- Deferred architecture work: off-host disk copies (F25), ZFS mirror (F22), IPv6 router standby (F23), proxy quorum (F17), Central event ordering (F19).
- Build an import for VMs that hosts run without an Atlas record (F26).
Log
- 2026-10-23 08:57 UTC: Rescored two Atlas dependency scenarios by failed requests and data loss. Queue Redis hang from 4 to 7: VMs keep running, nothing is lost, everything recovers when Redis answers, and Central retries; the timeout fix is tracked in frappe/pilot#686. Central down from 5 to 7: VMs are not affected; only the state shown in Central can be stale until the next change, and Central owns that fix (F19).
- 2026-10-23 08:55 UTC: F3 fixed. On a development host, a test VM's observed record was overwritten with broken JSON and metald was restarted. metald started (before, it refused), kept the 3 other VMs managed, listed the VM in
invalid_virtual_machines, and reported no free capacity; Atlas logged the VM once. After the record was restored, capacity came back on the next sync. - 2026-10-23 09:55 UTC: Opened frappe/pilot#686 for F14: socket timeouts on the Redis URLs that Pilot writes to
common_site_config.json. - 2026-10-23 09:40 UTC: Correction to D2b and F33: the scheduler thread of the lite runner did stop during the Redis outage, but Frappe's scheduler loop catches errors for each site and
scheduler.logshows no error in that window, so the cause is not confirmed (a dying thread's traceback goes only to the runner's terminal). The production worker-pool starts a missing scheduler again at the RQ maintenance interval (10 minutes), so production loses at most about 10 minutes of host sync. Production does not use lite mode. - 2026-10-23 09:20 UTC: Rescored the pool disk failure scenario to 8 (Handled). The pool sits on md RAID 1 (checked on a host), so one failed disk does not reach ZFS or the guests. The remaining risks are a loss of both disks and silent corruption that ZFS cannot repair without a mirror (F22).
- 2026-10-23 09:00 UTC: Moved the IPv6 router scenario and F23 to their own area, "IPv6 router (not in production)", and left them out of the scores, because the IPv6 router is not used in production yet. Public network now scores only the host NAT and filter rule scenarios, both handled after the fix pass.
- 2026-10-23 08:50 UTC: Rescored "the Atlas scheduler stops" from 6 to 8 after fixes. Placement now does the right thing (fast, clear rejection, no new host, recovery within 20 s), and the usual cause of a stopped scheduler is F33 in Frappe, which is kept out of the Atlas and Metal scores.
- 2026-10-23 08:40 UTC: Rescored the 3-node proxy scenario from 6 to 8 (Handled). The goal is that no customer request fails; route writes are retried by Central. With one node down, the other nodes serve from their local route maps, and Route 53 drops the dead node within about 1 minute; only clients that cached its address can fail, until the 120 s TTL ends. F17 lowered to Low. The score definition now says that a retried control write counts as a short impact, not a failure.
- 2026-10-23 08:20 UTC: Follow-up: F34 is not reachable. Frappe does not reconnect inside a job, so after a lost connection the worker's rollback raises before it can fail the migration (checked by killing a live connection: the query raised 2013, the rollback 2006). F35 is not an issue: Atlas sites run in UTC and Central reads
observed_atas UTC. F33 stays open for a fix in Frappe; it is listed under "Frappe (external)" and not counted in the Atlas and Metal scores. - 2026-10-23 07:56 UTC: D6 Central down: with a fake Central answering 503, the state webhooks for a stop and a start both failed and were kept for retry. Retries resend the stored payload on their own schedule, so when the newer "running" event was retried before the older "stopped" event, Central ended with "stopped" while the VM ran (F19 confirmed live).
observed_atis sent in local site time without a time zone, which makes ordering by it fragile for Central (new Low finding F35). - 2026-10-23 07:56 UTC: D7 log growth: Error Log is the largest table on the local site (about 99,000 rows, 409 MiB) and the 14-day cleanup works (oldest row is 14 days old). The biggest current source is a guest POST every 5 s from an outside address; Frappe logs a 403 only in developer mode, so production does not. The earlier flood of sync-failure rows (about 4,000 a day per region during outages) is fixed by F6. Handled.
- 2026-10-23 07:53 UTC: D8 scheduler disabled for 3 minutes, then a VM create: placement answered "Some Metal Servers have not reported their capacity in the last 2 minutes. Retry later." and queued no capacity expansion (F27 fix verified; auto-spawn is off on this site, so only the message is shown live). Host sync resumed within 20 s of enabling the scheduler.
- 2026-10-23 07:50 UTC: D5 a database session held
FOR UPDATEon a VM row for 60 s: a network change on that VM finished in 0.8 s (F5 fix verified live), and host sync was not affected. - 2026-10-23 07:47 UTC: D1 queue Redis hang (CLIENT PAUSE 120 s): an enqueue call blocked for the full 120 s, and host sync stopped because the scheduler could not enqueue. Requests that do not enqueue were not affected. All recovered at once. This confirms F14; a socket timeout alone is not enough, because of F33.
- 2026-10-23 07:46 UTC: D3b database cut for 30 s in the middle of a migration copy: the migration finished normally once the database came back. A lost database connection is not on the worker's transient list, so the worker tries to fail the migration; that write also failed during the outage, so nothing changed. A blip that ends between the two writes could still fail a healthy migration (new Low finding F34).
- 2026-10-23 07:41 UTC: D3 site database unreachable for 2 minutes (site DB user locked, connections killed): web answered 500 at once (no hang), host sync paused, nothing was written half-way. The scheduler thread survived, and web and host sync recovered within 10 s of the database coming back. Handled.
- 2026-10-23 07:30 UTC: Side observation: about 170 Error Log rows every 15 minutes on the local site, each a guest POST to
/that the Atlas auth hook rejects. It started before these tests. Source not found yet; at that rate the Error Log grows by about 16,000 rows a day. - 2026-10-23 07:33 UTC: D2b same hang with
socket_timeout=2on the cache Redis URL (the proposed F14 fix): web requests failed fast with 500 in 4 s instead of hanging. But the Redis timeout error killed the scheduler thread of the Frappe runner, and nothing started it again: host sync stayed stopped for 7+ minutes until the runner was reloaded by hand. In the systemd worker-pool mode, Frappe starts a dead scheduler thread again at the RQ maintenance interval (about 10 minutes). The process stays alive in both modes, so a systemd restart does not help. New finding F33. - 2026-10-23 07:29 UTC: D2 cache Redis hang (CLIENT PAUSE 120 s on the cache Redis): every web request hung (10 s client timeout) and host sync stopped, so all capacity samples went stale for 2 minutes. Both recovered at once when Redis answered again. No data change.
- 2026-10-23 07:05 UTC: F32 fixed as a manual Dangerous Action (Restore Source), the option the user chose over automatic restore, because Atlas cannot tell a dead destination from a network partition without fencing. Tested end to end on development hosts: froze the Atlas worker until the destination reached ready with a booted guest, stopped metald and the guest on the destination host, and ran the action. It refused while the destination had reported in the last 15 minutes. With the guard passed, the source restarted with its pre-migration data and was unlocked. When the destination host came back, the sweep discarded its copy (ready to aborted, dataset removed).
- 2026-10-23 06:30 UTC: Migration visibility: Metal reports live bytes for the interval in flight and Atlas measures throughput (F15, F16). Host sync logs VMs that have no Atlas record (F9; F26 partial). Not changed: F3 (failing closed avoids duplicate allocation), F14 (bench Redis configuration). F32 waits for a design decision.
- 2026-10-23 06:15 UTC: More Atlas fixes: only new or changed VM states are saved as documents, unchanged ones get one update per host; a real sync on a development host updated all 6 rows with no document save (F31). Placement no longer orders a new host while host samples are stale (F27, partial). A retried disk resize repairs the stored size (F10).
- 2026-10-23 06:00 UTC: Atlas fixes committed with unit tests on the test site: network changes use a per-VM file lock instead of a row lock (F5); repeated sync and reconcile failures are logged once an hour (F6); a retryable Metal error no longer fails an image transfer (F18); archived images keep their artifacts while VMs use them (F8).
- 2026-10-23 05:54 UTC: Retest T21: froze the Atlas worker during copy, the destination reached ready and cold-booted the guest, a marker was written on the destination, then an operator abort was sent. Metal refused rollback (409), Atlas committed the destination and finished. The marker survived; the source disk was removed. Handled (F7 fixed).
- 2026-10-23 05:52 UTC: F12 check: a host with 53,248 MiB of provisioned disks and 837,557 MiB free now reports 804,096 MiB available (pool size less provisioned disks). Placement can no longer sell the same space twice (F12, F1 fixed).
- 2026-10-23 05:51 UTC: Retest T19 (SIGSTOP metald): the systemd watchdog killed and restarted metald 55 s later; all 5 VMs kept running. Handled (F24 fixed). T29: unit now has no start limit and RestartSec=5 (F2 fixed, verified by unit properties).
- 2026-10-23 05:50 UTC: Retest T26/T27: deleted the masquerade rule and the private-network drop rule. The metal-network-setup timer restored each within 30 s. Handled (F29, F30 fixed).
- 2026-10-23 05:49 UTC: Retest T14 (wg0 restart): the WG Mesh hook came back 18 s later through host sync. Handled (F21 fixed).
- 2026-10-23 05:47 UTC: Fix pass started on branch fix/reliability-audit. Deployed metald 0.1.0+9a691617 with the new units to two development hosts.
- 2026-10-22 23:19 UTC: Clean-up: all test timers, nft tables, fill datasets and files are gone from the 3 hosts; Vector, metald and the WG Mesh hook are active on all 3; every remaining VM runs as desired. The 2 audit VMs (tenant 77) were terminated.
- 2026-10-22 23:17 UTC: T31 create 512 GiB VMs one by one through normal placement, 15 s apart: all 8 were placed on the same host, 4 TiB of disk on an 864 GiB pool. Placement reads the pool's physical free space, and new thin disks use almost none of it, so there is no limit on disk overcommit. F12 confirmed. The 8 VMs were terminated.
- 2026-10-22 23:14 UTC: T29 make metald fail at start (WG Mesh binary missing): systemd restarted it 5 times in about 6 s, then left it failed ('Start request repeated too quickly'). After the cause was fixed, metald stayed down for 40+ s and would have stayed down for good; only reset-failed and start brought it back. All 6 VMs kept running the whole time. F2 confirmed.
- 2026-10-22 23:13 UTC: T28 (data loss confirmed, no operator involved) migrate a VM and block only Atlas to destination API traffic at cutover for 11 min. The destination finished on its own and ran the guest for 11 min (counter reached 24504, a marker file was written and synced). Atlas never saw ready, hit its 10 min visibility timeout, marked the migration canceling, and when the network came back sent abort. Metal deleted the destination disk and restarted the source from its pre-cutover disk: the guest went back to counter 21920 and the marker file was gone. About 11 min of acknowledged writes were lost and the migration shows failed with destination_unreachable.
- 2026-10-22 23:02 UTC: Code review and a local benchmark: host sync saves one Virtual Machine State document per VM every 10 s, even when the status did not change (3.5 ms per VM here). At the target fleet size this alone can push host sync behind, which then blocks creates (F27).
- 2026-10-22 22:59 UTC: Correction to T27: the earlier entry said guests could open connections to the host private network. A direct test with the drop rule removed showed the guest still could not connect to another host's migration port; another layer (the peer host firewall or routing) blocks it. The missing rule is one lost layer of defence, not an open path. F30 lowered to Low.
- 2026-10-22 22:58 UTC: T27 flush the host filter table: metald put back the per-VM public IPv4 FORWARD rules, but not the rule that drops VM traffic to the host private network. For 70 s (until the test restored it) guests could open connections to the host private network, where the migration coordination and transfer ports listen. Not handled; isolation depends on a rule only the start script adds.
- 2026-10-22 22:56 UTC: T26 flush the host NAT table (as iptables -t nat -F or a firewall reload would): metald put back the per-VM public IPv4 SNAT/DNAT rules within 12 s, but not the shared 10.0.0.0/8 masquerade rule, which only the metald start script adds. VMs without a public IPv4 had no IPv4 internet for 3 min until a test guard restored the rule. Partial.
- 2026-10-22 22:51 UTC: Side effect found from T11: when the root file system was full, Vector (the host log and metric shipper, also the local endpoint metald pushes telemetry to) failed with 'No space left on device', hit the systemd start limit, and stayed dead after the space came back (45 min until restarted by hand). Telemetry from that host stopped silently. Restarted it.
- 2026-10-22 22:50 UTC: T25 disable the Atlas scheduler for 3 min: hosts kept running, but host sync stopped, capacity samples became older than 2 min, and placement rejected every create with 'No Metal Server has capacity. Retry later.' The error blames capacity, not stale data. Creates worked again 10 s after the scheduler came back. The same happens when the default queue falls behind: host syncs share it with 15-min image transfers and provider calls, and each unreachable host holds a worker for up to 30 s.
- 2026-10-22 22:47 UTC: T24 systemctl stop metal for 2 min (planned maintenance): all 5 VMs kept running with no guest pause; on start metald adopted all 5 serial consoles from the systemd descriptor store. Handled. Code review of upgrade-metald.sh: binary hash check, version check, automatic rollback when the daemon is not ready in 120 s or a VM stopped, and patch-aware rollback. Handled.
- 2026-10-22 22:44 UTC: T23 kill -9 metald on the source while it stopped the VM for cutover: the migration completed 6 s later. Checksum OK, counter contiguous, source disk and records removed. Handled.
- 2026-10-22 22:43 UTC: T22 kill -9 metald on the destination during cutover (state applying_state): it restarted, continued from its checkpoint, and the migration completed 4 s later. Checksum OK, counter contiguous, source fully removed. Handled.
- 2026-10-22 22:41 UTC: T21 (data loss confirmed) migrate a VM; freeze the Atlas worker at cutover so it cannot commit; the destination booted and ran for 29 s; inside it the test wrote and synced a marker file and counter lines. Then an abort was requested (as an operator would). Metal deleted the destination disk and restarted the source from its pre-cutover disk. The marker file and about 30 s of synced counter lines were gone; the source reused the same counter numbers. Any abort or non-transient worker error between destination start and Atlas commit loses writes the guest already acknowledged.
- 2026-10-22 22:38 UTC: Code review: there is no off-host copy of VM disks and no tool to rebuild Atlas records from hosts. Losing a host's disks loses its VMs' data unless the application has its own backups. Log tables have retention (Error Log 14 days, Scheduled Job Log 7 days, capacity samples 3 h); SSH Task rows have none.
- 2026-10-22 22:38 UTC: Code review of every ZFS destroy call in Metal: each one is scoped to a dataset the caller owns (VM release after Atlas commit, destination abort only for a reserved destination ID, image delete refuses images with clones, unfinished imports only). No path found that destroys a running VM's disk by mistake.
- 2026-10-22 22:37 UTC: T20 send 8 conflicting operations to one VM at the same time (stop, start x2, restart x2, disk resize, metadata, SSH keys): all were accepted in under 1 s (resize 4 s). Within 30 s Metal reached desired generation 5 and restart generation 5 with no stuck phase and no error, and the Atlas disk size matched Metal. The final power state is whichever request Metal stored last. Handled.
- 2026-10-22 22:33 UTC: T19 freeze metald with SIGSTOP for 150 s (a hung daemon, not a crash): systemd kept reporting the unit active, because metald has no systemd watchdog, so nothing restarted it. Hosts VMs kept running. In Atlas a network change held the VM row lock for about 17 s while its Metal reads timed out, and a second writer waited the same 17 s for the row. With a slower failure (read succeeds, write hangs 60 s) that wait would pass the 50 s database lock timeout. After SIGCONT metald answered again at once.
- 2026-10-22 22:30 UTC: T16 let a VM with a 60 s idle timeout fall asleep, restart metald, then open a TCP connection to it: the VM restored its memory and answered in 7 s. Handled. (ICMP ping does not wake a VM by design.)
- 2026-10-22 22:19 UTC: T15 kill -9 metald while a new VM's image (4 GiB) was downloading: after restart the import finished, its checksum was verified, and the VM ran 23 s after the kill. Handled.
- 2026-10-22 22:18 UTC: T14 restart wg-quick@wg0 on one host: the host WireGuard peers came back by the next Atlas sync, but the WG Mesh eBPF program on wg0 was gone. Cross-host VM private traffic failed for 2+ min with no repair and no error anywhere. Restarting metald attached the program again and traffic recovered at once. Not handled (also seen before on a pre-production region).
- 2026-10-22 22:18 UTC: T13 try to fail disk writes under the pool: zinject is not installed and a read-only flag on the md device only logs a kernel warning, so writes continued. Disk failure stays a code-review scenario (pool failmode is wait, so I/O would hang).
- 2026-10-22 22:13 UTC: T12 block object storage on one host for 5 min, then create a VM whose image the host has not cached: Metal retried the kernel download 4 times per pass (about 80 s), failed the pass, and started a new pass, forever with backoff. The VM started 46 s after the block ended. During the 5 min the API showed state unknown with no error: every new pass clears the last error before it runs, so a polling client never sees why the VM is not starting.
- 2026-10-22 22:06 UTC: T11 fill the host root file system to 100 % for 4 min: a VM restart through Atlas worked (stop, start, records). VM state, chroots and disks live on ZFS, so the root file system is not on the VM path. Handled for VM operations.
- 2026-10-22 22:06 UTC: T9 20 concurrent VM creates on 3 hosts: 7 placed (spread over all 3 hosts), 13 rejected at once with placement_busy (retry now). No duplicate names or double booking. This matches the accepted fixed placement deadline. Terminating the 7 VMs removed every record, dataset, network namespace and unit on all hosts within 10 s.
- 2026-10-22 22:03 UTC: T8 reboot a whole host with 6 VMs: the host was gone for 4 min 42 s (hardware restart). metald was ready 3 s after SSH came back and all 6 VMs were running 5 s after boot. Guest data intact, WireGuard peers and WG Mesh restored, a cross-host mesh ping worked. Handled.
- 2026-10-22 21:57 UTC: T7 migrate back; drop all transfer-port packets between the hosts for 2 min during the copy: the TCP stream stalled and resumed when the block ended (the stall limit is 2 min). Migration completed in 172 s. Checksum OK, counter contiguous. Atlas showed copying with no warning during the stall, and the transfer rows show 0 MiB/s throughput even for the 3.7 GiB transfer.
- 2026-10-22 21:53 UTC: T6 migrate a VM with a 3 GiB checksummed file; kill -9 metald on the destination 8 s into the copy: the source stream broke, the destination daemon restarted in 2 s and resumed the copy from its records. The migration completed 43 s after start. Checksum OK, counter contiguous. Handled.
- 2026-10-22 21:51 UTC: T5 pause the Atlas queue Redis for 60 s (CLIENT PAUSE): an enqueue call blocked for the full 60 s, then succeeded. The Redis client has no socket timeout, so a hung (not dead) Redis blocks every web request and scheduler tick that enqueues a job, with no limit. Cache Redis was not affected.
- 2026-10-22 21:49 UTC: T4b result: after space came back and the VM restarted, all 93 acknowledged writes were on disk and in order. A full pool does not lose fsync-acknowledged data; it fails new writes with EIO and freezes guests until a restart.
- 2026-10-22 21:48 UTC: T4b same test with a writer that prints each sequence number only after fsync succeeds: the guest got a clean EIO at write 94 when space ran out (93 acknowledged). Checking after restart whether all 93 survived.
- 2026-10-22 21:48 UTC: T4 full ZFS pool (all free space taken by a reservation for 4 min): every guest on the host got I/O errors, including guests that did not write; SSH died in all of them. Every reconcile failed (cannot write state file). An API stop returned a bare HTTP 500. The host still reported about 880 GiB free to placement. When space came back Metal recovered by itself, but the guests stayed broken for 6.6 min until an Atlas restart; each restart waited the full 30 s graceful timeout. After restart ext4 recovered and the guest counters had no lost synced lines.
- 2026-10-22 21:33 UTC: Side note: the local site Error Log table is 409 MB (92k rows), mostly rejected guest requests that developer mode logs. Production does not log 403 responses, so this is not counted as a finding.
- 2026-10-22 21:33 UTC: T3 block Atlas to host API for 5 min: power change failed fast (5 s connect timeout) with a clear error. Reading a VM took 19 s (3 tries) and then failed, so Desk forms hang. A create during the block was placed on the silent host and stored as a draft; after the block ended the draft check got a 404 and deleted it. Placement stopped choosing the silent host after its capacity sample was 2 min old. Host sync wrote 30 Error Log rows in 5 min. VMs on the host were not affected.
- 2026-10-22 21:25 UTC: T2 kill -9 the Firecracker process of one guest: the reconciler started the VM again 2 s later. ext4 journal recovery completed; all synced lines were present. Handled.
- 2026-10-22 21:25 UTC: T1 kill -9 metald: systemd restarted it, ready again in 3 s. All 5 VMs on the host kept running. Guest counter: no gap above 0.4 s, no lost lines. Handled.
- 2026-10-22 21:25 UTC: Created 2 audit VMs (tenant 77) on one development host. Each guest runs a counter that appends a line and calls sync every 0.2 s, to detect lost writes and pauses.
- 2026-10-22 21:21 UTC: Code review, first pass: Metal record store (atomic writes with fsync, good), VM reconciler, image reconciler, storage, Atlas VM create, termination, draft reconciliation, host sync, and migration orchestration. 11 findings from code reading, all still to be confirmed by fault injection.
- 2026-10-22 21:21 UTC: Page layout changed to match the owner's preferred structure: summary cards, review note, numbered scenario and finding tables.
- 2026-10-22 21:21 UTC: Correction: the two entries above used local time with a UTC label. They happened at about 21:15 and 21:20 UTC on 2026-10-22. All later entries use real UTC.
- 2026-10-23 21:20 UTC: Page skeleton published. Next: read Atlas and Metal code for failure paths.
- 2026-10-23 21:15 UTC: Audit started. Development environment is ready: local Atlas site is up, 3 development hosts reachable over the private WireGuard network, metald active on all 3.