open-nomad/client/allocrunner
Seth Hoenig 07543f8bdf
nsd: always set deregister flag after deregistration of group (#16289)
* services: always set deregister flag after deregistration of group

This PR fixes a bug where the group service hook's deregister flag was
not set in some cases, causing the hook to attempt deregistrations twice
during job updates (alloc replacement).

In the tests ... we used to assert on the wrong behvior (remove twice) which
has now been corrected to assert we remove only once.

This bug was "silent" in the Consul provider world because the error logs for
double deregistration only show up in Consul logs; with the Nomad provider the
error logs are in the Nomad agent logs.

* services: cleanup group service hook tests
2023-03-17 09:44:21 -05:00
..
interfaces Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
state
tasklifecycle
taskrunner artifact: git needs more files for private repositories (#16508) 2023-03-16 12:22:25 -05:00
alloc_runner.go
alloc_runner_hooks.go allocrunner: fix health check monitoring for Consul services (#16402) 2023-03-10 14:43:31 -05:00
alloc_runner_test.go deps: Update ioutil deprecated library references to os and io respectively in the client package (#16318) 2023-03-08 13:25:10 -06:00
alloc_runner_unix_test.go
allocdir_hook.go
cgroup_hook.go
checks_hook.go
checks_hook_test.go
config.go
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
csi_hook_test.go
group_service_hook.go nsd: always set deregister flag after deregistration of group (#16289) 2023-03-17 09:44:21 -05:00
group_service_hook_test.go nsd: always set deregister flag after deregistration of group (#16289) 2023-03-17 09:44:21 -05:00
health_hook.go allocrunner: fix health check monitoring for Consul services (#16402) 2023-03-10 14:43:31 -05:00
health_hook_test.go allocrunner: fix health check monitoring for Consul services (#16402) 2023-03-10 14:43:31 -05:00
migrate_hook.go
network_hook.go
network_hook_test.go
network_manager_linux.go
network_manager_linux_test.go
network_manager_nonlinux.go
networking.go
networking_bridge_linux.go docs: update default Nomad bridge config (#16072) 2023-02-07 09:47:41 -05:00
networking_bridge_linux_test.go
networking_cni.go
networking_cni_test.go
testing.go
upstream_allocs_hook.go