-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reopen container log test. #242
Add reopen container log test. #242
Conversation
@Random-Liu Dockershim doesn't support this operation yet, see https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/docker_logs.go#L28 Would you file a PR to fix it? |
@feiskyer We won't support it for dockershim, that's why I want to skip it in the CI. We'll support it in both cri-containerd and cri-o I believe. I think it still should be conformance test, just dockershim is not fully CRI conformant. |
21e5328
to
37fd236
Compare
hack/run-critest.sh
Outdated
@@ -30,7 +30,8 @@ docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter | |||
sleep 10 | |||
|
|||
# Run e2e test cases | |||
critest v | |||
# Skip reopen container log test because docker doesn't support it. | |||
critest --ginkgo-flags="--skip=runtime\sshould\ssupport\sreopening\scontainer\slog" v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use --skip
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@Random-Liu From the output, it appears that the log file is changing. Shouldn't the name be the same? kubelet can archive and rename the old one. |
Signed-off-by: Lantao Liu <[email protected]>
37fd236
to
e778671
Compare
Kubelet will rotate the existing log file, and let container runtime to recreate original log file. The log file name is not changed. |
/lgtm |
Add test for
ReopenContainerLog
.I've tested it with cri-containerd:
@feiskyer @yujuhong @mrunalp
Signed-off-by: Lantao Liu [email protected]