Conversation
This was referenced Jul 11, 2025
kumaab
marked this pull request as draft
July 11, 2025 19:49
kumaab
marked this pull request as ready for review
January 14, 2026 17:02
Every service in dev-support/ranger-docker now declares a docker healthcheck, so
`docker compose up -d --wait` blocks until the stack is actually serving. CI used
to sleep for a fixed 60s and then only look at .State.Running, which passed while
a container was still initialising and failed on slower runners.
Each probe gates on readiness of the service, not just on a bound port:
ranger /service/actuator/health reports UP (unauthenticated)
ranger-zk 4lw ruok, whitelisted via ZOO_4LW_COMMANDS_WHITELIST
ranger-solr ranger_audits core is routed (SPNEGO, so 401 counts)
ranger-opensearch cluster health green or yellow
ranger-hbase master is active and the regionserver status page serves
ranger-hive metastore (9083) and HiveServer2 (10000) are bound
ranger-kms kms webapp is deployed and answering
ranger-knox sandbox topology deployed, demo LDAP authenticating and
the Ranger Knox authorizer answering
ranger-usersync /api/metrics/status
ranger-tagsync tag source and sink initialised
ranger-trino /v1/info reports starting=false
ozone-om ratis role is LEADER_AND_READY
ozone-scm out of safe mode
ozone-datanode datanode HTTP server is up
ci.yml: both docker jobs use `up -d --wait` in place of the fixed sleeps and the
bespoke ranger-kdc wait loop, the container check reports health alongside state,
and a failure step groups `docker logs` for every container.
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.
What changes were proposed in this pull request?
Moving #600 here.
docker-compose.yamlfor all supported docker services.curlto theranger-baseimage to aid in generic health checks across containers.ruokcommand in whitelist for Zookeeper container.How was this patch tested?
Tested changes locally for all containers,
docker psreports all containers ashealthy.