Service registry not being updated for alloc restarts #13802
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/service-discovery/nomad
type/bug
Milestone
Nomad version
Output from
nomad version
Operating system and Environment details
Issue
Service registry fails to "register" a new service when an "in-place" allocation restart happens.
Reproduction steps
View that all allocations are running:
View the status of services:
Restart an alloc:
View the status of services now (only 2 are there, instead of expected 3):
Expected Result
All 3 service registrations should be there, even if the alloc does an "in=place" restart.
Actual Result
Only 2 service registrations are there, the 3rd alloc which was restarted has a missing service.
Job file (if appropriate)
NOTE: I was listening to Nomad Events when the alloc was restarted and found this:
So a
ServiceDeregistration
is emitted but there's noServiceRegistration
created when the alloc restarts. This bug may make Nomad Services a bit unreliable to depend on, if an alloc restarts.The text was updated successfully, but these errors were encountered: