containerd/integration/client
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
..
benchmark_test.go integration/client: rename package to "client" 2021-03-30 16:21:36 +02:00
client_test.go Fix no-daemon flag for integration/client tests 2021-12-17 08:58:39 -05:00
client_ttrpc_test.go Run windows parallel integration test as short 2021-12-09 11:45:38 -08:00
client_unix_test.go Move volume images from gcr to ghcr 2021-12-02 10:29:44 -08:00
client_windows_test.go Integration: Change to Windows Server 2022 build number constant 2022-01-19 11:54:22 -08:00
container_checkpoint_test.go run gofmt with Go 1.17 2021-10-07 20:16:59 +08:00
container_linux_test.go Revert shim plugin migration 2021-12-02 10:35:15 -08:00
container_test.go fix: should not send 137 code event if cmd is notfound 2022-01-22 00:58:33 +08:00
content_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
convert_test.go integration/client: rename package to "client" 2021-03-30 16:21:36 +02:00
daemon_config_linux_test.go integration: Enable some tests for Windows (part 2) 2021-10-07 08:13:01 -07:00
daemon_test.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
export_test.go Implement windowsDiff.Compare via hcsshim/pkg/ociwclayer 2021-04-10 02:02:33 +10:00
go.mod Merge pull request #6439 from dmcgowan/remove-submodule-go-mod 2022-01-19 11:20:04 -08:00
go.sum Update kubernetes vendor to 0.22.5 2022-01-19 11:24:12 -08:00
helpers_unix_test.go integration: Enable some tests for Windows (part 2) 2021-10-07 08:13:01 -07:00
helpers_windows_test.go integration: Enable some tests for Windows (part 2) 2021-10-07 08:13:01 -07:00
image_test.go Add Windows Server 2022 CI runs 2021-12-02 16:18:25 -08:00
import_test.go Run windows parallel integration test as short 2021-12-09 11:45:38 -08:00
lease_test.go integration: Enable some tests for Windows (part 2) 2021-10-07 08:13:01 -07:00
restart_monitor_test.go Disable restart monitor test in Windows 2021-12-10 11:43:23 -08:00
signals_test.go integration/client: rename package to "client" 2021-03-30 16:21:36 +02:00
snapshot_test.go integration/client: rename package to "client" 2021-03-30 16:21:36 +02:00
task_opts_unix_test.go run gofmt with Go 1.17 2021-10-07 20:16:59 +08:00