banger/internal
Thales Maciel 2d5bcb5516
Fall back to forced cleanup when stop hangs
Some guests ignore CtrlAltDel long enough that vm stop sat in wait_for_exit until the client disconnected, leaving the daemon to report context canceled instead of actually stopping the VM.

Keep the graceful shutdown attempt, but treat a grace-window timeout as a fallback case: log the timeout stage and continue into the existing forced cleanup path instead of returning immediately. Add a fake Firecracker API/process regression that exercises the timeout-to-cleanup transition.

Validate with go test ./..., make build, and a live ./banger vm stop ea run that now completes instead of hanging.
2026-03-18 13:44:59 -03:00
..
api Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00
cli Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
config Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
daemon Fall back to forced cleanup when stop hangs 2026-03-18 13:44:59 -03:00
firecracker Fix VM startup regressions after shell-out cleanup 2026-03-18 12:18:34 -03:00
guest Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
hostnat Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
model Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
paths Make runtime defaults portable 2026-03-16 15:30:08 -03:00
policy Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
rpc Propagate RPC cancellation to daemon requests 2026-03-16 18:28:33 -03:00
runtimebundle Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
store Add regression coverage for VM failure paths 2026-03-16 15:46:54 -03:00
system Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
vmdns Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00