Skip to content
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

HTTPScaledObject Vanishes Immediately after Creation #1027

Open
fadebek opened this issue May 14, 2024 · 1 comment
Open

HTTPScaledObject Vanishes Immediately after Creation #1027

fadebek opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fadebek
Copy link

fadebek commented May 14, 2024

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 fadebek added the bug Something isn't working label May 14, 2024
@JorTurFer
Copy link
Member

Could you share your HTTPScaledObject please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

2 participants