open-nomad/drivers
Luiz Aoqui 9affe31a0f
qemu: reduce monitor socket path (#13971)
The QEMU driver can take an optional `graceful_shutdown` configuration
which will create a Unix socket to send ACPI shutdown signal to the VM.

Unix sockets have a hard length limit and the driver implementation
assumed that QEMU versions 2.10.1 were able to handle longer paths. This
is not correct, the linked QEMU fix only changed the behaviour from
silently truncating longer socket paths to throwing an error.

By validating the socket path before starting the QEMU machine we can
provide users a more actionable and meaningful error message, and by
using a shorter socket file name we leave a bit more room for
user-defined values in the path, such as the task name.

The maximum length allowed is also platform-dependant, so validation
needs to be different for each OS.
2022-08-04 12:10:35 -04:00
..
docker test: disable docker OOM detection test on cgroups v2 (#13928) 2022-07-28 14:47:06 -04:00
exec test: use `T.TempDir` to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
java remove pre-0.9 driver code and related E2E test (#12791) 2022-04-27 09:53:37 -04:00
mock Merge branch 'main' into tlefebvre/fix-wrong-drivernetworkmanager-interface 2022-03-17 09:38:13 +01:00
qemu qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
rawexec remove pre-0.9 driver code and related E2E test (#12791) 2022-04-27 09:53:37 -04:00
shared deps: remove deprecated net/context (#13932) 2022-07-28 14:46:56 -04:00