-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
improve checking modprob netfilter #6427
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
pkg/minikube/cruntime/cruntime.go
Outdated
glog.Infof("couldn't verify netfilter by %q which might be okay. output=%q error=%v", rr.Command(), rr.Output(), err) | ||
c = exec.Command("sudo", "modprobe", "br_netfilter") | ||
if rr, err := cr.RunCmd(c); err != nil { | ||
return errors.Wrapf(err, "br_netfilter. output: %s", rr.Output()) |
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.
Here too.
pkg/minikube/cruntime/cruntime.go
Outdated
return errors.Wrap(err, "br_netfilter") | ||
c := exec.Command("sudo", "sysctl", "net.netfilter.nf_conntrack_count") | ||
if rr, err := cr.RunCmd(c); err != nil { | ||
glog.Infof("couldn't verify netfilter by %q which might be okay. output=%q error=%v", rr.Command(), rr.Output(), 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.
I believe rr.Output() here is redundant: RunCmd errors already include stdout/stderr, or at least non-kic drivers do. Can we fix kic's RunCmd to be consistent instead?
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.
sure thing ! I
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.
I just noticed we have same thing in kic as well.
fmt.Errorf("%s: %v\nstdout:\n%s\nstderr:\n%s", rr.Command(), err, rr.Stdout.String(), rr.Stderr.String())```
Codecov Report
@@ Coverage Diff @@
## master #6427 +/- ##
==========================================
- Coverage 37.46% 37.44% -0.02%
==========================================
Files 128 128
Lines 8646 8649 +3
==========================================
Hits 3239 3239
- Misses 4988 4991 +3
Partials 419 419
|
Error: running mkcmp: exit status 1 |
/ok-to-test |
fixes this #5900 (none)
and helps with #6404 (docker on cloud shell)
based on suggestion by @tstromberg here #5900 (comment)