Skip to content
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

UPSTREAM: google/cadvisor: 1700: Reduce log spam when unable to get network stats #16189

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

sjenning
Copy link
Contributor

@sjenning sjenning commented Sep 6, 2017

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 6, 2017
@deads2k
Copy link
Contributor

deads2k commented Sep 7, 2017

@eparis So I see the log levels as

  1. error - an operation failed and the developer doesn't think it will get better on its own.
  2. warning - an operation failed and it is likely to self-correct or the thing it was doing is logically optional/optimization.
  3. info - explanation of initial config or other notable happening for a user
  4. (1) - O(10 minutes) heartbeats, detailed reports on errors. in java, the message would go out an error, the stack would come out (1) for debugging
  5. (2) - O(minute) heartbeats, detailed reports on warnings.
  6. (3) - coarse grained entry or working messages
  7. (4) - any tracing a component wants. You should really turn this on per-component using vmodule or something else ugly
  8. (5) - really nothing uses this. We have some core apiserver library tracing here so that levels above can trace (4).

Do you have a different view of the world? I gather you're running (2), which seems questionable given this view of levels.

@eparis
Copy link
Member

eparis commented Sep 7, 2017

V(2) appears to be the standard log level most people use (including me). I largely agree with your levels,. I thought kube had a (loose) definition but can't find it...

The most common thing that I've seen which comes out V(2) in kube is system state changes. In any case, this is a cadvisor rebase, so even if we had a kube discussion about levels it wouldn't really be relevant to THIS PR :)

/assign
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eparis, sjenning

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2017
@deads2k
Copy link
Contributor

deads2k commented Sep 7, 2017

The most common thing that I've seen which comes out V(2) in kube is system state changes. In any case, this is a cadvisor rebase, so even if we had a kube discussion about levels it wouldn't really be relevant to THIS PR :)

To be clear, this isn't a cadvisor rebase, it's a pick. That means this pull is at high risk of accidental reversion in the next rebase. We match upstream cadvisor levels closely. If upstream isn't actually bumped into kube, this will be one of dozens of conflicting packages the rebaser will be trying to reconcile.

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 14825, 15756, 16178, 16188, 16189)

@openshift-merge-robot openshift-merge-robot merged commit d8a2507 into openshift:master Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants