Repository navigation
ateom-microvm: recover when the guest dies before the kata-agent answers (on a contended host) - #655
Merged
Dmitry Berkovich (dberkov) merged 1 commit intoJul 31, 2026
Conversation
A resume can fail with a bare `dial unix /run/vc/vm/<uid>/clh.sock: connect: no such file or directory`, one minute after it started (agent-substrate#619). The socket was there — the caller waits for it before dialing — so it went away while we polled, and cloud-hypervisor unlinks it in the vsock device's shutdown: the guest died during boot. Under a contended host the guest's boot stretches badly (measured: systemd reaching its default target 25s in, versus about a second when idle), and a boot that stalls long enough is torn down guest-side. So treat ENOENT as what it is. Instead of polling a socket that cannot come back, and reporting the last dial error as if it were the problem, give up at once with an error that names the cause, and retry the cold boot: a guest that never reached its agent ran none of the actor's containers, and the failure path tears the whole attempt down, so starting over is safe — and it is the only recovery, since the dead VM is not coming back. Each retry is logged with the guest's boot diagnostics (the console tail, plus each virtiofsd's log, because cloud-hypervisor also stops the VM when a vhost-user backend dies and that leaves the console silent).
Lior Lieberman (LiorLieberman)
approved these changes
Jul 31, 2026
Lior Lieberman (LiorLieberman)
left a comment
Collaborator
There was a problem hiding this comment.
/lgtm
LGTM
Dmitry Berkovich (dberkov)
merged commit Jul 31, 2026
03eb099
into
agent-substrate:main
11 checks passed
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.
Fixes #619