@@ -293,7 +293,7 @@ func podsOnNodes(c *client.Client, podNamespace string, labelSelector labels.Sel
293
293
}
294
294
for i := range pods .Items {
295
295
pod := pods .Items [i ]
296
- podString := fmt .Sprintf ("%q/%q " , pod .Namespace , pod .Name )
296
+ podString := fmt .Sprintf ("%s/%s " , pod .Namespace , pod .Name )
297
297
glog .Infof ("Check whether pod %q exists on node %q" , podString , pod .Spec .NodeName )
298
298
if len (pod .Spec .NodeName ) == 0 {
299
299
glog .Infof ("Pod %q is not bound to a host yet" , podString )
@@ -354,6 +354,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
354
354
return func () (bool , error ) {
355
355
pod , err := c .Pods (podNamespace ).Get (podName )
356
356
if apierrors .IsNotFound (err ) {
357
+ glog .V (2 ).Infof ("Pod %s/%s was not found" , podNamespace , podName )
357
358
return false , nil
358
359
}
359
360
if err != nil {
@@ -362,6 +363,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
362
363
return false , nil
363
364
}
364
365
if pod .Status .Phase != api .PodRunning {
366
+ glog .V (2 ).Infof ("Pod %s/%s is not running. In phase %q" , podNamespace , podName , pod .Status .Phase )
365
367
return false , nil
366
368
}
367
369
return true , nil
0 commit comments