Commit 1b7bdde4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38796 from chentao1596/kubelet-cni-log

Automatic merge from submit-queue (batch tested with PRs 38796, 40823, 40756, 41083, 41105) kubelet/network-cni-plugin: modify the log's info **What this PR does / why we need it**: Checking the startup logs of kubelet, i can always find a error like this: "E1215 10:19:24.891724 2752 cni.go:163] error updating cni config: No networks found in /etc/cni/net.d" It will appears, neither i use cni network-plugin or not. After analysis codes, i thought it should be a warn log, because it will not produce any actions like as exit or abort, and just ignored when not any valid plugins exit. thank you!
parents 01c45f7d a359287a
...@@ -160,7 +160,7 @@ func (plugin *cniNetworkPlugin) Init(host network.Host, hairpinMode componentcon ...@@ -160,7 +160,7 @@ func (plugin *cniNetworkPlugin) Init(host network.Host, hairpinMode componentcon
func (plugin *cniNetworkPlugin) syncNetworkConfig() { func (plugin *cniNetworkPlugin) syncNetworkConfig() {
network, err := getDefaultCNINetwork(plugin.pluginDir, plugin.binDir, plugin.vendorCNIDirPrefix) network, err := getDefaultCNINetwork(plugin.pluginDir, plugin.binDir, plugin.vendorCNIDirPrefix)
if err != nil { if err != nil {
glog.Errorf("error updating cni config: %s", err) glog.Warningf("Unable to update cni config: %s", err)
return return
} }
plugin.setDefaultNetwork(network) plugin.setDefaultNetwork(network)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment