You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(minimal): renaming a running host_ip box retires its VM-host egress (min box rename, min session rename) #3011
What happens. Renaming a running host_ip box on a VM-backed host moves its name hold to the new name, and also retires the box's egress rules on the VM host, while the box keeps running.
Why.cmd_box_rename (crates/minimal/src/cmd/boxes/lifecycle.rs, in PR #3008) and min session rename (crates/minimal/src/cmd/session.rs ~739, on main) both call release_held_box_name(.., None). With no box_addresses, that function always calls retire_host_ip_box_with_vm_host(id) (crates/minimal/src/vm_host.rs ~213–226, retire at ~575, NET-085). That call is right for a box that ends, and wrong for a rename.
Fix direction. A rename moves only the name hold: release the old name and hold the new one (hold_box_name_with_vm_host(.., false)) without retiring the box's host_ip egress. Add a test that renames a running host_ip box and checks its egress rules are still held.
Covers both min box rename and min session rename.
b5233b0a (#3034) replaced release_held_box_name(..,None) in both renames with move_held_box_name, which withdraws/releases the old name and holds the new one without retiring (crates/minimal/src/cmd/boxes/vm_host.rs:285-305). Now both go via rename_box_with_vm_host: session.rs:802, lifecycle.rs:1011. Test vm_host.rs:2449 asserts a rename sends no retire.
Reopen this issue if any part of it is still missing.
Activity
norrietaylor commentedon Nov 18, 2026
Closing as fixed on
mainby #3034.What a read of
mainat 385add8 found:Reopen this issue if any part of it is still missing.