Don't count failed pods as "not-ready"

This commit is contained in:
Brendan Burns 2016-10-23 22:21:35 -07:00
parent 37dc74fa7c
commit 4316ce278f

View File

@ -565,7 +565,12 @@ func waitForAllCaPodsReadyInNamespace(f *framework.Framework, c *client.Client)
ready = true
}
}
if !ready {
// Failed pods in this context generally mean that they have been
// double scheduled onto a node, but then failed a constraint check.
if pod.Status.Phase == api.PodFailed {
glog.Warningf("Pod has failed: %v", pod)
}
if !ready && pod.Status.Phase != api.PodFailed {
notready = append(notready, pod.Name)
}
}