Skip to content

fix(runtime): tear down host-netdevice lease before orphan reap wipe - #517

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-orphan-reap-host-netdevice-teardown
Sep 18, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-orphan-reap-host-netdevice-teardown

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Orphan reap_orphaned_box_in calls teardown_lease before wiping boxes/{id}; retains the dir (and lease claim) when teardown fails.
  • Linux unit test covers corrupt-lease retention.
  • Does not close B3/B4/B2.

Test plan

  • cargo check -p a3s-box-runtime --features vm (Windows)
  • Linux reap_tests when runners resume

Made with Cursor

Crash-recovery reap must remove DNAT/veth/MASQUERADE before deleting
boxes/{id}; retain the directory when lease teardown fails.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit e4aa0bb into main Sep 18, 2026
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