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 chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
tasklifecycle test: remove flaky Gate test (#14575) 2022-09-19 11:31:03 -04:00
taskrunner artifact: git needs more files for private repositories (#16508) 2023-03-16 12:22:25 -05:00
alloc_runner.go client: always run alloc cleanup hooks on final update (#15855) 2023-01-27 09:59:31 -06:00
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 client: always run alloc cleanup hooks on final update (#15855) 2023-01-27 09:59:31 -06:00
allocdir_hook.go client: cleanup and document context uses 2019-03-12 15:03:54 -07:00
cgroup_hook.go client/ar: thread through cpuset manager 2021-04-13 13:28:36 -04:00
checks_hook.go client: updates from pr feedback 2022-07-21 09:54:27 -05:00
checks_hook_test.go client: add support for checks in nomad services 2022-07-12 17:09:50 -05:00
config.go client: add support for checks in nomad services 2022-07-12 17:09:50 -05:00
consul_grpc_sock_hook.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
consul_grpc_sock_hook_test.go client: accommodate Consul 1.14.0 gRPC and agent self changes. (#15309) 2022-11-21 09:19:09 -06:00
consul_http_sock_hook.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
consul_http_sock_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
csi_hook.go csi_hook: valid if any driver supports csi (#13446) 2022-06-22 10:43:43 -04:00
csi_hook_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
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 client: cleanup and document context uses 2019-03-12 15:03:54 -07:00
network_hook.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
network_hook_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
network_manager_linux.go client: Add option to enable hairpinMode on Nomad bridge (#15961) 2023-02-02 10:12:15 -05:00
network_manager_linux_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
network_manager_nonlinux.go gofmt all the files 2021-10-01 10:14:28 -04:00
networking.go ar: isolate network actions performed by client 2021-02-02 23:24:57 -05:00
networking_bridge_linux.go docs: update default Nomad bridge config (#16072) 2023-02-07 09:47:41 -05:00
networking_bridge_linux_test.go client: Add option to enable hairpinMode on Nomad bridge (#15961) 2023-02-02 10:12:15 -05:00
networking_cni.go client: manually cleanup leaked iptables rules (#15407) 2022-11-28 11:32:16 -06:00
networking_cni_test.go client: manually cleanup leaked iptables rules (#15407) 2022-11-28 11:32:16 -06:00
testing.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
upstream_allocs_hook.go client: cleanup and document context uses 2019-03-12 15:03:54 -07:00