containerd/integration
Wei Fu 31a710c492 fix: should not send 137 code event if cmd is notfound
ShimV2 has shim.Delete command to cleanup task's temporary resource,
like bundle folder. Since the shim server exits and no persistent store
is for task's exit code, the result of shim.Delete is always 137 exit
code, like the task has been killed.

And the result of shim.Delete can be used as task event only when the
shim server is killed somehow after container is running. Therefore,
dockerd, which watches task exit event to update status of container,
can report correct status.

Back to the issue #6429, the container is not running because the
entrypoint is not found. Based on this design, we should not send
137 exitcode event to subscriber.

This commit is aimed to remove shim instance first and then the
`cleanupAfterDeadShim` should not send event.

Similar Issue: #4769
Fix #6429

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2022-01-22 00:58:33 +08:00
..
client fix: should not send 137 code event if cmd is notfound 2022-01-22 00:58:33 +08:00
cri-api/pkg/apis feat: enable cri remote client to call with grpc calloptions 2021-09-30 23:02:53 +08:00
images Add ppc64 support for test images 2022-01-11 19:58:31 +01:00
remote Use insecure.NewCredentials instead of grpc.WithInsecure 2021-12-16 23:10:06 +00:00
util refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
addition_gids_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
common.go integration: align tags of test images 2021-12-03 15:14:09 +01:00
container_log_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
container_restart_test.go test integration: Adds a test that restarts a failed container 2021-06-25 10:33:38 +00:00
container_stats_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
container_stop_test.go Merge pull request #5619 from mikebrow/cri-add-v1-proxy-alpha 2021-07-09 14:07:24 -04:00
container_update_resources_test.go remove io/ioutil 2022-01-11 16:07:23 +08:00
container_volume_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
container_without_image_ref_test.go Merge pull request #5619 from mikebrow/cri-add-v1-proxy-alpha 2021-07-09 14:07:24 -04:00
containerd_image_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
duplicate_name_test.go tests: Refactors PodSandbox creation 2021-06-03 16:02:38 +00:00
image_list.sample.toml integration: align tags of test images 2021-12-03 15:14:09 +01:00
image_load_test.go Fix wrong make target on documentation 2021-11-23 03:42:08 +09:00
imagefs_info_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
main_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
no_metadata_test.go Merge pull request #5619 from mikebrow/cri-add-v1-proxy-alpha 2021-07-09 14:07:24 -04:00
pod_dualstack_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
pod_hostname_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
restart_test.go Expect ErrorNotFound on Windows after Kill() 2021-12-21 11:17:49 +02:00
runtime_handler_test.go integration: Enables TestRuntimeHandler for Windows 2021-10-07 18:20:59 -07:00
sandbox_clean_remove_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
shim_dial_unix_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
truncindex_test.go Adds Windows resource limits support 2021-09-25 13:20:55 -07:00
volume_copy_up_test.go remove io/ioutil 2022-01-11 16:07:23 +08:00
volume_copy_up_unix_test.go Replace find with native Go code 2021-12-07 11:04:38 +00:00
volume_copy_up_windows_test.go Replace find with native Go code 2021-12-07 11:04:38 +00:00
windows_hostprocess_test.go integration: Adds Windows HostProcess tests 2021-09-07 00:30:28 -07:00