Skip to content

fix(kvm): accept durable Live terminate as product shutdown success - #348

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
fix/durable-kvm-shutdown-contract-644
Sep 22, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
fix/durable-kvm-shutdown-contract-644

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

Summary

  • Durable Live SESSION_OWNER shutdown intentionally terminates the shim (signal / non-zero status).
  • Product KVM/HVF Host owners incorrectly required session_is_success() (shim_exit_code == 0), so utility-VM delete cleanup failed with authenticated KVM utility VM did not satisfy its contract.
  • Add product_owner_shutdown_succeeded() and use it in Live KVM/HVF owners. Qualification still uses session_is_success / is_success.

Why

Blocks A3S-Lab/Box#644 packaged opt-in stop/delete after #643 gates 1-2.

Test plan

  • cargo test -p a3s-oci-runtime durable_live_terminate
  • CI green
  • Box tip-prove a3s-box run --rm stop/delete on WSL2 with rebuilt a3s-oci

Does not claim KVM production cutover or Enterprise GA.

Box-owned SESSION_OWNER shutdown intentionally SIGKILLs the shim; requiring
session_is_success (shim_exit_code==0) falsely failed delete cleanup and
blocked packaged opt-in stop/delete (A3S-Lab/Box#644).

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor Author

WSL tip-prove with rebuilt a3s-oci: Box packaged opt-in
un --rm stop/delete no longer hits utility-VM contract failure (A3S-Lab/Box#644). Exact exit_code still wrong (always 1) — tracked on Box side after pin.

Windows CI builds the helper without Linux/macOS Live owners; keep it for unit tests while silencing -D warnings off those targets.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit f08555c into main Sep 22, 2026
7 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/durable-kvm-shutdown-contract-644 branch September 22, 2026 22:36
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