This repository was archived by the owner on May 2, 2023. It is now read-only.
This repository was archived by the owner on May 2, 2023. It is now read-only.
New Connect healthcheck fails with http listener and CONNECT_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM=https #792
Open
Description
Running cp-all-in-one-cloud results in a false negative -- it shows unhealthy state for the connect image even though it is working fine.
connect /etc/confluent/docker/run Up (unhealthy) 0.0.0.0:8083->8083/tcp, 9092/tcp
docker inspect --format='{{json .State.Health}}' connect
{"Status":"starting","FailingStreak":74,"Log":[{"Start":"2019-09-12T11:16:32.1104066Z","End":"2019-09-12T11:16:32.215473Z","ExitCode":1,"Output":"Thu Sep 12 11:16:32 UTC 2019 \tKafka Connect with SSL listener HTTP state: 200 (waiting for 200)\n"},{"Start":"2019-09-12T11:16:37.2258327Z","End":"2019-09-12T11:16:37.3358418Z","ExitCode":1,"Output":"Thu Sep 12 11:16:37 UTC 2019 \tKafka Connect with SSL listener HTTP state: 200 (waiting for 200)\n"},{"Start":"2019-09-12T11:16:42.3429174Z","End":"2019-09-12T11:16:42.4463996Z","ExitCode":1,"Output":"Thu Sep 12 11:16:42 UTC 2019 \tKafka Connect with SSL listener HTTP state: 200 (waiting for 200)\n"},{"Start":"2019-09-12T11:16:47.4539929Z","End":"2019-09-12T11:16:47.5656872Z","ExitCode":1,"Output":"Thu Sep 12 11:16:47 UTC 2019 \tKafka Connect with SSL listener HTTP state: 200 (waiting for 200)\n"},{"Start":"2019-09-12T11:16:52.5760447Z","End":"2019-09-12T11:16:52.6728641Z","ExitCode":1,"Output":"Thu Sep 12 11:16:52 UTC 2019 \tKafka Connect with SSL listener HTTP state: 200 (waiting for 200)\n"}]}
The issue is this line: https://github.com/confluentinc/cp-docker-images/blob/5.3.1-post/debian/kafka-connect-base/include/etc/confluent/docker/healthcheck.sh#L3
CONNECT_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM
is defined (because this is Connect to Confluent Cloud) but the listener is http
and not https