-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Kafka scaler with SASL plaintext auth mode fails with "error parsing kafka metadata: err SASL mode plaintext" #4689
Comments
Hi Abhishek, I experienced the same issue recently when I upgraded from 2.8.x to 2.10.x. In my case my scaledobject did not change and it worked fine at the beginning, but as soon as the keda pods restarted for any reason, it started to complain about the SASL and TLS fields as you posted. I had defined both SASL and TLS as part of the TriggerAuth and as secret. I also think this may be a bug because my setup did not changed, sometimes worked and sometimes not. And as a workaround I removed the SASL and TLS definition from the TriggerAuth and secret, and define them as part of the kafka scaler and the issue was gone. Hopefully this information is helpful. Cheers. |
Hi @ianebot , the issue is persistent in Helm Chart Version 2.10.2 also, hopefully this bug gets fixed in upcoming versions. Have you tried deploying some other lower versions ? |
Hi @abhi-aws15, I did not try to downgrade the version. But it is likely that 2.10.x is the affected one: You can try with 2.9.x as it may not have this issue. |
@dttung2905 could you please take a look? |
Sure let me take a look during this weekend once i come back from sick leave |
Hi everyone, Thanks for the detail write up on the issue. The
I suspected there might be an extra space/character like |
Hi everyone, currently the Earlier in 2.7.2 version , |
Report
Initially we were using KEDA App version 2.7.1 . After upgrading to KEDA App version 2.10.0 , we saw the error "error parsing kafka metadata: err SASL mode plaintext" in the scaled object description.
Conclusion:
As per keda doc SASL mode can be defined in both inscaledobject
ortriggerauthentication.
However sasl defined in triggerauthentication refered from secret is however not getting picked up keda-operartor 2.10.0 image, hence there is chance this could be a bug.
The manifest we were using is as below:
We have to explicitly define
sasl
in scaledobject like below for KEDA App version 2.10.0 to work.Expected Behavior
Output of scaledobject when we were using KEDA App Version 2.7.1
Actual Behavior
After Upgrading to KEDA App Version 2.10.0 , the scaledobject status remained in
False, Unknown
state.Steps to Reproduce the Problem
Logs from KEDA operator
There were no such error logs in keda-operator, After describing the scaled object
KEDA Version
2.10.0
Kubernetes Version
1.25
Platform
Microsoft Azure
Scaler Details
Kafka
Anything else?
No response
The text was updated successfully, but these errors were encountered: