When check pod exist on node, if pod is not running, it will return false, add log it.

pull/6/head
zhengguoyong 2015-11-11 10:42:57 +08:00
parent c785a6e77f
commit 7ef35b15fa
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel
return false, nil
}
if pod.Status.Phase != api.PodRunning {
glog.Infof("Pod %q is not running, status: %v", podString, pod.Status.Phase)
return false, nil
}
}