-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/flakeCategorizes issue or PR as related to a flakey testCategorizes issue or PR as related to a flakey testlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Description
Expected Behavior
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete should reliably pass unless there is a bug
Actual Behavior
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete failed on #2652 with this error in the logs:
=== RUN TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete: sidecar_test.go:82: Creating Task "sidecar-test-task-0"
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete: sidecar_test.go:87: Creating TaskRun "sidecar-test-task-run-0"
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete: sidecar_test.go:111: Error waiting for Pod "sidecar-test-task-run-0-pod-f47gv" to terminate both the primary and sidecar containers: timed out waiting for the condition
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete: sidecar_test.go:132: Sidecar container has a nil Terminated status but non-nil is expected.
TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete: sidecar_test.go:140: Either the primary or sidecar containers did not terminate
=== RUN TestSidecarTaskSupport/A_sidecar_that_terminates_early_does_not_cause_problems_running_Steps
TestSidecarTaskSupport/A_sidecar_that_terminates_early_does_not_cause_problems_running_Steps: sidecar_test.go:82: Creating Task "sidecar-test-task-1"
TestSidecarTaskSupport/A_sidecar_that_terminates_early_does_not_cause_problems_running_Steps: sidecar_test.go:87: Creating TaskRun "sidecar-test-task-run-1"
--- FAIL: TestSidecarTaskSupport (610.28s)
In the k8s events you can see:
arendelle-mtdlj 27m Normal Scheduled pod/sidecar-test-task-run-0-pod-f47gv Successfully assigned arendelle-mtdlj/sidecar-test-task-run-0-pod-f47gv to gke-tpipeline-e2e-cls126-default-pool-c2eb233a-b7p5
arendelle-mtdlj 27m Normal Pulled pod/sidecar-test-task-run-0-pod-f47gv Container image "gcr.io/tekton-prow-9/tpipeline-e2e-img/entrypoint-bff0a22da108bc2f16c818c97641a296@sha256:4442c3261e3cdadd00c9d3581cccd00a8d68af741767611d405f2e4c0f36a660" already present on machine
arendelle-mtdlj 27m Normal Created pod/sidecar-test-task-run-0-pod-f47gv Created container place-tools
arendelle-mtdlj 27m Normal Started pod/sidecar-test-task-run-0-pod-f47gv Started container place-tools
arendelle-mtdlj 27m Normal Pulling pod/sidecar-test-task-run-0-pod-f47gv Pulling image "busybox:1.31.0-musl"
arendelle-mtdlj 27m Normal Pulled pod/sidecar-test-task-run-0-pod-f47gv Successfully pulled image "busybox:1.31.0-musl"
arendelle-mtdlj 27m Normal Created pod/sidecar-test-task-run-0-pod-f47gv Created container step-primary
arendelle-mtdlj 27m Normal Started pod/sidecar-test-task-run-0-pod-f47gv Started container step-primary
arendelle-mtdlj 27m Normal Pulled pod/sidecar-test-task-run-0-pod-f47gv Container image "busybox:1.31.0-musl" already present on machine
arendelle-mtdlj 26m Normal Created pod/sidecar-test-task-run-0-pod-f47gv Created container sidecar-sidecar-container
arendelle-mtdlj 27m Normal Started pod/sidecar-test-task-run-0-pod-f47gv Started container sidecar-sidecar-container
arendelle-mtdlj 27m Normal Killing pod/sidecar-test-task-run-0-pod-f47gv Container sidecar-sidecar-container definition changed, will be restarted
arendelle-mtdlj 26m Normal Pulling pod/sidecar-test-task-run-0-pod-f47gv Pulling image "tianon/true@sha256:009cce421096698832595ce039aa13fa44327d96beedb84282a69d3dbcf5a81b"
arendelle-mtdlj 26m Normal Pulled pod/sidecar-test-task-run-0-pod-f47gv Successfully pulled image "tianon/true@sha256:009cce421096698832595ce039aa13fa44327d96beedb84282a69d3dbcf5a81b"
arendelle-mtdlj 26m Warning Failed pod/sidecar-test-task-run-0-pod-f47gv Error: failed to start container "sidecar-sidecar-container": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
Particularly interesting:
Error: failed to start container "sidecar-sidecar-container": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
Additional Info
Looks like #1253 had this same problem - looks like it's some kind of race condition related to switching to the nop image perhaps? (Or this is a red herring and this is just what happens when we kill the sidecar)
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/flakeCategorizes issue or PR as related to a flakey testCategorizes issue or PR as related to a flakey testlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Type
Projects
Status
Done
Status
Done