Commit Graph
12 Commits
Author SHA1 Message Date
payall4u 5707256846 [backport] Transfer error to ErrNotFound when kill a not exist container
Signed-off-by: payall4u <404977848@qq.com>

Add integration test case

Signed-off-by: payall4u <404977848@qq.com>
(cherry picked from commit b437938d2f)
Signed-off-by: Joe Julian <me@joejulian.name>
Fixes: #4359
2020-07-22 21:34:10 -07:00
Maksym Pavlenko 0cca78f46d Add binary IO tests
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-05-21 10:48:55 -07:00
Maksym Pavlenko 7699c5e936 Cleanup binary IO resources on error
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-05-21 10:48:55 -07:00
Maksym Pavlenko b26e6abe00 Don't use timeout package when stopping shim logger
containerd loads timeout values from config.toml and populated those
values to `timeout` package at launch. So when using `timeout` package
from shim, there are default values and config file is ignored.
So use a hardcoded value for binary IO.

Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-05-21 10:48:55 -07:00
Maksym Pavlenko c95854caca Rework shim logger shutdown process
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-08 10:31:55 -07:00
Phil Estes ab89e63c6d Move isFifo from process/io to sys/ and make public
Make "IsFifo" a public function for use by other parts of containerd
codebase.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
(cherry picked from commit 0c78dacbc5)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-03 22:45:53 +02:00
Lantao Liu 306d6d4b55 Fix container pid.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-12-02 10:51:16 -08:00
Michael Crosby 5028701f1a Merge pull request #3753 from thaJeztah/1.3_backport_avoid_unnecessary_runc_state
[release/1.3 backport] Use cached state instead of `runc state`.
2019-11-27 19:24:33 -05:00
Michael Crosby 0f6aab184a Handle large output in v2 shim with TTY
Reized the I/O buffers to align with the size of the kernel buffers with fifos
and move the close aspect of the console to key off of the stdin closing.

Fixes #3738

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2019-10-14 11:33:21 -04:00
Lantao Liu 9abfc70043 Use cached state instead of runc state.
Signed-off-by: Lantao Liu <lantaol@google.com>
(cherry picked from commit 18be6e3714)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-14 16:57:30 +02:00
Michael Crosby 0a21292225 Check for more kill error types
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-09-23 15:36:34 -04:00
Michael Crosby 6601b406b7 Refactor runtime code for code sharing
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-08 11:47:53 -04:00