http-add-on icon indicating copy to clipboard operation
http-add-on copied to clipboard

HTTPScaledObject Vanishes Immediately after Creation

Open fadebek opened this issue 1 month ago • 1 comments

Report

When a new HTTPScaledObject is created, it gets destroyed within seconds. When looking at the operator logs, it seems that something is deleted the CRD since I can see that it gets finalized. This is after upgrading from 0.6.0 to 0.8.0.

Expected Behavior

HTTPScaledObject should be persisted

Actual Behavior

The HTTPScaledObject is created but then gets immediately destroyed/finalized after 10 seconds

Steps to Reproduce the Problem

  1. Upgrade from 0.6.0 to 0.8.0
  2. Create a deployment
  3. Create an HTTPScaledObject for the deployment

Logs from KEDA HTTP operator

2024-05-13T23:42:18Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "d155b547-c5ff-4130-8d6b-9b5e459315fd"}
2024-05-13T23:42:18Z	INFO	Adding Finalizer for the ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "d155b547-c5ff-4130-8d6b-9b5e459315fd"}
2024-05-13T23:42:18Z	INFO	Detected resource targeted for scaling	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "d155b547-c5ff-4130-8d6b-9b5e459315fd", "resource": "apps/v1.Deployment", "name": "deploy"}
2024-05-13T23:42:18Z	INFO	Creating a new HPA	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "d155b547-c5ff-4130-8d6b-9b5e459315fd", "HPA.Namespace": "test", "HPA.Name": "keda-hpa-http"}
2024-05-13T23:42:18Z	INFO	Initializing Scaling logic according to ScaledObject Specification	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "d155b547-c5ff-4130-8d6b-9b5e459315fd"}
2024-05-13T23:42:18Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "4e873fed-bd44-4482-a7ce-e15d1555bdb0"}
2024-05-13T23:42:18Z	INFO	Detected resource targeted for scaling	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "4e873fed-bd44-4482-a7ce-e15d1555bdb0", "resource": "apps/v1.Deployment", "name": "deploy"}
2024-05-13T23:42:18Z	INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "85d71659-8723-4090-851d-1421b3fa40fc"}
2024-05-13T23:42:18Z	ERROR	external_push_scaler	error running internalRun	{"type": "ScaledObject", "namespace": "test", "name": "http", "error": "rpc error: code = Canceled desc = context canceled"}
github.com/kedacore/keda/v2/pkg/scalers.(*externalPushScaler).Run.func1
	/workspace/pkg/scalers/external_scaler.go:249
github.com/kedacore/keda/v2/pkg/scalers.(*externalPushScaler).Run
	/workspace/pkg/scalers/external_scaler.go:268
2024-05-13T23:42:18Z	INFO	Successfully restored scaleTarget's replica count back to the original	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "85d71659-8723-4090-851d-1421b3fa40fc", "replicaCount": 1}
2024-05-13T23:42:18Z	INFO	Successfully finalized ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"http","namespace":"test"}, "namespace": "test", "name": "http", "reconcileID": "85d71659-8723-4090-851d-1421b3fa40fc"}

HTTP Add-on Version

0.8.0

Kubernetes Version

1.28

Platform

Amazon Web Services

Anything else?

No response

fadebek avatar May 14 '24 00:05 fadebek