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

daemon: Log warning if BPF Clock probe fail #25287

Merged
merged 1 commit into from May 8, 2023

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented May 5, 2023

If a user enable BPF Clock and probe of the kernel support fails, we currently don't log anything and silently disable that feature. Let's instead log a warning so it's clear that the feature isn't used and why.

@pchaigno pchaigno added the release-note/misc This PR makes changes that have no direct user impact. label May 5, 2023
@pchaigno pchaigno requested a review from a team as a code owner May 5, 2023 11:49
@pchaigno pchaigno requested a review from thorn3r May 5, 2023 11:49
@pchaigno pchaigno requested a review from a team as a code owner May 5, 2023 11:56
@pchaigno pchaigno requested a review from aspsk May 5, 2023 11:56
@pchaigno pchaigno force-pushed the bpf-clock-probe-warning branch 2 times, most recently from c5a8d26 to 8b4b24e Compare May 5, 2023 12:01
Copy link
Contributor

@aspsk aspsk left a comment

Choose a reason for hiding this comment

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

LGTM, besides what robot says about

				log.WithError(err).Warningf("Auto-disabling %q feature since kernel doesn't expose %q.", bpf.TimerInfoFilepath)

(no arg for the second %q)

If a user enable BPF Clock and probe of the kernel support fails, we
currently don't log anything and silently disable that feature. Let's
instead log a warning so it's clear that the feature isn't used and
why.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno
Copy link
Member Author

pchaigno commented May 5, 2023

I see you don't trust me to fix that properly 😆

@pchaigno
Copy link
Member Author

pchaigno commented May 5, 2023

/test

@pchaigno
Copy link
Member Author

pchaigno commented May 7, 2023

I don't think we need to wait for more reviews. This code is in the agent but specific to the datapath. Tests are passing. Marking ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 7, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 8, 2023
@youngnick youngnick merged commit 4086fe9 into cilium:main May 8, 2023
57 checks passed
@pchaigno pchaigno deleted the bpf-clock-probe-warning branch May 8, 2023 10:41
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants