This job view page is being replaced by Spyglass soon. Check out the new job view.
PRliuxu623: fix recreate sandbox when a job is done
ResultFAILURE
Tests 4 failed / 972 succeeded
Started2021-02-23 10:05
Elapsed19m59s
Revision341d7d03a47816cea85d8f1b2679a8012286d7a8
Refs 99343

Test Failures


//pkg/kubelet/kuberuntime:go_default_test 0.00s

bazel test //pkg/kubelet/kuberuntime:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubelet/kuberuntime:go_default_test
-----------------------------------------------------------------------------
W0223 10:16:59.651369  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651481  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651572  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651599  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
E0223 10:16:59.656648  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657165  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657473  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 0: container "foo" not found
E0223 10:16:59.697352  137447 kuberuntime_image.go:51] Pull image "busybox" failed: test-error
E0223 10:16:59.697944  137447 kuberuntime_image.go:101] ListImages failed: test-failure
E0223 10:16:59.698691  137447 kuberuntime_image.go:86] ImageStatus for image {"busybox" []} failed: test-error
E0223 10:16:59.699862  137447 kuberuntime_image.go:122] Remove image "busybox" failed: test-failure
E0223 10:16:59.700410  137447 kuberuntime_image.go:136] ListImages failed: test-failure
--- FAIL: TestSyncPodWithInitContainers (0.00s)
    kuberuntime_manager_test.go:268: 
        	Error Trace:	kuberuntime_manager_test.go:268
        	            				kuberuntime_manager_test.go:657
        	Error:      	Not equal: 
        	            	expected: []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae00), (*kuberuntime.cRecord)(0xc0002cae20), (*kuberuntime.cRecord)(0xc0002cac40)}
        	            	actual  : []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae80), (*kuberuntime.cRecord)(0xc0002caec0), (*kuberuntime.cRecord)(0xc0002cae60)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,4 +13,4 @@
        	            	   name: (string) (len=5) "init1",
        	            	-  attempt: (uint32) 1,
        	            	-  state: (v1alpha2.ContainerState) 1
        	            	+  attempt: (uint32) 0,
        	            	+  state: (v1alpha2.ContainerState) 2
        	            	  })
        	Test:       	TestSyncPodWithInitContainers
        	Messages:   	kill all app containers, purge the existing init container, and restart a new one
--- FAIL: TestComputePodActions (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
--- FAIL: TestComputePodActionsWithInitContainers (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc0006a2400), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
--- FAIL: TestComputePodActionsWithInitAndEphemeralContainers (0.04s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc00075c800), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1371
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc000830000), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,32 +2,6 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)({
        	            	-  Name: (string) (len=5) "init1",
        	            	-  Image: (string) (len=9) "bar-image",
        	            	-  Command: ([]string) <nil>,
        	            	-  Args: ([]string) <nil>,
        	            	-  WorkingDir: (string) "",
        	            	-  Ports: ([]v1.ContainerPort) <nil>,
        	            	-  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	-  Env: ([]v1.EnvVar) <nil>,
        	            	-  Resources: (v1.ResourceRequirements) {
        	            	-   Limits: (v1.ResourceList) <nil>,
        	            	-   Requests: (v1.ResourceList) <nil>
        	            	-  },
        	            	-  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	-  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	-  LivenessProbe: (*v1.Probe)(<nil>),
        	            	-  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	-  StartupProbe: (*v1.Probe)(<nil>),
        	            	-  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	-  TerminationMessagePath: (string) "",
        	            	-  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	-  ImagePullPolicy: (v1.PullPolicy) "",
        	            	-  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	-  Stdin: (bool) false,
        	            	-  StdinOnce: (bool) false,
        	            	-  TTY: (bool) false
        	            	- }),
        	            	+ NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and do not restart ephemeral container if the pod sandbox is dead
E0223 10:16:59.793794  137447 kuberuntime_sandbox.go:70] CreatePodSandbox for pod "foo_new(12345678)" failed: error on sandbox create
FAIL

				from junit_bazel.xml

Find and mentions in log files | View test history on testgrid


//pkg/kubelet/kuberuntime:go_default_test 0.00s

bazel test //pkg/kubelet/kuberuntime:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubelet/kuberuntime:go_default_test
-----------------------------------------------------------------------------
W0223 10:16:59.651369  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651481  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651572  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651599  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
E0223 10:16:59.656648  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657165  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657473  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 0: container "foo" not found
E0223 10:16:59.697352  137447 kuberuntime_image.go:51] Pull image "busybox" failed: test-error
E0223 10:16:59.697944  137447 kuberuntime_image.go:101] ListImages failed: test-failure
E0223 10:16:59.698691  137447 kuberuntime_image.go:86] ImageStatus for image {"busybox" []} failed: test-error
E0223 10:16:59.699862  137447 kuberuntime_image.go:122] Remove image "busybox" failed: test-failure
E0223 10:16:59.700410  137447 kuberuntime_image.go:136] ListImages failed: test-failure
--- FAIL: TestSyncPodWithInitContainers (0.00s)
    kuberuntime_manager_test.go:268: 
        	Error Trace:	kuberuntime_manager_test.go:268
        	            				kuberuntime_manager_test.go:657
        	Error:      	Not equal: 
        	            	expected: []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae00), (*kuberuntime.cRecord)(0xc0002cae20), (*kuberuntime.cRecord)(0xc0002cac40)}
        	            	actual  : []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae80), (*kuberuntime.cRecord)(0xc0002caec0), (*kuberuntime.cRecord)(0xc0002cae60)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,4 +13,4 @@
        	            	   name: (string) (len=5) "init1",
        	            	-  attempt: (uint32) 1,
        	            	-  state: (v1alpha2.ContainerState) 1
        	            	+  attempt: (uint32) 0,
        	            	+  state: (v1alpha2.ContainerState) 2
        	            	  })
        	Test:       	TestSyncPodWithInitContainers
        	Messages:   	kill all app containers, purge the existing init container, and restart a new one
--- FAIL: TestComputePodActions (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
--- FAIL: TestComputePodActionsWithInitContainers (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc0006a2400), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
--- FAIL: TestComputePodActionsWithInitAndEphemeralContainers (0.04s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc00075c800), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1371
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc000830000), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,32 +2,6 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)({
        	            	-  Name: (string) (len=5) "init1",
        	            	-  Image: (string) (len=9) "bar-image",
        	            	-  Command: ([]string) <nil>,
        	            	-  Args: ([]string) <nil>,
        	            	-  WorkingDir: (string) "",
        	            	-  Ports: ([]v1.ContainerPort) <nil>,
        	            	-  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	-  Env: ([]v1.EnvVar) <nil>,
        	            	-  Resources: (v1.ResourceRequirements) {
        	            	-   Limits: (v1.ResourceList) <nil>,
        	            	-   Requests: (v1.ResourceList) <nil>
        	            	-  },
        	            	-  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	-  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	-  LivenessProbe: (*v1.Probe)(<nil>),
        	            	-  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	-  StartupProbe: (*v1.Probe)(<nil>),
        	            	-  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	-  TerminationMessagePath: (string) "",
        	            	-  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	-  ImagePullPolicy: (v1.PullPolicy) "",
        	            	-  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	-  Stdin: (bool) false,
        	            	-  StdinOnce: (bool) false,
        	            	-  TTY: (bool) false
        	            	- }),
        	            	+ NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and do not restart ephemeral container if the pod sandbox is dead
E0223 10:16:59.793794  137447 kuberuntime_sandbox.go:70] CreatePodSandbox for pod "foo_new(12345678)" failed: error on sandbox create
FAIL

				from junit_bazel.xml

Find and mentions in log files | View test history on testgrid


//pkg/kubelet/kuberuntime:go_default_test 0.00s

bazel test //pkg/kubelet/kuberuntime:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubelet/kuberuntime:go_default_test
-----------------------------------------------------------------------------
W0223 10:16:59.651369  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651481  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651572  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651599  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
E0223 10:16:59.656648  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657165  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657473  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 0: container "foo" not found
E0223 10:16:59.697352  137447 kuberuntime_image.go:51] Pull image "busybox" failed: test-error
E0223 10:16:59.697944  137447 kuberuntime_image.go:101] ListImages failed: test-failure
E0223 10:16:59.698691  137447 kuberuntime_image.go:86] ImageStatus for image {"busybox" []} failed: test-error
E0223 10:16:59.699862  137447 kuberuntime_image.go:122] Remove image "busybox" failed: test-failure
E0223 10:16:59.700410  137447 kuberuntime_image.go:136] ListImages failed: test-failure
--- FAIL: TestSyncPodWithInitContainers (0.00s)
    kuberuntime_manager_test.go:268: 
        	Error Trace:	kuberuntime_manager_test.go:268
        	            				kuberuntime_manager_test.go:657
        	Error:      	Not equal: 
        	            	expected: []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae00), (*kuberuntime.cRecord)(0xc0002cae20), (*kuberuntime.cRecord)(0xc0002cac40)}
        	            	actual  : []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae80), (*kuberuntime.cRecord)(0xc0002caec0), (*kuberuntime.cRecord)(0xc0002cae60)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,4 +13,4 @@
        	            	   name: (string) (len=5) "init1",
        	            	-  attempt: (uint32) 1,
        	            	-  state: (v1alpha2.ContainerState) 1
        	            	+  attempt: (uint32) 0,
        	            	+  state: (v1alpha2.ContainerState) 2
        	            	  })
        	Test:       	TestSyncPodWithInitContainers
        	Messages:   	kill all app containers, purge the existing init container, and restart a new one
--- FAIL: TestComputePodActions (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
--- FAIL: TestComputePodActionsWithInitContainers (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc0006a2400), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
--- FAIL: TestComputePodActionsWithInitAndEphemeralContainers (0.04s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc00075c800), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1371
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc000830000), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,32 +2,6 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)({
        	            	-  Name: (string) (len=5) "init1",
        	            	-  Image: (string) (len=9) "bar-image",
        	            	-  Command: ([]string) <nil>,
        	            	-  Args: ([]string) <nil>,
        	            	-  WorkingDir: (string) "",
        	            	-  Ports: ([]v1.ContainerPort) <nil>,
        	            	-  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	-  Env: ([]v1.EnvVar) <nil>,
        	            	-  Resources: (v1.ResourceRequirements) {
        	            	-   Limits: (v1.ResourceList) <nil>,
        	            	-   Requests: (v1.ResourceList) <nil>
        	            	-  },
        	            	-  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	-  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	-  LivenessProbe: (*v1.Probe)(<nil>),
        	            	-  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	-  StartupProbe: (*v1.Probe)(<nil>),
        	            	-  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	-  TerminationMessagePath: (string) "",
        	            	-  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	-  ImagePullPolicy: (v1.PullPolicy) "",
        	            	-  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	-  Stdin: (bool) false,
        	            	-  StdinOnce: (bool) false,
        	            	-  TTY: (bool) false
        	            	- }),
        	            	+ NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and do not restart ephemeral container if the pod sandbox is dead
E0223 10:16:59.793794  137447 kuberuntime_sandbox.go:70] CreatePodSandbox for pod "foo_new(12345678)" failed: error on sandbox create
FAIL

				from junit_bazel.xml

Find and mentions in log files | View test history on testgrid


//pkg/kubelet/kuberuntime:go_default_test 0.00s

bazel test //pkg/kubelet/kuberuntime:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubelet/kuberuntime:go_default_test
-----------------------------------------------------------------------------
W0223 10:16:59.651369  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651481  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651572  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
W0223 10:16:59.651599  137447 kuberuntime_container_linux.go:115] Failed to get hugepage size from resource name: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
E0223 10:16:59.656648  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657165  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 30: container "foo" not found
E0223 10:16:59.657473  137447 kuberuntime_container.go:648] Container "docker://foo" termination failed with gracePeriod 0: container "foo" not found
E0223 10:16:59.697352  137447 kuberuntime_image.go:51] Pull image "busybox" failed: test-error
E0223 10:16:59.697944  137447 kuberuntime_image.go:101] ListImages failed: test-failure
E0223 10:16:59.698691  137447 kuberuntime_image.go:86] ImageStatus for image {"busybox" []} failed: test-error
E0223 10:16:59.699862  137447 kuberuntime_image.go:122] Remove image "busybox" failed: test-failure
E0223 10:16:59.700410  137447 kuberuntime_image.go:136] ListImages failed: test-failure
--- FAIL: TestSyncPodWithInitContainers (0.00s)
    kuberuntime_manager_test.go:268: 
        	Error Trace:	kuberuntime_manager_test.go:268
        	            				kuberuntime_manager_test.go:657
        	Error:      	Not equal: 
        	            	expected: []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae00), (*kuberuntime.cRecord)(0xc0002cae20), (*kuberuntime.cRecord)(0xc0002cac40)}
        	            	actual  : []*kuberuntime.cRecord{(*kuberuntime.cRecord)(0xc0002cae80), (*kuberuntime.cRecord)(0xc0002caec0), (*kuberuntime.cRecord)(0xc0002cae60)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,4 +13,4 @@
        	            	   name: (string) (len=5) "init1",
        	            	-  attempt: (uint32) 1,
        	            	-  state: (v1alpha2.ContainerState) 1
        	            	+  attempt: (uint32) 0,
        	            	+  state: (v1alpha2.ContainerState) 2
        	            	  })
        	Test:       	TestSyncPodWithInitContainers
        	Messages:   	kill all app containers, purge the existing init container, and restart a new one
--- FAIL: TestComputePodActions (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActions
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
--- FAIL: TestComputePodActionsWithInitContainers (0.01s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc0006a2400), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
--- FAIL: TestComputePodActionsWithInitAndEphemeralContainers (0.04s)
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate everything if the pod sandbox is dead, and RestartPolicy == Always
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,5 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=2) {
        	            	-  (int) 0,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers (except for the succeeded one) if the pod sandbox is dead, and RestartPolicy == OnFailure
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:974
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{0, 1, 2}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,3 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	@@ -6,6 +6,3 @@
        	            	  NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	- ContainersToStart: ([]int) (len=3) {
        	            	-  (int) 0,
        	            	-  (int) 1,
        	            	-  (int) 2
        	            	+ ContainersToStart: ([]int) {
        	            	  },
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and recreate all containers if the PodSandbox does not have an IP
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1188
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc00075c800), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,6 +2,32 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) false,
        	            	+ CreateSandbox: (bool) true,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	+ NextInitContainerToStart: (*v1.Container)({
        	            	+  Name: (string) (len=5) "init1",
        	            	+  Image: (string) (len=9) "bar-image",
        	            	+  Command: ([]string) <nil>,
        	            	+  Args: ([]string) <nil>,
        	            	+  WorkingDir: (string) "",
        	            	+  Ports: ([]v1.ContainerPort) <nil>,
        	            	+  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	+  Env: ([]v1.EnvVar) <nil>,
        	            	+  Resources: (v1.ResourceRequirements) {
        	            	+   Limits: (v1.ResourceList) <nil>,
        	            	+   Requests: (v1.ResourceList) <nil>
        	            	+  },
        	            	+  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	+  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	+  LivenessProbe: (*v1.Probe)(<nil>),
        	            	+  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	+  StartupProbe: (*v1.Probe)(<nil>),
        	            	+  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	+  TerminationMessagePath: (string) "",
        	            	+  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	+  ImagePullPolicy: (v1.PullPolicy) "",
        	            	+  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	+  Stdin: (bool) false,
        	            	+  StdinOnce: (bool) false,
        	            	+  TTY: (bool) false
        	            	+ }),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Pod sandbox not ready, init container failed, but RestartPolicy == Never; kill pod only
    kuberuntime_manager_test.go:1011: 
        	Error Trace:	kuberuntime_manager_test.go:1011
        	            				kuberuntime_manager_test.go:1371
        	Error:      	Not equal: 
        	            	expected: &kuberuntime.podActions{KillPod:true, CreateSandbox:true, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(0xc000830000), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	actual  : &kuberuntime.podActions{KillPod:true, CreateSandbox:false, SandboxID:"sandboxID", Attempt:0x1, NextInitContainerToStart:(*v1.Container)(nil), ContainersToStart:[]int{}, ContainersToKill:map[container.ContainerID]kuberuntime.containerToKillInfo{}, EphemeralContainersToStart:[]int(nil)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,32 +2,6 @@
        	            	  KillPod: (bool) true,
        	            	- CreateSandbox: (bool) true,
        	            	+ CreateSandbox: (bool) false,
        	            	  SandboxID: (string) (len=9) "sandboxID",
        	            	  Attempt: (uint32) 1,
        	            	- NextInitContainerToStart: (*v1.Container)({
        	            	-  Name: (string) (len=5) "init1",
        	            	-  Image: (string) (len=9) "bar-image",
        	            	-  Command: ([]string) <nil>,
        	            	-  Args: ([]string) <nil>,
        	            	-  WorkingDir: (string) "",
        	            	-  Ports: ([]v1.ContainerPort) <nil>,
        	            	-  EnvFrom: ([]v1.EnvFromSource) <nil>,
        	            	-  Env: ([]v1.EnvVar) <nil>,
        	            	-  Resources: (v1.ResourceRequirements) {
        	            	-   Limits: (v1.ResourceList) <nil>,
        	            	-   Requests: (v1.ResourceList) <nil>
        	            	-  },
        	            	-  VolumeMounts: ([]v1.VolumeMount) <nil>,
        	            	-  VolumeDevices: ([]v1.VolumeDevice) <nil>,
        	            	-  LivenessProbe: (*v1.Probe)(<nil>),
        	            	-  ReadinessProbe: (*v1.Probe)(<nil>),
        	            	-  StartupProbe: (*v1.Probe)(<nil>),
        	            	-  Lifecycle: (*v1.Lifecycle)(<nil>),
        	            	-  TerminationMessagePath: (string) "",
        	            	-  TerminationMessagePolicy: (v1.TerminationMessagePolicy) "",
        	            	-  ImagePullPolicy: (v1.PullPolicy) "",
        	            	-  SecurityContext: (*v1.SecurityContext)(<nil>),
        	            	-  Stdin: (bool) false,
        	            	-  StdinOnce: (bool) false,
        	            	-  TTY: (bool) false
        	            	- }),
        	            	+ NextInitContainerToStart: (*v1.Container)(<nil>),
        	            	  ContainersToStart: ([]int) {
        	Test:       	TestComputePodActionsWithInitAndEphemeralContainers
        	Messages:   	Kill pod and do not restart ephemeral container if the pod sandbox is dead
E0223 10:16:59.793794  137447 kuberuntime_sandbox.go:70] CreatePodSandbox for pod "foo_new(12345678)" failed: error on sandbox create
FAIL

				from junit_bazel.xml

Find and mentions in log files | View test history on testgrid


Show 972 Passed Tests