Closed jlemaes closed 6 months ago
I noticed that the same issue also occurs when not pausing but when only using the pubsub scaling(not cpu+pubsub). I see related fixes on master so I will wait until that is released and see if pausing then also works. It's strange that those error logs only start after pausing.
Hello! I think that you can be facing with the bug solved by this: https://github.com/kedacore/keda/pull/5452
It's indeed fixed by using release v2.13.1
nice!
Report
When setting annotation
autoscaling.keda.sh/paused-replicas=0
on a scaledobject, pausing works as expected. The scaledobject status hasScaledObjectPaused
true and the deployment is downscaled to 0 replicas.Removing the annotation does not correctly unpause the the scaledobject. The scaledobject status still has:
I can manually scale the deployment back up, which keda does not overwrite again.
Expected Behavior
When removing the annotation
autoscaling.keda.sh/paused-replicas
I expect the keda to set the replicas of the deployment back to minreplicas so that the hpa can start doing it's function.Actual Behavior
The scaledobject stays paused=true and active=false in the status, the deployment does not scale to the minreplicas.
Steps to Reproduce the Problem
autoscaling.keda.sh/paused-replicas=0
Logs from KEDA operator
These logs show up after unpausing:
KEDA Version
2.13.0
Kubernetes Version
1.27
Platform
Google Cloud
Scaler Details
gcp pubsub scaler+cpu
Anything else?
We noticed this behaviour since keda 2.12. It worked in keda 2.11
Restarting the keda operator after unpausing sets the paused=false status correctly, but keep the active=false status.