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

Closed
fadebek opened this issue May 14, 2024 · 3 comments
Closed

HTTPScaledObject Vanishes Immediately after Creation #1027

fadebek opened this issue May 14, 2024 · 3 comments
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

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?

Copy link

stale bot commented Jul 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Jul 18, 2024
Copy link

stale bot commented Jul 25, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
Status: Done
Development

No branches or pull requests

2 participants