Bug 1820344 - kube-scheduler should be able to log at level 10
Summary: kube-scheduler should be able to log at level 10
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-scheduler
Version: 4.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.5.0
Assignee: Mike Dame
QA Contact: RamaKasturi
Depends On:
Blocks: 1820343
TreeView+ depends on / blocked
Reported: 2020-04-02 19:39 UTC by Mike Dame
Modified: 2020-07-13 17:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1820343
Last Closed: 2020-07-13 17:25:20 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 None None None 2020-07-13 17:25:41 UTC

Description Mike Dame 2020-04-02 19:39:01 UTC
+++ This bug was initially created as a clone of Bug #1820343 +++

Currently, setting `LogLevel` in the kube-scheduler to `TraceAll` only sets the kube-scheduler's loglevel (--v flag) to 8 (see [1]).

Since many of the scheduler's logs are at level 10 (such as scoring[2]), it would be much more helpful if the operator could configure 10 for TraceAll instead of 8

[1] https://github.com/openshift/cluster-kube-scheduler-operator/blob/01caed9c867a7f8fa87ac15b3bdf9335d98ef21e/pkg/operator/target_config_reconciler_v410_00.go#L144
[2] https://github.com/kubernetes/kubernetes/blob/master/pkg/scheduler/core/generic_scheduler.go#L650-L654

Comment 3 Mike Dame 2020-04-02 20:13:45 UTC
For QA, to verify this you should set the scheduler config (oc edit schedulers/cluster) to include the line `logLevel: TraceAll` in the spec. Then, once the kube-scheduler pods have restarted, they should have a flag `-v=10` in the kube-scheduler container

Comment 6 errata-xmlrpc 2020-07-13 17:25:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.