Merge pull request #35404 from brendandburns/autoscale

Automatic merge from submit-queue

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

Closes #35108 (I hope)

@wojtek-t @kubernetes/autoscaling
This commit is contained in:
Kubernetes Submit Queue 2016-10-25 13:23:17 -07:00 committed by GitHub
commit 5f78a70483

View File

@ -565,7 +565,12 @@ func waitForAllCaPodsReadyInNamespace(f *framework.Framework, c clientset.Interf
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)
}
}