open-nomad/client/allocrunner
Seth Hoenig 557a6b4a5e
docker: stop network pause container of lost alloc after node restart (#17455)
This PR fixes a bug where the docker network pause container would not be
stopped and removed in the case where a node is restarted, the alloc is
moved to another node, the node comes back up. See the issue below for
full repro conditions.

Basically in the DestroyNetwork PostRun hook we would depend on the
NetworkIsolationSpec field not being nil - which is only the case
if the Client stays alive all the way from network creation to network
teardown. If the node is rebooted we lose that state and previously
would not be able to find the pause container to remove. Now, we manually
find the pause container by scanning them and looking for the associated
allocID.

Fixes #17299
2023-06-09 08:46:29 -05:00
..
interfaces prioritized client updates (#17354) 2023-05-31 15:34:16 -04:00
state
tasklifecycle
taskrunner drivers: make internal DisableLogCollection capability public (#17196) 2023-05-16 09:16:03 -04:00
alloc_runner.go prioritized client updates (#17354) 2023-05-31 15:34:16 -04:00
alloc_runner_hooks.go
alloc_runner_test.go prioritized client updates (#17354) 2023-05-31 15:34:16 -04:00
alloc_runner_unix_test.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
allocdir_hook.go
cgroup_hook.go
checks_hook.go
checks_hook_test.go
config.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
consul_grpc_sock_hook.go
consul_grpc_sock_hook_test.go
consul_http_sock_hook.go
consul_http_sock_hook_test.go
csi_hook.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
csi_hook_test.go
fail_hook.go
group_service_hook.go
group_service_hook_test.go
health_hook.go
health_hook_test.go
migrate_hook.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
network_hook.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
network_hook_test.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
network_manager_linux.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
network_manager_linux_test.go
network_manager_nonlinux.go
networking.go
networking_bridge_linux.go
networking_bridge_linux_test.go
networking_cni.go
networking_cni_test.go
testing.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
upstream_allocs_hook.go allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00