open-nomad/client/serviceregistration
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
..
checks services: Set Nomad's User-Agent by default on HTTP checks for nomad services (#16248) 2023-02-23 08:10:42 -06:00
mock Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
nsd nsd: always set deregister flag after deregistration of group (#16289) 2023-03-17 09:44:21 -05:00
wrapper client: modify service wrapper to accomodate restore behaviour. 2022-03-21 09:49:39 +01:00
address.go services: cr followup 2022-04-22 09:14:29 -05:00
address_test.go services: enable setting arbitrary address value in service registrations 2022-04-22 09:14:29 -05:00
id.go client: refactor common service registration objects from Consul. 2022-03-15 09:38:30 +01:00
id_test.go client: refactor common service registration objects from Consul. 2022-03-15 09:38:30 +01:00
service_registration.go consul: correctly interpret missing consul checks as unhealthy (#15822) 2023-01-19 14:01:12 -06:00
service_registration_test.go client: refactor common service registration objects from Consul. 2022-03-15 09:38:30 +01:00
watcher.go cleanup: create interface for check watcher and mock it in nsd tests (#14577) 2022-09-14 08:25:20 -05:00
watcher_test.go deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
workload.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
workload_test.go client: refactor common service registration objects from Consul. 2022-03-15 09:38:30 +01:00