open-nomad/drivers/docker
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
..
cmd [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
docklog tests: enable newer windows (#17401) 2023-06-02 11:38:38 -05:00
test-resources/docker [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
util [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
config.go Add group_add docker option (#17313) 2023-06-02 20:26:01 -04:00
config_test.go Add group_add docker option (#17313) 2023-06-02 20:26:01 -04:00
coordinator.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
coordinator_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
driver_darwin.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_darwin_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_default.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_linux.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_linux_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_test.go Add group_add docker option (#17313) 2023-06-02 20:26:01 -04:00
driver_unix_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_windows.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver_windows_test.go tests: enable newer windows (#17401) 2023-06-02 11:38:38 -05:00
fingerprint.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
fingerprint_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
handle.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
network.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
network_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
ports.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
ports_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
progress.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
progress_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reconcile_cpuset.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reconcile_cpuset_noop.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reconcile_cpuset_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reconcile_dangling.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
reconcile_dangling_test.go tests: enable newer windows (#17401) 2023-06-02 11:38:38 -05:00
state.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
stats.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
stats_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
utils.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
utils_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
utils_unix_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
utils_windows_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
win32_volume_parse.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00