From c6c274e8c98d35495c3c01d54b9ca7e69f9e69ab Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Sat, 27 Jul 2019 02:13:52 +0000 Subject: [PATCH] Add message which shows how much CPU used "validates resource limits of pods that are allowed to run" test of conformance tests are flake on some local environments. The CPU workload pods don't seem work well and nodes have still CPU capacity after running the workload pods. Then the conformance test failed unexpectedly. This adds message which shows how much CPU used by the workload pods for investigating it easily. --- test/e2e/scheduling/predicates.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/scheduling/predicates.go b/test/e2e/scheduling/predicates.go index 96113ac7e9c..6b5bb99a261 100644 --- a/test/e2e/scheduling/predicates.go +++ b/test/e2e/scheduling/predicates.go @@ -282,6 +282,7 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() { fillerPods := []*v1.Pod{} for nodeName, cpu := range nodeToAllocatableMap { requestedCPU := cpu * 7 / 10 + e2elog.Logf("Creating a pod which consumes cpu=%vm on Node %v", requestedCPU, nodeName) fillerPods = append(fillerPods, createPausePod(f, pausePodConfig{ Name: "filler-pod-" + string(uuid.NewUUID()), Resources: &v1.ResourceRequirements{