open-nomad/plugins/drivers
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
..
proto drivers: make internal `DisableLogCollection` capability public (#17196) 2023-05-16 09:16:03 -04:00
testutils allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
utils [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
client.go docker: stop network pause container of lost alloc after node restart (#17455) 2023-06-09 08:46:29 -05:00
cstructs.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
driver.go drivers: make internal `DisableLogCollection` capability public (#17196) 2023-05-16 09:16:03 -04:00
errors.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
execstreaming.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plugin.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
server.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
task_handle.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
versions.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00