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 when kernel config not found #14902

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

brb
Copy link
Member

@brb brb commented Feb 9, 2021

Previously, when cilium-agent couldn't find a kernel config (a case for
distros which do not expose the config via /proc/config.gz, but instead
they store it in /boot, which is not mounted into a cilium container),
we logged the following message:

level=info msg="BPF system config check: NOT OK." error="Kernel Config
file not found" subsys=linux-datapath

This confused users making them to think that the missing kernel config
was to blame for their connectivity issues. Thus, this commit silences
the message (missing CONFIG_BPF would anyway result in a non-cryptic error
message).

We can bring the message back once #14314 has been resolved.

@brb brb added area/daemon Impacts operation of the Cilium daemon. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. needs-backport/1.8 labels Feb 9, 2021
@brb brb requested a review from a team February 9, 2021 07:24
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Feb 9, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.5 Feb 9, 2021
@brb brb requested a review from jibi February 9, 2021 07:24
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.8.7 Feb 9, 2021
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Looks good.

pkg/datapath/linux/requirements.go Show resolved Hide resolved
Previously, when cilium-agent couldn't find a kernel config (a case for
distros which do not expose the config via /proc/config.gz, but instead
they store it in /boot, which is not mounted into a cilium container),
we logged the following message:

level=info msg="BPF system config check: NOT OK." error="Kernel Config
file not found" subsys=linux-datapath

This confused users making them to think that the missing kernel config
was to blame for their connectivity issues. Thus, this commit silences
the message (missing CONFIG_BPF would anyway result in non-cryptic error
message).

We can bring the message back once
#14314 has been resolved.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb force-pushed the pr/brb/rm-kernel-config-check branch from e4b464b to 1a0347d Compare February 11, 2021 06:05
@joestringer joestringer moved this from Done to In progress in 1.10.0 Feb 12, 2021
@brb
Copy link
Member Author

brb commented Feb 16, 2021

test-me-please

@brb
Copy link
Member Author

brb commented Feb 16, 2021

test-gke

@jibi
Copy link
Member

jibi commented Feb 17, 2021

retest-4.19

@jibi
Copy link
Member

jibi commented Feb 17, 2021

retest-gke

@joestringer joestringer added this to Needs backport from master in 1.8.8 Feb 17, 2021
@joestringer joestringer removed this from Needs backport from master in 1.8.7 Feb 17, 2021
@aanm
Copy link
Member

aanm commented Feb 18, 2021

@jibi with small changes like these there is no need to make all tests pass.

@aanm aanm merged commit d931771 into master Feb 18, 2021
1.10.0 automation moved this from In progress to Done Feb 18, 2021
@aanm aanm deleted the pr/brb/rm-kernel-config-check branch February 18, 2021 10:40
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.9 in 1.9.5 Feb 19, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.9 to Backport done to v1.9 in 1.9.5 Feb 22, 2021
@tklauser tklauser moved this from Needs backport from master to Backport done to v1.8 in 1.8.8 Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
No open projects
1.8.8
Backport done to v1.8
1.9.5
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

None yet

7 participants