Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of nsd: always set deregister flag after deregistration of group into release/1.5.x #16538

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16289 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


This PR fixes a bug where the group service hook's deregister flag was not set in Postrun(), causing the hook to attempt deregistrations twice during job updates (alloc replacement), where PreKill() would also do a deregistration. With the Nomad service provider, this shows up as Error logs on every job update.

First commit is the bug fix, second is drive by test cleanup.

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/nsd-fix-dregister-lock/mentally-shining-hornet branch 2 times, most recently from 7911941 to 831c6d6 Compare March 17, 2023 14:44
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 7736c1d into release/1.5.x Mar 17, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/nsd-fix-dregister-lock/mentally-shining-hornet branch March 17, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants