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: Fix missing errors in KPR init #18499

Merged
merged 1 commit into from
Jan 21, 2022
Merged

daemon: Fix missing errors in KPR init #18499

merged 1 commit into from
Jan 21, 2022

Conversation

brb
Copy link
Member

@brb brb commented Jan 17, 2022

The db5300d commit normalized the KPR initialisation routines by
making them to return an error. Unfortunately, in some error returns
it forgot to add actual errors. This makes debugging of KPR init
difficult. For instance:

"Detected devices" devices="[enp0s9 eth0]"
<..>
"failed to finalise LB initialization: Cannot retrieve enp0s9 link"

The actual error for the link retrieval is missing.

Fixes: db5300d ("choir: normalize error handling in kube_proxy_replacement.go")
Signed-off-by: Martynas Pumputis m@lambda.lt

@brb brb added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.11 labels Jan 17, 2022
@brb brb requested review from ldelossa and a team January 17, 2022 13:49
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.11.1 Jan 17, 2022
The db5300d commit normalized the KPR initialisation routines by
making them to return an error. Unfortunately, in some error returns
it forgot to add actual errors. This makes debugging of KPR init
difficult. For instance:

    "Detected devices" devices="[enp0s9 eth0]"
    <..>
    "failed to finalise LB initialization: Cannot retrieve enp0s9 link"

The actual error for the link retrieval is missing.

Fixes: db5300d ("choir: normalize error handling in kube_proxy_replacement.go")
Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb
Copy link
Member Author

brb commented Jan 17, 2022

No need to run the whole CI suite. The conformance should give the coverage.

Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

LGTM.

@joestringer joestringer added this to Needs backport from master in 1.11.2 Jan 18, 2022
@joestringer joestringer removed this from Needs backport from master in 1.11.1 Jan 18, 2022
@brb brb added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 20, 2022
@kkourt kkourt merged commit 2fdfd91 into master Jan 21, 2022
@kkourt kkourt deleted the pr/brb/kpr-errors branch January 21, 2022 09:28
@glibsm glibsm added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Jan 30, 2022
@joestringer joestringer moved this from Needs backport from master to Backport done to v1.11 in 1.11.2 Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.11.2
Backport done to v1.11
Development

Successfully merging this pull request may close these issues.

None yet

4 participants