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

Add context to flannel errors #8284

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

manuelbuil
Copy link
Contributor

Proposed Changes

Add extra context to the flannel errors to simplify debugging exercises

Types of Changes

Bugfix

Verification

Try to create an error and see the new extra information in the logs

Testing

Linked Issues

#8278

User-Facing Change


Further Comments

@manuelbuil manuelbuil requested a review from a team as a code owner August 31, 2023 15:45
@@ -49,7 +49,7 @@ var (
func flannel(ctx context.Context, flannelIface *net.Interface, flannelConf, kubeConfigFile string, flannelIPv6Masq bool, multiClusterCIDR bool, netMode int) error {
extIface, err := LookupExtInterface(flannelIface, netMode)
if err != nil {
return err
return errors.Wrap(err, "failed to find the interface")
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you need to import errors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, now it should work

Signed-off-by: Manuel Buil <mbuil@suse.com>
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: +4.16% 🎉

Comparison is base (0d23cfe) 47.61% compared to head (66cb106) 51.77%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8284      +/-   ##
==========================================
+ Coverage   47.61%   51.77%   +4.16%     
==========================================
  Files         143      143              
  Lines       14732    14732              
==========================================
+ Hits         7014     7627     +613     
+ Misses       6623     5902     -721     
- Partials     1095     1203     +108     
Flag Coverage Δ
e2etests 49.00% <0.00%> (?)
inttests 45.29% <0.00%> (+0.35%) ⬆️
unittests 19.83% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/agent/flannel/flannel.go 43.03% <0.00%> (ø)

... and 42 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants