mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #42] Direct Firecracker start failures can retain sandbox resources #19
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @morluto on GitHub (Jul 28, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/42
Originally assigned to: @LSX-s-Software on GitHub.
Problem
Two Firecracker startup failure paths can retain resources:
FirecrackerSandbox::start()returns whenstart_nowait()or readiness fails without awaitingstop().Orchestrator-managed launch paths already perform explicit cleanup. This issue is limited to direct/public starts and the network-policy failure window before ownership is recorded.
Current behavior
Direct callers of
start()can leave initialized runtime state and daemon-owned ublk resources retained until daemon shutdown. If fresh-start egress configuration fails beforeself.network_slotis assigned, the namespace objects are dropped but the network manager does not receive the slot allocation back.Expected behavior
stop()after either operation fails while returning the primary startup error.Impact
Repeated failure paths can reduce the available ublk or network-slot pool and erode node density over time. This is especially relevant to AgentENV because it repeatedly starts and resumes large numbers of short-lived Firecracker environments.