Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[elasticsearch] Fix issue with readinessProbe causing outages #638

Merged
merged 2 commits into from
May 28, 2020

Conversation

fatmcgav
Copy link
Contributor

@fatmcgav fatmcgav commented May 20, 2020

The readinessProbe was updated in #586, however this appears to have
introduced a bug which can cause the pod to report as ready before it
actually is, due to a lack of quoting around the URL query params,
combined with the use of '&'.

This commit reworks the readinessProbe to correctly quote things.

Reintroduced the http function, and added support for passing args
in addition to the path.
Also borrowed the set -- pattern from the Kibana chart.

Fixes: #631
Fixes: #625
Related PR: #626

  • Chart version not bumped (the versions are all bumped and released at the same time)
  • README.md updated with any new values or changes
  • Updated template tests in ${CHART}/tests/*.py
  • Updated integration tests in ${CHART}/examples/*/test/goss.yaml

@fatmcgav fatmcgav self-assigned this May 20, 2020
The `readinessProbe` was updated in elastic#586, however this appears to have
introduced a bug which can cause the pod to report as ready before it
actually is, due to a lack of quoting around the URL query params,
combined with the use of '&'.

This commit reworks the `readinessProbe` to correctly quote things.

Reintroduced the `http` function, and added support for passing `args`
in addition to the `path`.
Also borrowed the `set --` pattern from the Kibana chart.
@fatmcgav
Copy link
Contributor Author

I've added a Known issues entry against the 7.7.0 changelog entry in 4e9c897

@fatmcgav fatmcgav added bug Something isn't working v6.8.10 v7.7.1 labels May 27, 2020
Copy link
Contributor

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Also ran a few tests to confirm that it is behaving as expected again!

Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM⛴

@fatmcgav fatmcgav merged commit ca1a13c into elastic:master May 28, 2020
@fatmcgav fatmcgav deleted the fix_readinessprobe_quoting branch May 28, 2020 12:23
This was referenced Jun 3, 2020
peric pushed a commit to kiwicom/terraform-kubernetes-elasticsearch that referenced this pull request Jul 2, 2020
@jmlrt jmlrt mentioned this pull request Oct 28, 2020
@jmlrt jmlrt mentioned this pull request Nov 17, 2020
This was referenced Nov 17, 2020
@jmlrt jmlrt mentioned this pull request Feb 8, 2021
This was referenced Mar 15, 2021
@jmlrt jmlrt mentioned this pull request May 25, 2021
@jmlrt jmlrt mentioned this pull request Mar 8, 2022
@jmlrt jmlrt mentioned this pull request Apr 21, 2022
This was referenced Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants