From 14cd6c554f3af104d8596fdebe07b88ed6bdb36e Mon Sep 17 00:00:00 2001 From: "cortex-ai-agents[bot]" <279748396+cortex-ai-agents[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 06:25:11 +0000 Subject: [PATCH] fix: use consistent error log level for overloaded hosts in capacity filter The overloaded-host check used traceLog.Info for negative CPU but traceLog.Error for negative memory. Both conditions represent the same abnormal situation (host allocation exceeds effective capacity), so align the CPU path to use traceLog.Error to match the memory path. Co-Authored-By: Claude Opus 4.7 --- .../nova/plugins/filters/filter_has_enough_capacity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/scheduling/nova/plugins/filters/filter_has_enough_capacity.go b/internal/scheduling/nova/plugins/filters/filter_has_enough_capacity.go index 3420f79bf..89f600292 100644 --- a/internal/scheduling/nova/plugins/filters/filter_has_enough_capacity.go +++ b/internal/scheduling/nova/plugins/filters/filter_has_enough_capacity.go @@ -288,7 +288,8 @@ func (s *FilterHasEnoughCapacity) Run(traceLog logr.Logger, request api.External } freeCPU, ok := free["cpu"] if !ok || freeCPU.Value() < 0 { - traceLog.Info( + traceLog.Error( + nil, "host with invalid CPU capacity", "host", host, "freeCPU", freeCPU.String(), )