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 services: ensure task group is set on service hook into release/1.4.x #16241

Conversation

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

Backport

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

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


This PR fixes a bug where the task group information was not being set
on the serviceHook.AllocInfo struct, which is needed later on for calculating
the CheckID of a nomad service check. The CheckID is calculated independently
from multiple callsites, and the information being passed in must be consistent,
including the group name.

The workload.AllocInfo.Group was not set at this callsite, due to the bug fixed in this PR.
https://github.com/hashicorp/nomad/blob/main/client/serviceregistration/nsd/nsd.go#L114

Fixes #16238

I suspect the bug was introduced as part of #14311

Backport only to 1.4.x (when NSD checks were introduced).

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/b-check-not-found/neatly-content-ocelot branch from 401bd1a to e1f7e81 Compare February 22, 2023 16:23
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit d73ccd7 into release/1.4.x Feb 22, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/b-check-not-found/neatly-content-ocelot branch from 981a263 to 1edc4af Compare February 22, 2023 16:23
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/b-check-not-found/neatly-content-ocelot branch February 22, 2023 16:23
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