-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug]: Fail to run Mirror Maker 2 connector task when using OAUTH to connect to kafka clusters #9786
Comments
I think I find the root cause of this issue, I will create a PR, and fix it. |
You haven't provided any configuration or logs or anything. So maybe you should have opened a discussion instead of a Bug issue? |
Hello @scholzj |
I think you still need to provide all the information to make it possible to see if it really is a bug and if it works. |
I checked the config of my mm2 connecotor. Error messsage: |
I think below commit induced this issue. Please review it. |
Above commit was merged to main branch from 0.37.0-rc1, I reverted my operator to 0.36.1, and I can not see this issue anymore. |
Triaged on the community call on 7.3.2024: Please provide a custom resource for reproducing this because it is not really clear what should have the quotes and where should they be. They might be required for parsing and security reasons. |
Operator version: 0.39.0
MM2 connector config(generated by operator):
You can see below jaas config from above json response, there are unnecessary two double quotes(/"strimzi-poc-e2"-oauth) on this trutstore file path.
I think the file path str should not contain "". GET /connectors/strimzi-poc-e2->strimzi-poc-e1.MirrorSourceConnector/status
You can focus on "Caused by: java.lang.IllegalArgumentException: Value not specified for key 'strimzi-poc-e2' in JAAS config\n\tat " from above json response. |
…trimzi#9786 Signed-off-by: Jakub Scholz <www@scholzj.com>
Thanks. That helps. For some reason, we seem to miss a system test for this. I opened #9799 to fix it and add the system test. |
OK, @scholzj , I wanted to create a PR to fix this issue. P.S. I watched your kafka session in kubcon North America, great session!! |
Bug Description
I applied Mirror Maker 2 cr, and the pod is running successfully. But I checked the status of this new connector via rest api,
I got "caused by: java.lang.IllegalArgumentException: Value not specified for key 'XXXX(mm2 cluster alias)' in JAAS config"
My authentication type is "oauth", and set trustedCertificates for TLS connection to the OAuth server.
Steps to reproduce
No response
Expected behavior
No response
Strimzi version
0.39.0
Kubernetes version
K8s 1.27
Installation method
No response
Infrastructure
No response
Configuration files and logs
No response
Additional context
I think I find the root cause of this issue, I will create a PR, and fix it.
The text was updated successfully, but these errors were encountered: