Describe the bug
If a VM in zoneX has a multipass shell or active exec, and the zone is disabled, both instances hang indefinitely.
To Reproduce
How, and what happened?
multipass launch -n a --zone 2
multipass shell a
- In another terminal,
multipass disable-zones 2 --force
- Shell never exits.
Expected behavior
SSH processes should abort in these cases. This bug has fixes in two layers: the first one being dropping the ssh session when an instance is disabled, the second one is making sure that SSHClient or other ssh processes in general make use of ssh_keepalive.
Additional info
- OS: Ubuntu 26.04
- CPU architecture or model: amd64
multipass version: TC1
Describe the bug
If a VM in zoneX has a
multipass shellor activeexec, and the zone is disabled, both instances hang indefinitely.To Reproduce
How, and what happened?
multipass launch -n a --zone 2multipass shell amultipass disable-zones 2 --forceExpected behavior
SSH processes should abort in these cases. This bug has fixes in two layers: the first one being dropping the ssh session when an instance is disabled, the second one is making sure that SSHClient or other ssh processes in general make use of
ssh_keepalive.Additional info
multipass version: TC1