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

stderrthreshold not honored by operator-metrics-apiserver #696

Open
harelhadar opened this issue Oct 22, 2024 · 2 comments
Open

stderrthreshold not honored by operator-metrics-apiserver #696

harelhadar opened this issue Oct 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@harelhadar
Copy link

harelhadar commented Oct 22, 2024

After upgrading KEDA to version 2.15.1 , the operator-metrics-apiserver is displaying unexpected logging behavior, including excessive log output at ERROR level.

Expected Behavior

The operator-metrics-apiserver should log only at the ERROR level by default.
The allowed values for the stderrthreshold configuration are: 'DEBUG','INFO','WARN','ERROR','ALERT','EMERG'

Actual Behavior

The operator-metrics-apiserver outputs logs of all levels by default.
The operator crashes when attempting to set the stderrthreshold to any value other than ERROR .

Steps to Reproduce the Problem

  1. Upgrade KEDA to version 2.15.1 .
  2. Observe the logs of operator-metrics-apiserver.
  3. Change the stderrthreshold to any value other than ERROR

Specifications

  • KEDA Version: 2.15.1
  • Platform & Version: K8S-AKS/EKS/GKE
  • Kubernetes Version: v1.29.8
  • Scaler(s): Prometheus, New-Relic, RabbitMQ

Attached files

crash.txt
censored logs with traces.txt

kedacore/keda#5139

@JorTurFer
Copy link
Member

This issue was solved in the upstream so we should bump the dep to pull the fix, are you willing to open a PR?

@harelhadar
Copy link
Author

Hi @JorTurFer

Thank you for looking into this! Just to clarify, would the PR need to update k8s.io/klog/v2 from version v2.120.1 to v2.130.1 to pull in the fix for the stderrthreshold issue?

Thanks!

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
None yet
Development

No branches or pull requests

2 participants