Skip to content

[release/1.3 backport] Add logging binary support when terminal is true#4616

Closed
akshat-kmr wants to merge 4 commits intocontainerd:release/1.3from
akshat-kmr:release/1.3
Closed

[release/1.3 backport] Add logging binary support when terminal is true#4616
akshat-kmr wants to merge 4 commits intocontainerd:release/1.3from
akshat-kmr:release/1.3

Conversation

@akshat-kmr
Copy link
Copy Markdown

Backport of #4502. I've cherry-picked the individual commits from that pull request, and added a separate commit for a minor modification required for compatibility with containerd 1.3


Currently the shims only support starting the logging binary process if the
io.Creator Config does not specify Terminal: true. This means that the program
using containerd will only be able to specify FIFO io when Terminal: true,
rather than allowing the shim to fork the logging binary process. Hence,
containerd consumers face an inconsistent behavior regarding logging binary
management depending on the Terminal option.

Allowing the shim to fork the logging binary process will introduce consistency
between the running container and the logging process. Otherwise, the logging
process may die if its parent process dies whereas the container will keep
running, resulting in the loss of container logs.

Signed-off-by: Akshat Kumar [email protected]

@k8s-ci-robot
Copy link
Copy Markdown

Hi @akshat-kmr. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

@fuweid
Copy link
Copy Markdown
Member

fuweid commented Oct 9, 2020

@akshat-kmr could you mind to use cherry-pick -x to mark the origin commit? thanks

Akshat Kumar added 4 commits October 9, 2020 07:30
Currently the shims only support starting the logging binary process if the
io.Creator Config does not specify Terminal: true. This means that the program
using containerd will only be able to specify FIFO io when Terminal: true,
rather than allowing the shim to fork the logging binary process. Hence,
containerd consumers face an inconsistent behavior regarding logging binary
management depending on the Terminal option.

Allowing the shim to fork the logging binary process will introduce consistency
between the running container and the logging process. Otherwise, the logging
process may die if its parent process dies whereas the container will keep
running, resulting in the loss of container logs.

Signed-off-by: Akshat Kumar <[email protected]>
(cherry picked from commit 7a9fbec)
Signed-off-by: Akshat Kumar <[email protected]>
(cherry picked from commit 4cc99e5)
Signed-off-by: Akshat Kumar <[email protected]>
(cherry picked from commit 61da698)
@akshat-kmr
Copy link
Copy Markdown
Author

@akshat-kmr could you mind to use cherry-pick -x to mark the origin commit? thanks

Thanks, I've done so. The first 3 commits are marked with -x and point to the commits merged in the master PR. Let me know if you meant something else.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 9, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda
Copy link
Copy Markdown
Member

I think we should only backport security fixes

Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comment above

@cpuguy83
Copy link
Copy Markdown
Member

Agreed, I don't think we should backport this change to 1.3

@akshat-kmr
Copy link
Copy Markdown
Author

Sounds good, in that case I will close this PR. The backport to 1.4 should be fine though, correct? If so, I would appreciate if you can take a look when you have a chance @AkihiroSuda #4615

@akshat-kmr akshat-kmr closed this Oct 16, 2020
@AkihiroSuda
Copy link
Copy Markdown
Member

No, this shouldn't be back ported to 1.4 either, unless there is very specific reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants