-
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
Removing triggers from ScaledObject doesn't reflect in the HPA it manages #1699
Labels
bug
Something isn't working
Comments
coderanger
added a commit
to coderanger/keda
that referenced
this issue
Apr 30, 2021
…dacore#1699. Test is currently failing, as expected.
coderanger
added a commit
to coderanger/keda
that referenced
this issue
Apr 30, 2021
…rray. DeepDerivative considers it fine if the found HPA has extra elements in the array as long as the ones that are there in the computed HPA match the found. In our case, that causes updating the HPA to be skipped if you remove the last trigger (or any number as long as they are at the end). Checking the lengths first is quick and should cover all of these wonky cases. Fixes kedacore#1699.
3 tasks
coderanger
added a commit
to coderanger/keda
that referenced
this issue
Apr 30, 2021
…dacore#1699. Test is currently failing, as expected. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
coderanger
added a commit
to coderanger/keda
that referenced
this issue
Apr 30, 2021
…rray. DeepDerivative considers it fine if the found HPA has extra elements in the array as long as the ones that are there in the computed HPA match the found. In our case, that causes updating the HPA to be skipped if you remove the last trigger (or any number as long as they are at the end). Checking the lengths first is quick and should cover all of these wonky cases. Fixes kedacore#1699. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
coderanger
added a commit
to coderanger/keda
that referenced
this issue
May 4, 2021
…dacore#1699. Test is currently failing, as expected. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
coderanger
added a commit
to coderanger/keda
that referenced
this issue
May 4, 2021
…rray. DeepDerivative considers it fine if the found HPA has extra elements in the array as long as the ones that are there in the computed HPA match the found. In our case, that causes updating the HPA to be skipped if you remove the last trigger (or any number as long as they are at the end). Checking the lengths first is quick and should cover all of these wonky cases. Fixes kedacore#1699. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
zroubalik
pushed a commit
that referenced
this issue
May 4, 2021
…array (#1768) * 🎨 Revive the functional test harness and add a regression test for #1699. Test is currently failing, as expected. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * 🐛 Fix incorrect handling when removing from the end of the triggers array. DeepDerivative considers it fine if the found HPA has extra elements in the array as long as the ones that are there in the computed HPA match the found. In our case, that causes updating the HPA to be skipped if you remove the last trigger (or any number as long as they are at the end). Checking the lengths first is quick and should cover all of these wonky cases. Fixes #1699. Signed-off-by: Noah Kantrowitz <noah@coderanger.net> * 📝 Update CHANGELOG. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Report
I have a ScaledObject with several rabbitmq triggers, and when deleting one of them from the SO definition, changes are not propagated to the underlying HPA. Adding triggers work fine though.
Example SO:
which creates the following HPA:
modify the SO and delete the 2nd trigger:
check the HPA:
notice that KEDA's metrics server is indeed not exposing metrics for the trigger that I deleted, hence the "unknown" current value, and can be confirmed in the events:
Expected Behavior
Keda operator should propagate all SO modifications to the underlying HPA
Actual Behavior
The HPA stays with old triggers, which could cause unexpected behaviors.
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.2.0
Kubernetes Version
1.18
Platform
Any
Scaler Details
RabbitMQ
The text was updated successfully, but these errors were encountered: