-
Notifications
You must be signed in to change notification settings - Fork 2
use 'nf_conntrack' instead of 'nf_conntrack_ipv4' for linux kernel >= 4.19 #21
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
use 'nf_conntrack' instead of 'nf_conntrack_ipv4' for linux kernel >= 4.19 #21
Conversation
c6b4280 to
24262f5
Compare
| wantModules := sets.NewString() | ||
| loadModules := sets.NewString() | ||
| linuxKernelHandler := NewLinuxKernelHandler() | ||
| _, ipvsModules, _ := utilipvs.GetKernelVersionAndIPVSMods(linuxKernelHandler.executor) |
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.
Check err ?
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.
Interestingly upstream chose to explicitly ignore errors.
Basically we're only interested in the 2nd return value, and in error paths it is nil, so ipvsModules will be nil. This leads to wantModules being empty, and then potentially the len(modules) bit fails lower down. So there's something handling it it seems. Haven't looked at the details of mods, err := handle.GetModules(), however I not particularly tempted to deviate from upstream just for this.
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.
ok
| wantModules := sets.NewString() | ||
| loadModules := sets.NewString() | ||
| linuxKernelHandler := NewLinuxKernelHandler() | ||
| _, ipvsModules, _ := utilipvs.GetKernelVersionAndIPVSMods(linuxKernelHandler.executor) |
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.
ok
Cherry-pick of kubernetes#70398