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
ScaledObject status Unknown #2101
Comments
Hi! It might be relevant to say: our applications running on this k8s cluster communicate with the kafka brokers without any problem. So it's not a network problem. |
BTW, the account that we're using to test Keda auto-scale, has full access on Kafka cluster, so it also doesn't seem to be a permission problem. |
What Kafka Broker version are you trying to connect to? We are using https://github.com/Shopify/sarama Go client for connection. You might want to tweak the client version: https://keda.sh/docs/2.4/scalers/apache-kafka/#trigger-specification |
Hi @zroubalik We also don't know exactly how version is it running on Kafka, because it's on Confluent Cloud and they don't let the customers know what version is it (usually it's the latest version, as they support told me). @silasfrigo also made a downgrade to Keda 1.5 and it worked as expected. But the problem appeared on Keda 2.0 and 2.4. |
Hi @zroubalik. What bothers me is that in version 1.x we did not have to provide kafka brokers version. Why is that necessary now? And if it really is necessary, why is the field optional, with a default value? Just trying to figure out if this can really be our problem. |
The version is not necessary, it is only if you would like to change it. Majority of users should be able to connect without tweaking it. That's strange, are you able to build a simple app (consumer) with the Sarama client and try the connection to the Kafka Broker, to see whether the problem is there? Btw in KEDA v1, there's older version of Sarama client, so that might be the problem, your Broker might be some older version as well 🤷♂️ have you tried to set the same Sarama version that's been used in v1? Hard to tell. |
I don't think the broker is running an old version, based on the Confluent support answer:
Can it be a problem in the way the SASL credentials are being build? Our application can communicate directly with the broker without any problem, however our apps are running on confluent-kafka-go. |
Hello @zroubalik. We tested using Sarama and something weird happened. Using exactly the same configs we use on KEDA 1.5, we cannot send the message, and in order to make the message go, we had to do the following:
We had to set config.Net.TLS.Enable as True, even without having it on our kafka and without passing its config to Sarama. |
For anyone that faces this issue in the future, i found this Pull Request that solved our issue: #1288 Closing the issue for now. Thank you @zroubalik for all the information, and @odilonjk for all the help you gave in the investigation process. |
Report
Our scaledObject status shows unknow
n
And keda logs shows the following:
Expected Behavior
ScaledObject to show status and complete hpa creation.
Actual Behavior
Status stays in unknown.
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.4.0
Kubernetes Version
No response
Platform
Other
Scaler Details
Kafka
Anything else?
We are using confluent cloud.
Keda operator logs:
And ScaledObject status show 'Unknown' state.
keda version 2.4
The text was updated successfully, but these errors were encountered: