New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testcontainers failure with 500 error using Quarkus with Kafka #43
Comments
The test initially failed because of a failing exec's that pushed configuration and start zookeeper/kafka. I pushed a fix for that, but at my end it still fails with not finding a leader. The quickstart is also using an older testcontainers version (1.12.3) and is based on an old Quarkus version (1.4.2). If you are using Quarkus, it might make sense to look at the Kafka dev-service instead. |
Add the IP address in the network settings of the container, which made the kafka-quickstart test work. |
Add which IP address to which container? Also, side note, I was working on an updated quarkus version project and discovered that part of my issue is related to scc, where a cluster admin in openshift is able to run execs against pods, but normal users are not. |
The error was due to this not providing the ip-address of the docker daemon (which is in kubedock case always 127.0.0.1). Because of that property missing in the container details, it resolved to 'null'. The result of that, was
The minimum required rbac the service account requires is documented here. Cluster admin is not required, just a service account that has that particular documented role. |
Closing, released kubedock-0.12.0 with the fix. |
This issue still happened to me using latest version of Testcontainers Kafka and latest version of Kubedock. Kafka failed to start with:
Notice the In the latest version of testcontainers kafka, this is done by: https://github.com/testcontainers/testcontainers-java/blob/dd1427ebd30bbaba7f32184f1376b7c21e725ab5/modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java#L307 |
Are you using 0.13.0? I think this is a dupe of #51 ; the fix for this has not been released yet, but is available on latest. |
Thanks @joyrex2001 ! |
I'm running into an issue with Testcontainers with Quarkus using the smallrye kafka library. The issue seems to be around a 500 error that gets return when the library attempts to start up the container, so it's outside of my control. To reproduce I'm using the quarkus quickstart that can be found here: kafka-quickstart. I've tried starting kubedock with both
--port-forward
and--reverse-proxy
. For the java side I'm running the following:The specific error I'm seeing is:
and on the java side:
I have tried this same setup in my local environment with docker and the tests run fine.
The text was updated successfully, but these errors were encountered: