-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Migrate PLEG to contextual logging #126843
Migrate PLEG to contextual logging #126843
Conversation
@oxxenix: GitHub didn't allow me to request PR reviews from the following users: kubernetes/wg-structured-logging-reviews. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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-sigs/prow repository. |
Hi @oxxenix. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
96704e8
to
9daebea
Compare
/ok-to-test |
/triage accepted |
9daebea
to
9e6a04b
Compare
/test pull-kubernetes-node-crio-cgrpv1-evented-pleg-e2e |
/test pull-kubernetes-node-crio-cgrpv2-e2e |
/test pull-kubernetes-node-crio-e2e |
/retest |
@kannon92 @saschagrunert @haircommander not sure why the cgroups v2 crio job, pull-kubernetes-node-crio-cgrpv2-e2e, is failing for this PR. |
@harshe crio-cgrpv2-e2e failed the same way as some of the runs triggered by this PR:
So, it seems unrelated to the changes made by this PR. |
/skip |
I agree the failures look unrelated, I'm checking if we have to fix anything for the cgroupv2 test in #127381 |
/lgtm @pohly can you approve it? It looks like it still requires approval from hack/ owners. |
LGTM label has been added. Git tree hash: 93f3076eed85d264ffa5488fe4a28f837dad0499
|
/approve |
@mrunalp @SergeyKanzhelev please, approve. You're our last hope :) |
Is there a good documentation on this? Since this code now will have a different pattern than other code - we need to make sure we can point to the migration docs explaining how things work and which type of logging to use when. Also, what would be an effect if old-style logs are used alongside the contextual logging? I am trying to see if this code calls into anything that will use old-style logging. Is it just the context will be missing? |
Sure, there is a documentation on this:
It's ongoing process and SIG-Node is already participating in it. All Kubelet code has been moved to structured logging and move to contextual logging is a logical continuation of this process. old and new style components should co-exist and don't influence each other, at least to my knowledge. |
The code that doesn't use contextual logging will keep using structured logging I believe. Logging prefixes will be different in some cases, but only for the component that switched to contextual logging. FWIW a lot of k/k code already moved to contextual logging, for example DRA Kubelet code and it works just fine. |
/release-note-none |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oxxenix, pohly, saschagrunert, SergeyKanzhelev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@oxxenix: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
migrate pkg/kubelet/pleg to contextual logging
Does this PR introduce a user-facing change?
/wg structured-logging
/area logging
/priority important-longterm
/cc @kubernetes/wg-structured-logging-reviews