Skip to content

Commit

Permalink
fix(plugin/nvidia): log level
Browse files Browse the repository at this point in the history
Signed-off-by: yongjiahe <[email protected]>
  • Loading branch information
yongjiahe committed May 13, 2022
1 parent 8be99d4 commit aab8aa4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/plugin/nvidia/kube_interactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (ki *KubeInteractor) PatchGPUResourceOnNode(gpuCount int) error {
var node *v1.Node
node, err = ki.clientset.CoreV1().Nodes().Get(context.TODO(), ki.nodeName, metav1.GetOptions{})
if err != nil {
klog.Info("failed to get node %s: %v", ki.nodeName, err)
klog.V(4).Infof("failed to get node %s: %v", ki.nodeName, err)
return false, nil
}

Expand All @@ -109,7 +109,7 @@ func (ki *KubeInteractor) PatchGPUResourceOnNode(gpuCount int) error {
newNode.Status.Allocatable[VolcanoGPUNumber] = *resource.NewQuantity(int64(gpuCount), resource.DecimalSI)
_, _, err = nodeutil.PatchNodeStatus(ki.clientset.CoreV1(), types.NodeName(ki.nodeName), node, newNode)
if err != nil {
klog.Infof("failed to patch volcano gpu resource: %v", err)
klog.V(4).Infof("failed to patch volcano gpu resource: %v", err)
return false, nil
}
return true, nil
Expand All @@ -136,7 +136,7 @@ func (ki *KubeInteractor) PatchUnhealthyGPUListOnNode(devices []*Device) error {
var node *v1.Node
node, err = ki.clientset.CoreV1().Nodes().Get(context.TODO(), ki.nodeName, metav1.GetOptions{})
if err != nil {
klog.Info("failed to get node %s: %v", ki.nodeName, err)
klog.V(4).Infof("failed to get node %s: %v", ki.nodeName, err)
return false, nil
}

Expand All @@ -148,7 +148,7 @@ func (ki *KubeInteractor) PatchUnhealthyGPUListOnNode(devices []*Device) error {
}
_, _, err = nodeutil.PatchNodeStatus(ki.clientset.CoreV1(), types.NodeName(ki.nodeName), node, newNode)
if err != nil {
klog.Infof("failed to patch volcano unhealthy gpu list %s: %v", unhealthyGPUsStr, err)
klog.V(4).Infof("failed to patch volcano unhealthy gpu list %s: %v", unhealthyGPUsStr, err)
return false, nil
}
return true, nil
Expand Down

0 comments on commit aab8aa4

Please sign in to comment.