diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates.go b/plugin/pkg/scheduler/algorithm/predicates/predicates.go index 735fe9ae8b6..21b4f2b4b6a 100644 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates.go @@ -159,21 +159,21 @@ func (r *ResourceFit) PodFitsResources(pod *api.Pod, existingPods []*api.Pod, no pods = append(existingPods, pod) _, exceedingCPU, exceedingMemory := CheckPodsExceedingFreeResources(pods, info.Status.Capacity) if int64(len(pods)) > info.Status.Capacity.Pods().Value() { - glog.V(4).Infof("Cannot schedule Pod %v, because Node %v is full, running %v out of %v Pods.", pod, node, len(pods)-1, info.Status.Capacity.Pods().Value()) + glog.V(4).Infof("Cannot schedule Pod %+v, because Node %+v is full, running %v out of %v Pods.", pod, node, len(pods)-1, info.Status.Capacity.Pods().Value()) FailedResourceType = "PodExceedsMaxPodNumber" return false, nil } if len(exceedingCPU) > 0 { - glog.V(4).Infof("Cannot schedule Pod %v, because Node does not have sufficient CPU", pod) + glog.V(4).Infof("Cannot schedule Pod %+v, because Node does not have sufficient CPU", pod) FailedResourceType = "PodExceedsFreeCPU" return false, nil } if len(exceedingMemory) > 0 { - glog.V(4).Infof("Cannot schedule Pod %v, because Node does not have sufficient Memory", pod) + glog.V(4).Infof("Cannot schedule Pod %+v, because Node does not have sufficient Memory", pod) FailedResourceType = "PodExceedsFreeMemory" return false, nil } - glog.V(4).Infof("Schedule Pod %v on Node %v is allowed, Node is running only %v out of %v Pods.", pod, node, len(pods)-1, info.Status.Capacity.Pods().Value()) + glog.V(4).Infof("Schedule Pod %+v on Node %+v is allowed, Node is running only %v out of %v Pods.", pod, node, len(pods)-1, info.Status.Capacity.Pods().Value()) return true, nil }