Commit 7ef35b15 authored by zhengguoyong's avatar zhengguoyong

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

parent c785a6e7
...@@ -308,6 +308,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel ...@@ -308,6 +308,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel
return false, nil return false, nil
} }
if pod.Status.Phase != api.PodRunning { if pod.Status.Phase != api.PodRunning {
glog.Infof("Pod %q is not running, status: %v", podString, pod.Status.Phase)
return false, nil return false, nil
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment