Skip to content

fix(runtime): fail closed managed resource rollback - #535

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/managed-resource-rollback-fail-closed
Sep 18, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/managed-resource-rollback-fail-closed

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • ExecutionResourceGuard::rollback returns Result and fails closed on volume/network/marker undo errors
  • OCI prepare/validate/launch and MicroVM start paths chain rollback failures with the primary Err
  • Drop remains best-effort warn-only; explicit rollback call sites use the Result
  • Does not close ROADMAP B4/B3/B2 or unlock UDP/host_port=0

Test plan

  • cargo test -p a3s-box-runtime --lib local_execution::resources::tests (9 passed, including rollback_fails_closed_when_volume_detach_cannot_persist)

Surface VolumeStore/NetworkStore/snapshot-marker undo failures from
ExecutionResourceGuard and chain them into OCI/MicroVM create/start
errors instead of warn-and-inventing a clean resource undo.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 527653e into main Sep 18, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant