Skip to content

Commit 6eb4e7c

Browse files
authored
Merge pull request kubernetes#86315 from liggitt/delete-grace-period-debug
Add debugging for delete grace period e2e flake
2 parents 2f39e73 + 176c95f commit 6eb4e7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e/node/pods.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package node
1818

1919
import (
20+
"encoding/json"
2021
"net/http"
2122
"strconv"
2223
"time"
@@ -108,6 +109,7 @@ var _ = SIGDescribe("Pods Extended", func() {
108109

109110
ginkgo.By("verifying the kubelet observed the termination notice")
110111

112+
start := time.Now()
111113
err = wait.Poll(time.Second*5, time.Second*30, func() (bool, error) {
112114
podList, err := e2ekubelet.GetKubeletPods(f.ClientSet, pod.Spec.NodeName)
113115
if err != nil {
@@ -122,6 +124,8 @@ var _ = SIGDescribe("Pods Extended", func() {
122124
framework.Logf("deletion has not yet been observed")
123125
return false, nil
124126
}
127+
data, _ := json.Marshal(kubeletPod)
128+
framework.Logf("start=%s, now=%s, kubelet pod: %s", start, time.Now(), string(data))
125129
return false, nil
126130
}
127131
framework.Logf("no pod exists with the name we were looking for, assuming the termination request was observed and completed")

0 commit comments

Comments
 (0)