Repository navigation
Feature/test restores - #19
Merged
Merged
Conversation
added 7 commits
November 21, 2026 22:04
A test plan per folder restores the newest backup of its VMs as temporary VMs, starts them, checks they come up and deletes them again (plans/PLAN-test-restores.md, T1 + T2). - Rounds every N days: fixed VMs plus N at random from the folder's backed-up VMs, longest untested first, a tested VM rests N weeks; never-test exclusions. - Target: the folder's DR cluster (any hour, paused during the folder's backups), else the VM's own cluster inside the plan's hours, outside backups, only when it fits before the next backups. One test per target cluster; a node must take the VM under the RAM ceiling. - Boot test: NICs disconnected; pass = guest agent answering, else a login/lock/sign-in screen via the console service (new POST /api/v1/bootcheck, classify.boot_verdict recognising stop screens, BitLocker recovery, no bootable device, GRUB rescue, emergency mode as failures). Screenshot kept; agentless VMs marked. - Network test: NICs on an isolated test VLAN (refused when another VM uses it), then ping/TCP checks from a proxy NIC on that VLAN (proxy 0.6.0 job netcheck, bound to that NIC; host routes for the check only; infrastructure addresses never probed). - Proxy deploy: optional test-VLAN NIC; proxies now run with --network host. - Keep-failed and byte budget per round: options, off by default. - Results on Runs (verdict, target, point age, times, checks, screenshot), Tested column on restore points, alerts (test_failed, test_overdue) on the cluster card and mailed to the closest admin. Sweep removes leftover test VMs (tag and name mark both required). - Migration 053. Texts in en/nl/de/fr. Manual, administration guide, CHANGELOG.
…-restart sweep no longer eat backups - Test restores, network level: the proxy serves the test VM its source addresses by DHCP on the test VLAN (dnsmasq, static leases for the test VM's MACs only, no pool/router/DNS) and probes until the VM answers or the timeout; the test VM is started once the leases are served. Proxy 0.6.1: netcheck no longer rejected for lacking a backup target; dnsmasq-base in the image. - A failed run that had started a new chain removes its partial files from the share and the empty chain (two failed fulls of a 28 GB VM filled the lab share). - The clone sweep shortly after a restart skips chains whose backup is running (it deleted the clones of a backup that had just started).
… and checksum phases - Console boot verdict: a second OCR pass for white text (near-white pixels only, sparse mode) when the first decides nothing; a clock line plus a weekday counts as a lock screen. Live: a restored Windows 11 VM's lock screen read '-' before, now passes; also catches white-on-blue stop and BitLocker recovery screens. - Proxy 0.6.2 reports the phases after a disk's copy (image check, checksum read-back with bytes); the run's message shows them instead of sitting at the last MiB. - "guest agent unknown (source VM is off)" instead of "agent unknown (VM is off)", en/nl/de/fr.
Green while copying or writing, purple while verifying (image check and checksum read-back), sliding when the amount is unknown; a running test restore shows its step (restore, boot against its timeout, network checks, clean-up). Runs, restores and test runs store structured progress (migration 054). Texts in en/nl/de/fr.
…s every 20 s when idle)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A backup that verifies proves the bytes are intact. A test restore proves the VM actually boots. This release adds planned test restores per folder, plus progress bars for all running work.
Test restores
Progress bars
Fixes
Upgrade notes
Testing
No test VMs were left behind. The progress bars were checked with screenshots of every phase except the image check and the network checks, which finished too quickly to capture.