-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Enhance error context in pkg/datapath/loader/netlink.go for easier debugging #40734
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
Conversation
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change LGTM but @cilium/loader needs to approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delay.
CI is failing with the following error message |
Enhanced error messages in the netlink.go file to provide more context when operations fail. This includes detailed messages for link setup, sysctl settings application, and MAC address generation failures, improving debuggability and clarity for future troubleshooting. Signed-off-by: iwanhae <wanhae.lee@linecorp.com>
I triggered update-with-rebase, and will re-run tests so that hopefully this can merge. |
/test |
Hello, this is my first PR to the Cilium community. if I’ve made any mistakes or deviated from community conventions, please let me know and I’ll address them promptly
Changes
Why?
Recently, I've encountered an error message something like this from the Cilium agent.
The root cause of this issue is a wrongly inferred MTU value (just like #20603): I had assigned an IP address and an unusually large MTU (65,536) to the loopback device for a special use case, which Cilium then tried—and failed—to apply to
cilium_host
andcilium_net
. Tracking down this failure took over two hours due to the lack of context in the error message.How This Helps