Merge pull request #44727 from x1957/master

Automatic merge from submit-queue

adds log when gpuManager.start() failed

If gpuManager.start() returns error, there is no log.

We confused with scheduler do not schedule any pod(with gpu) to one node.
kubectl describe node xxx shows there is no gpu on that node, because the gpu driver do not work on that node, gpuManager.start() failed, but we can not see anything in log.
This commit is contained in:
Kubernetes Submit Queue 2017-05-08 14:27:48 -07:00 committed by GitHub
commit f4fc4be805

View File

@ -1176,7 +1176,9 @@ func (kl *Kubelet) initializeModules() error {
}
// Step 7: Initialize GPUs
kl.gpuManager.Start()
if err := kl.gpuManager.Start(); err != nil {
glog.Errorf("Failed to start gpuManager %v", err)
}
// Step 8: Start resource analyzer
kl.resourceAnalyzer.Start()