Skip to content

Log abridged set of rules at v2 in kube-proxy on error#48624

Merged
k8s-github-robot merged 1 commit intokubernetes:masterfrom
derekwaynecarr:log-abridged
Aug 2, 2017
Merged

Log abridged set of rules at v2 in kube-proxy on error#48624
k8s-github-robot merged 1 commit intokubernetes:masterfrom
derekwaynecarr:log-abridged

Conversation

@derekwaynecarr
Copy link
Copy Markdown
Member

What this PR does / why we need it:
this is a follow-on to #48085

Special notes for your reviewer:
we hit this in operations where we typically run in v2, and would like to log abridged set of output rather than full output.

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 7, 2017
@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. labels Jul 7, 2017
@derekwaynecarr
Copy link
Copy Markdown
Member Author

/cc @smarterclayton @danwinship

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we do one or the other?

if glog.V(4) {
  // full
else
  // abridged

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Printing the rules is only useful if the error has to do with a specific rule (as opposed to "could not get xtables lock" or something like that). But the code to generate the rules only has so many different cases in it and none of them are super obscure, so any bug in that code would get hit by developers pretty quickly rather than escaping into a release.

So, printing the rules is probably only ever going to be useful on non-production systems. So just change it from V(2) to V(4).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actually, we already log them at V(5) a few lines earlier whether there's an error or not. So we could just drop the logging here.

@thockin
Copy link
Copy Markdown
Member

thockin commented Jul 7, 2017 via email

@derekwaynecarr
Copy link
Copy Markdown
Member Author

updated per @thockin request, i think this is incremental improvement.

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 1, 2017

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 1, 2017
@k8s-github-robot
Copy link
Copy Markdown

@k8s-bot test this

Tests are more than 96 hours old. Re-running tests.

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 1, 2017

/approve no-issue

@k8s-github-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekwaynecarr, thockin

Associated issue requirement bypassed by: thockin

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

Details 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

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 1, 2017
@fejta-bot
Copy link
Copy Markdown

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to @fejta).

Review the full test history for this PR.

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

7 participants