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

[elasticsearch] use bash for readiness script #1458

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

jmlrt
Copy link
Member

@jmlrt jmlrt commented Dec 9, 2021

This commit set the readiness probe to use bash instead of sh. This is
required for Elasticsearch > 7.16.0 because the Docker image is now
based on Ubuntu instead of CentOS 8, and sh on Ubuntu isn't compatible
with the if [[ ... -eq .... ]] statements used in the readiness probe.

cc @elastic/es-delivery

This commit set the readiness probe to use bash instead of sh. This is
required for Elasticsearch > 7.16.0 because the Docker image is now
based on Ubuntu instead of CentOS 8, and sh on Ubuntu isn't compatible
with the `if [[ ... -eq .... ]]` statements used in the readiness probe.
@jmlrt jmlrt requested review from framsouza and a team December 9, 2021 12:10
@jmlrt jmlrt added the bug Something isn't working label Dec 9, 2021
@jmlrt
Copy link
Member Author

jmlrt commented Dec 9, 2021

The tests aren't expected to work because the Elasticsearch chart on the main branch is still broken due to #1443. However, this should be backported to 7.x branch to fix 7.x CI tests failing.

@jmlrt jmlrt requested a review from a team December 9, 2021 12:22
Copy link
Contributor

@pugnascotia pugnascotia left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@mgreau mgreau left a comment

Choose a reason for hiding this comment

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

LGTM

@jmlrt jmlrt merged commit 167278e into elastic:main Dec 9, 2021
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Dec 9, 2021
This commit set the readiness probe to use bash instead of sh. This is
required for Elasticsearch > 7.16.0 because the Docker image is now
based on Ubuntu instead of CentOS 8, and sh on Ubuntu isn't compatible
with the `if [[ ... -eq .... ]]` statements used in the readiness probe.
@jmlrt jmlrt deleted the fix-readiness-for-ubuntu branch December 9, 2021 14:52
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Dec 9, 2021
This commit update the way goss binary is retrieved in the
tests/examples. The goss binary is now downloaded locally then copied
inside the pod.

This is needed because the Elasticsearch Ubuntu based Docker images is
missing the ca-certificates package, and so the curl https command is
failling with `curl: (77) error setting certificate verify locations`
error.

Follow-up of elastic#1458
Relates to elastic#1459 (comment)
jmlrt added a commit that referenced this pull request Dec 9, 2021
This commit update the way goss binary is retrieved in the
tests/examples. The goss binary is now downloaded locally then copied
inside the pod.

This is needed because the Elasticsearch Ubuntu based Docker images is
missing the ca-certificates package, and so the curl https command is
failling with `curl: (77) error setting certificate verify locations`
error.

Follow-up of #1458
Relates to #1459 (comment)
jmlrt added a commit that referenced this pull request Dec 9, 2021
This commit set the readiness probe to use bash instead of sh. This is
required for Elasticsearch > 7.16.0 because the Docker image is now
based on Ubuntu instead of CentOS 8, and sh on Ubuntu isn't compatible
with the `if [[ ... -eq .... ]]` statements used in the readiness probe.
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Dec 9, 2021
This commit update the way goss binary is retrieved in the
tests/examples. The goss binary is now downloaded locally then copied
inside the pod.

This is needed because the Elasticsearch Ubuntu based Docker images is
missing the ca-certificates package, and so the curl https command is
failling with `curl: (77) error setting certificate verify locations`
error.

Follow-up of elastic#1458
Relates to elastic#1459 (comment)
jmlrt added a commit that referenced this pull request Dec 13, 2021
This commit update the way goss binary is retrieved in the
tests/examples. The goss binary is now downloaded locally then copied
inside the pod.

This is needed because the Elasticsearch Ubuntu based Docker images is
missing the ca-certificates package, and so the curl https command is
failling with `curl: (77) error setting certificate verify locations`
error.

Follow-up of #1458
Relates to #1459 (comment)
@jmlrt jmlrt added v7.16.1 and removed v7.16.0 labels Dec 13, 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
Development

Successfully merging this pull request may close these issues.

3 participants