Skip to content

Commit b82bc5d

Browse files
committed
Log namespace of pods in e2e failure debug
1 parent 8565e37 commit b82bc5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/framework/debug/dump.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ func DumpNodeDebugInfo(ctx context.Context, c clientset.Interface, nodeNames []s
118118
logFunc("source %v type %v message %v reason %v first ts %v last ts %v, involved obj %+v",
119119
e.Source, e.Type, e.Message, e.Reason, e.FirstTimestamp, e.LastTimestamp, e.InvolvedObject)
120120
}
121-
logFunc("\nLogging pods the kubelet thinks is on node %v", n)
121+
logFunc("\nLogging pods the kubelet thinks are on node %v", n)
122122
podList, err := getKubeletPods(ctx, c, n)
123123
if err != nil {
124124
logFunc("Unable to retrieve kubelet pods for node %v: %v", n, err)
125125
continue
126126
}
127127
for _, p := range podList.Items {
128-
logFunc("%v started at %v (%d+%d container statuses recorded)", p.Name, p.Status.StartTime, len(p.Status.InitContainerStatuses), len(p.Status.ContainerStatuses))
128+
logFunc("%s/%s started at %v (%d+%d container statuses recorded)", p.Namespace, p.Name, p.Status.StartTime, len(p.Status.InitContainerStatuses), len(p.Status.ContainerStatuses))
129129
for _, c := range p.Status.InitContainerStatuses {
130130
logFunc("\tInit container %v ready: %v, restart count %v",
131131
c.Name, c.Ready, c.RestartCount)

0 commit comments

Comments
 (0)