DRA scheduler: reduce log verbosity

That a pod with no claims remains unschedulable on claim changes is a pretty
normal case. It should only be logged when debugging.
This commit is contained in:
Patrick Ohly 2024-08-20 10:52:40 +02:00
parent 89e2feaf46
commit 6dd2ade762

View File

@ -445,7 +445,7 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
// This is not an unexpected error: we know that // This is not an unexpected error: we know that
// foreachPodResourceClaim only returns errors for "not // foreachPodResourceClaim only returns errors for "not
// schedulable". // schedulable".
logger.V(4).Info("pod is not schedulable", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim), "reason", err.Error()) logger.V(6).Info("pod is not schedulable after resource claim change", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim), "reason", err.Error())
return framework.QueueSkip, nil return framework.QueueSkip, nil
} }