banger/internal/daemon
Thales Maciel 7b7f7e676c
Harden VM stop cleanup for stale snapshots
Stop and delete could fail with device-mapper busy errors when the persisted Firecracker PID was stale or the kernel needed longer to release the root snapshot.

Rediscover a live Firecracker process by API socket during cleanup, kill and wait on that PID instead of trusting only the stored runtime PID, and extend dm snapshot removal retries for transient busy handles.

Add daemon regressions for stale-runtime reconcile, rediscovered process cleanup, and repeated busy dm removal. Validate with go test ./..., make build, and a live ./banger vm stop debug-ssh run that now exits cleanly.
2026-03-18 12:28:15 -03:00
..
daemon.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
daemon_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
imagebuild.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
images.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
logger.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger_test.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
nat.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
nat_test.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
preflight.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
snapshot.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
snapshot_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
vm.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
vm_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00