Repository navigation
Fix Redpanda healthcheck (always unhealthy) - #14
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bF628vAWVF7d1gqS2bQwG Signed-off-by: Artem Savchenko <armisav@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bF628vAWVF7d1gqS2bQwG Signed-off-by: Artem Savchenko <armisav@gmail.com>
SASL is not enabled on the Kafka listener (services connect to redpanda:9092 without auth). rpk with -X user/pass starts a SASL handshake, the broker answers ILLEGAL_SASL_STATE, and the container was always unhealthy although the broker worked. Probe without credentials. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bF628vAWVF7d1gqS2bQwG Signed-off-by: Artem Savchenko <armisav@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redpanda was always
unhealthyalthough the broker worked. The healthcheck ranrpk cluster info -X user=… -X pass=…, but SASL is not enabled on the Kafka listener (all services connect toredpanda:9092without auth). With credentials rpk starts a SASL handshake and the broker answersILLEGAL_SASL_STATE: Request is not valid given the current SASL state.compose.yml: healthcheck isrpk cluster infowithout credentialstests/smoke.sh: fails when any healthcheck has failed 3+ probes in a row. Docker only flips tounhealthyafterretriesfailures (100s for redpanda), which the smoke run finished before, so checking the status alone missed it.CI: with only the new check (7995c5c) the run fails with
healthcheck failing: redpanda … ILLEGAL_SASL_STATE; with the fix (ce49c80) it is green.REDPANDA_SUPERUSER_*/REDPANDA_ADMIN_*are left as they are: they only matter if SASL gets enabled, which would also need credentials in every service'sQUEUE_CONFIG.🤖 Generated with Claude Code
https://claude.ai/code/session_012bF628vAWVF7d1gqS2bQwG
Generated by Claude Code