Merge pull request #7700 from wojtek-t/better_loging_for_failures

Log host for failed pod in Density test
This commit is contained in:
Brendan Burns 2015-05-04 07:24:09 -07:00
commit c1d1f95c21

View File

@ -593,7 +593,7 @@ func VerifyContainersAreNotFailed(pod api.Pod) error {
} else {
for _, status := range statuses {
if status.State.Termination != nil || status.LastTerminationState.Termination != nil || status.RestartCount != 0 {
errStrings = append(errStrings, fmt.Sprintf("Error: Pod %s: Container %s was found to have terminated %d times", pod.Name, status.Name, status.RestartCount))
errStrings = append(errStrings, fmt.Sprintf("Error: Pod %s (host: %s) : Container %s was found to have terminated %d times", pod.Name, pod.Spec.Host, status.Name, status.RestartCount))
}
}
}