ubicloud/prog/vm
Jeremy Evans 742b4aae94 Rely on Sshable#channel_wait for VM Nexus command timeout
This change removes the use of the `timeout` program that previously
wrapped certain `systemctl` commands, first added in commit
144c3d022b.

`systemctl` functions as a client to the `systemd` daemon. Terminating
`systemctl` after initialization disconnects the client but does not
affect ongoing operations on the server. In practice, ending
`systemctl` only unblocked net-ssh and limited unwanted `apoptosis`
triggers.

Two recent changes render the use of `timeout` unnecessary. On the
client side, https://github.com/ubicloud/ubicloud/pull/2688 injects a
fault into the net-ssh event loop, enforcing deadlines on command
execution and handling network delays.

On the server side, commit 22f3aa5c1d
sets `logind` to terminate session processes via
`KillUserProcesses=yes`. This termination uses OpenSSH `ClientAlive`
checks to determine client liveness.  If the client does not return
traffic promptly, it invokes `logind`'s session termination code.

Together, these client- and server-side changes ensure that slow or
unresponsive commands are terminated, preventing accumulation of
processes in idle sessions. All commands run under the `rhizome` user
now benefit from this, making the earlier `timeout` workaround
obsolete.
2025-10-02 12:01:56 -07:00
..
github_runner.rb Do not use eu-central-1a az for runners 2025-09-27 21:59:23 +03:00
host_nexus.rb Delay host unavailability pages by 45 sec 2025-09-22 21:58:06 +02:00
nexus.rb Rely on Sshable#channel_wait for VM Nexus command timeout 2025-10-02 12:01:56 -07:00
prep_host.rb Colour the prompt of the VmHost for production hosts 2023-11-24 10:12:59 +03:00
vm_host_slice_nexus.rb Use create_with_id in progs and routes 2025-08-07 02:13:08 +09:00
vm_pool.rb Use create_with_id in progs and routes 2025-08-07 02:13:08 +09:00