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 consul: correctly interpret missing consul checks as unhealthy into release/1.4.x #15826

Conversation

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

Backport

This PR is auto-generated from #15822 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 Nomad assumed any registered Checks would exist
in the service registration coming back from Consul. In some cases, the
Consul may be slow in processing the check registration, and the response
object would not contain checks. Nomad would then scan the empty response
looking for Checks with failing health status, finding none, and then
marking a task/alloc as healthy.

In reality, we must always use Nomad's view of what checks should exist as
the source of truth, and compare that with the response Consul gives us,
making sure they match, before scanning the Consul response for failing
check statuses.

Fixes #15536

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/health-deployment/closely-choice-mink branch 2 times, most recently from d53062f to 74c8276 Compare January 19, 2023 20:01
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 78fc942 into release/1.4.x Jan 19, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/health-deployment/closely-choice-mink branch January 19, 2023 20:01
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