Improve the ipvs error message

pull/58/head
Weibin Lin 2018-06-25 10:44:42 +08:00 committed by Weibin Lin
parent d3fe0ea7ff
commit 73e3d8a081
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ func (handle *LinuxKernelHandler) GetModules() ([]string, error) {
builtinModsFilePath := fmt.Sprintf("/lib/modules/%s/modules.builtin", kernelVersion)
b, err = ioutil.ReadFile(builtinModsFilePath)
if err != nil {
glog.Errorf("Failed to read file %s with error %v", builtinModsFilePath, err)
glog.Warningf("Failed to read file %s with error %v. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules", builtinModsFilePath, err)
}
var bmods []string
for _, module := range ipvsModules {