Merge pull request #4547 from dchen1107/podstatus

Debugging message for debugging #4500
pull/6/head
Yu-Ju Hong 2015-02-18 15:42:24 -08:00
commit 9e291fbfc0
1 changed files with 2 additions and 0 deletions

View File

@ -239,7 +239,9 @@ func podsOnMinions(c *client.Client, pods api.PodList) wait.ConditionFunc {
return func() (bool, error) { return func() (bool, error) {
for i := range pods.Items { for i := range pods.Items {
host, id, namespace := pods.Items[i].Status.Host, pods.Items[i].Name, pods.Items[i].Namespace host, id, namespace := pods.Items[i].Status.Host, pods.Items[i].Name, pods.Items[i].Namespace
glog.Infof("Check whether pod %s.%s exists on node %q", id, namespace, host)
if len(host) == 0 { if len(host) == 0 {
glog.Infof("Pod %s.%s is not bound to a host yet", id, namespace)
return false, nil return false, nil
} }
if _, err := podInfo.GetPodStatus(host, namespace, id); err != nil { if _, err := podInfo.GetPodStatus(host, namespace, id); err != nil {