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 kubelet/cm/container logs to structured logging #100001
Conversation
Hi @shiyajuan123. 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/test-infra repository. |
/cc @yuzhiquan |
@@ -675,7 +675,7 @@ func (cm *containerManagerImpl) Start(node *v1.Node, | |||
for _, cont := range cm.systemContainers { | |||
if cont.ensureStateFunc != nil { | |||
if err := cont.ensureStateFunc(cont.manager); err != nil { | |||
klog.Warningf("[ContainerManager] Failed to ensure state of %q: %v", cont.name, err) | |||
klog.InfoS("[ContainerManager] Failed to ensure state of", "ensureState", cont.name, "err", err) |
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.
This log in err != nil statement, and with err
arguments, may be ErrorS more available.
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.
Warning -> Info unless we fail (which we don't here)
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.
can you elaborate it,please?
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.
Warning -> Info unless we fail (which we don't here)
@ehashman klog doesn't have WarningS
, and as ubernetes/enhancements#1602 (comment), InfoS is ok here?
/triage accepted |
@yuzhiquan: you can only set the release note label to release-note-none if the release-note block in the PR body text is empty or "none". 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/test-infra repository. |
@yuzhiquan: you can only set the release note label to release-note-none if the release-note block in the PR body text is empty or "none". 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/test-infra repository. |
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.
/ok-to-test
/remove-priority backlog
/priority important-soon
/test pull-kubernetes-integration |
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.
Went through outstanding comments and verified all requested changes were made.
/lgtm
/milestone v1.21 |
/assign @ConnorDoyle |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp, shiyajuan123 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Migrate
pkg/kubelet/cm/container_manager_linux.go
andpkg/kubelet/cm/container_manager_stub.go
to structured loggingWhich issue(s) this PR fixes:
Ref #98976
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: