Atlas and Metal reliability audit

A live record of a reliability audit of Atlas (the region control plane) and Metal (metald, the daemon on each VM host). Code review plus fault injection on development hosts. Updated 2026-10-23 08:57 UTC.

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

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.

AreaScoreAfter fixesScenariosHandledPartialNot handledUntestedWeakest scenario
Private network (WG Mesh)2/109/1010010S20 wg0 is restarted on a host (systemctl restart wg-quick@wg0, a WireGuard package upgrade, or the Configure WireGuard action).
Data durability2/102.5/1020020S27 A host is lost for good (both disks fail, the provider reclaims the machine, or an operator wipes it).
Host storage3/107.5/1020011S7 The host ZFS pool fills up (guests write more than the pool holds).
Placement4.7/108.3/1031020S38 Customers create VMs with large disks.
Metal daemon5.7/109/1031020S3 One VM or migration record on a host is corrupt.
Migration5.9/108.9/1074030S37 Atlas loses contact with the destination host at cutover for longer than 10 min (network partition, Atlas outage, destination API hang).
Images6/108.7/1031110S9 A VM uses an image that was archived more than 6 h ago, then restarts on a host that pruned the image.
Atlas dependencies6/107.8/1040211S10 The Atlas queue Redis hangs (accepts connections but does not answer).
Public network6/109/1020200S35 The host NAT table is flushed (iptables -t nat -F, a firewall package reload, or an operator mistake).
Host daemon (metald)7.2/109/1042110S25 metald hangs (process alive, not answering), for example a deadlock or a ZFS call stuck in the kernel.
Atlas control plane7.5/108/1021100S5 Atlas cannot reach one host (network cut or host API down).
HTTP proxy8/108/1011000S14 One node of a 3-node proxy cluster is down.
Guest VM9/109/1033000S4 A guest Firecracker process exits (kill or guest crash).
Fleet operations9/109/1011000S33 A new metald build fails on a host during a rollout.

Failure scenarios

#AreaFailureWhat the system did at audit timeStatusScoreAfter fixesWhat it should do (fallback)Evidence
S1Metal daemonmetald 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.Handled10/10No changeSame as now.T1 on a development host.
S2Metal daemonmetald 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 handled4/10Handled 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.
S3Metal daemonOne 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 handled3/10Handled 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.
S4Guest VMA 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.Handled9/10No changeSame, plus a crash-loop limit and a visible crash count on the VM.T2 on a development host.
S5Atlas control planeAtlas 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.Partial7/10Partial 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.
S6Atlas control planeAtlas 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).Handled8/10No changeSame, 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.
S7Host storageThe 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 handled2/10Partial 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.
S8MigrationAn 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 handled2/10Handled 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).
S9ImagesA 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 handled2/10Handled 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.
S10Atlas dependenciesThe 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 handled4/10Partial 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).
S11Atlas dependenciesMariaDB 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.Untested7/10Handled 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.
S12Migrationmetald 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.Handled10/10No changeSame as now.T6 on development hosts.
S13MigrationThe 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.Handled8/10No changeShow stalled progress in Atlas (for example no progress for 60 s). See F16.T7 on development hosts.
S14HTTP proxyOne 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.Handled8/10No changeSame. 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.
S15Host 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.Partial6/10Handled 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.
S16Host 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.Handled9/10No changeSame. Customers still see the full hardware restart time; a planned reboot should drain the host first.T8 on a development host.
S17Placement20 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.Handled8/10No changeSame; clients retry placement_busy. This is the accepted fixed placement deadline.T9 on the local site.
S18ImagesObject 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.Partial6/10Handled 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.
S19Atlas dependenciesCentral 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.Partial6/10Partial 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.
S20Private 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 handled2/10Handled 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.
S21Host storageThe 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.Untested4/10Handled 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.
S22Imagesmetald 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.Handled10/10No changeSame as now.T15 on a development host.
S23IPv6 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 handled3/10No changeHealth-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.
S24Guest VMmetald 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.Handled9/10No changeSame. The first packet can be lost while the VM wakes; clients retry.T16 on a development host.
S25Host 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 handled4/10Handled 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.
S26Guest VMMany 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.Handled9/10No changeSame. Clients that need ordering must wait for the generation they caused.T20 on a development host.
S27Data durabilityA 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 handled1/10No changeScheduled, 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.
S28Data durabilityThe 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 handled3/10Partial 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.
S29Atlas dependenciesLog 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.Partial7/10Handled 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.
S30Migrationmetald 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.Handled10/10No changeSame as now.T22 on development hosts.
S31Migrationmetald 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.Handled10/10No changeSame as now.T23 on development hosts.
S32Host 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.Handled10/10No changeSame as now.T24 on a development host.
S33Fleet operationsA 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).Handled9/10No changeSame. 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.
S34PlacementThe 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 handled4/10Handled 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.
S35Public networkThe 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.Partial5/10Handled 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.
S36Public networkThe 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.Partial7/10Handled 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.
S37MigrationAtlas 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 handled0/10Handled 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.
S38PlacementCustomers 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 handled2/10Handled 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.
S39MigrationThe 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 handled1/10Partial 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).
S40Frappe (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 handled3/10No changeRequests 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

#SeverityAreaProblemEffectFallback or fixWhereVerifiedResolution
F1CriticalHost storageVM 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 installT4 fault injectionFixed: metald counts provisioned disks, and the state dataset keeps a 1 GiB reservation.
F7CriticalMigrationA 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/migrationT21 (operator abort) and T28 (11-min Atlas-to-destination network cut, no operator): synced guest writes lostFixed: a disk-only destination refuses abort at ready, and Atlas finishes the migration instead. Retested T21.
F12CriticalPlacementHosts 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.goT4 and T31: 4 TiB of disks placed on an 864 GiB poolFixed: available storage is the smaller of free pool space and pool size less every provisioned disk. Verified on a host.
F25CriticalData durabilityThere 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 moduleCode readingDeferred: needs off-host storage and an architecture.
F2HighMetal daemonmetal.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.serviceT29 fault injectionFixed: StartLimitIntervalSec=0, RestartSec=5.
F8HighImagesArchived 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 MetalKnown open issue, seen on a pre-production hostFixed: artifacts are deleted only with the image record, after the last VM record.
F21HighPrivate 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.goT14 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.
F23HighIPv6 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-routerCode reading and handbookDeferred: the IPv6 router is not used in production yet. Not counted in the scores.
F27HighPlacementPlacement 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.pyT25 fault injectionPartial: 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.
F32HighMigrationSource 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.pyCode readingFixed 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.
F33HighFrappe (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 injectionOpen: tracked for a fix in frappe/frappe. Not counted in the Atlas and Metal scores.
F3MediumMetal daemonOne 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 validateAllCode readingFixed: records are checked per VM, invalid writes are refused, and the bad VM is reported. Tested on a development host.
F4MediumMetal daemonThe 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.goCode readingFixed: VM operations share slots across passes; a pass does not wait for slow VMs.
F5MediumAtlas control planeNetwork 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_networkT19: a second writer waited 17 s for the row while Metal hungFixed: a per-VM file lock serializes network changes; no row lock waits on Metal.
F6MediumAtlas control planeEach 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.pyT3: 30 rows in 5 min for one hostFixed: repeated sync and reconcile failures are logged once an hour.
F13MediumMetal daemonWhen 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/apiT4 fault injectionFixed: ENOSPC returns 507 host_storage_full.
F14MediumAtlas dependenciesThe 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.enqueueT5 fault injectionOpen: tracked in frappe/pilot#686 (socket timeouts on the Redis URLs that Pilot writes).
F18MediumImagesMachine 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 transferCode readingFixed: a retryable Metal error keeps the transfer running and shows the error.
F19MediumAtlas dependenciesVM 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.pyCode reading (Frappe webhook retry schedule)Deferred: owned by Central.
F20MediumHost 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 runOperationT12 fault injectionFixed: the stored error stays until the operation completes.
F22MediumHost storageThe 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 layoutHost layout on development hostsDeferred: needs host rebuilds.
F24MediumHost 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 injectionFixed: metald pings the systemd watchdog; WatchdogSec=60. Retested T19.
F26MediumData durabilityAtlas 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_serverCode readingPartial: unknown VMs are now reported (F9). Import is not built.
F28MediumObservabilityVector 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 alertingSeen after T11 on a development hostFixed: Vector drop-in with no start limit and RestartSec=5.
F29MediumPublic networkThe 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.shT26 fault injectionFixed: a 30-second timer runs the host network setup again.
F31MediumPlacementEach 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_statesLocal benchmark (6 VMs, 5 runs)Fixed: only new or changed VM states are saved as documents; unchanged ones get one update per host.
F9LowAtlas control planeNo 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.pyCode readingFixed: host sync logs VMs that have no Atlas record.
F10LowAtlas control planeA 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_diskCode readingFixed: a retried resize repairs the stored disk size.
F11LowMigrationTerminal 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.goSeen on a development hostFixed: clean aborted destination records are removed after 7 days.
F15LowMigrationMigration 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_transfersT7 fault injectionFixed: Atlas measures throughput from copied MiB and elapsed time.
F16LowMigrationA 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 statusT7 fault injectionFixed: the migration status shows live bytes for the interval in flight.
F17LowHTTP proxyProxy 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.pyCode readingDeferred: route writes are retried by Central; requests keep working.
F30LowPublic networkThe 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/networkT27 fault injection and a direct connection testFixed: the same timer restores the drop rule.
F34LowMigrationThe 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_errorD3b fault injection and code readingNot 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.
F35LowAtlas dependenciesThe 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.pyD6 fault injectionNot 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

VM delete

Power and restart

Migration

Host sync and control

Host daemon (metald)

Host storage

Machine images

Atlas dependencies

HTTP proxy

Fleet operations

Host provisioning

Host networking

Next

Log

Append-only. Newest entry first.