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

datapath: Do not log if svc is not found #10668

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Conversation

brb
Copy link
Member

@brb brb commented Mar 23, 2020

We used to log (via cilium_dbg) when a packet dst IP + port did not
match any service, e.g:

CPU 20: MARK 0xbc243a3b FROM 0 DEBUG: Master service lookup failed, addr.p2=0 addr.p3=0

This added a lot of noise to cilium monitor -D output, especially when
bpf_netdev.o was attached to a native device (e.g when BPF NodePort was
enabled), as any inbound packet does a service lookup.

This commit removes the logging when a svc is not found. The fact that
a svc is not found can be deduced from a missing lookup svc endpoint log
message.

We used to log (via cilium_dbg) when a packet dst IP + port did not
match any service, e.g:

    CPU 20: MARK 0xbc243a3b FROM 0 DEBUG: Master service lookup failed, addr.p2=0 addr.p3=0

This added a lot of noise to `cilium monitor -D` output, especially when
bpf_netdev.o was attached to a native device (e.g when BPF NodePort was
enabled), as any inbound packet does a service lookup.

This commit removes the logging when a svc is not found. The fact that
a svc is not found can be deduced from a missing lookup svc endpoint log
message.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb added pending-review sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact. labels Mar 23, 2020
@brb brb requested a review from a team March 23, 2020 16:32
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Mar 23, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.7.2 Mar 23, 2020
@brb
Copy link
Member Author

brb commented Mar 23, 2020

test-me-please

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 45.597% when pulling 2a4834b on pr/brb/no-master-lookup-dbg into 28b0fba on master.

@borkmann borkmann merged commit f3c40a7 into master Mar 23, 2020
1.8.0 automation moved this from In progress to Merged Mar 23, 2020
@borkmann borkmann deleted the pr/brb/no-master-lookup-dbg branch March 23, 2020 19:42
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Mar 31, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Mar 31, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.7 to Backport done to v1.7 in 1.7.2 Apr 1, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.7 to Backport done to v1.7 in 1.7.2 Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
No open projects
1.7.2
Backport done to v1.7
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

4 participants