Skip to content

Commit

Permalink
log the reason when a cluster is filtered
Browse files Browse the repository at this point in the history
Signed-off-by: huone1 <huwanxing@huawei.com>
  • Loading branch information
huone1 committed Mar 7, 2022
1 parent bca66f1 commit 488f577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/core/generic_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (g *genericScheduler) findClustersThatFit(
clusters := clusterInfo.GetReadyClusters()
for _, c := range clusters {
if result := fwk.RunFilterPlugins(ctx, placement, resource, c.Cluster()); !result.IsSuccess() {
klog.V(4).Infof("cluster %q is not fit", c.Cluster().Name)
klog.V(4).Infof("cluster %q is not fit, reason: %v", c.Cluster().Name, result.AsError())
} else {
out = append(out, c.Cluster())
}
Expand Down

0 comments on commit 488f577

Please sign in to comment.