When check pod exist on node, if pod is not running, it will return false, add log it.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user