@@ -278,13 +278,13 @@ func loadNetworks(confDir string, cni *libcni.CNIConfig) (map[string]*cniNetwork
278
278
if strings .HasSuffix (confFile , ".conflist" ) {
279
279
confList , err = libcni .ConfListFromFile (confFile )
280
280
if err != nil {
281
- logrus .Warningf ("Error loading CNI config list file %s: %v" , confFile , err )
281
+ logrus .Errorf ("Error loading CNI config list file %s: %v" , confFile , err )
282
282
continue
283
283
}
284
284
} else {
285
285
conf , err := libcni .ConfFromFile (confFile )
286
286
if err != nil {
287
- logrus .Warningf ("Error loading CNI config file %s: %v" , confFile , err )
287
+ logrus .Errorf ("Error loading CNI config file %s: %v" , confFile , err )
288
288
continue
289
289
}
290
290
if conf .Network .Type == "" {
@@ -293,7 +293,7 @@ func loadNetworks(confDir string, cni *libcni.CNIConfig) (map[string]*cniNetwork
293
293
}
294
294
confList , err = libcni .ConfListFromConf (conf )
295
295
if err != nil {
296
- logrus .Warningf ("Error converting CNI config file %s to list: %v" , confFile , err )
296
+ logrus .Errorf ("Error converting CNI config file %s to list: %v" , confFile , err )
297
297
continue
298
298
}
299
299
}
@@ -482,8 +482,8 @@ func (plugin *cniNetworkPlugin) forEachNetwork(podNetwork *PodNetwork, fromCache
482
482
var newRt * libcni.RuntimeConf
483
483
cniNet , newRt , err = plugin .loadNetworkFromCache (network .Name , rt )
484
484
if err != nil {
485
- logrus .Debugf ("error loading cached network config: %v" , err )
486
- logrus .Debugf ("falling back to loading from existing plugins on disk" )
485
+ logrus .Errorf ("error loading cached network config: %v" , err )
486
+ logrus .Warnf ("falling back to loading from existing plugins on disk" )
487
487
} else {
488
488
// Use the updated RuntimeConf
489
489
rt = newRt
@@ -519,7 +519,7 @@ func bringUpLoopback(netns string) error {
519
519
return err
520
520
}
521
521
if len (v4Addrs ) != 0 {
522
- // sanity check that this is a loopback address
522
+ // check that this is a loopback address
523
523
for _ , addr := range v4Addrs {
524
524
if ! addr .IP .IsLoopback () {
525
525
return fmt .Errorf ("loopback interface found with non-loopback address %q" , addr .IP )
@@ -532,7 +532,7 @@ func bringUpLoopback(netns string) error {
532
532
return err
533
533
}
534
534
if len (v6Addrs ) != 0 {
535
- // sanity check that this is a loopback address
535
+ // check that this is a loopback address
536
536
for _ , addr := range v6Addrs {
537
537
if ! addr .IP .IsLoopback () {
538
538
return fmt .Errorf ("loopback interface found with non-loopback address %q" , addr .IP )
@@ -616,7 +616,7 @@ func (plugin *cniNetworkPlugin) getCachedNetworkInfo(containerID string) ([]NetA
616
616
cacheFile := filepath .Join (dirPath , fname )
617
617
bytes , err := ioutil .ReadFile (cacheFile )
618
618
if err != nil {
619
- logrus .Warningf ("failed to read CNI cache file %s: %v" , cacheFile , err )
619
+ logrus .Errorf ("failed to read CNI cache file %s: %v" , cacheFile , err )
620
620
continue
621
621
}
622
622
@@ -628,7 +628,7 @@ func (plugin *cniNetworkPlugin) getCachedNetworkInfo(containerID string) ([]NetA
628
628
}{}
629
629
630
630
if err := json .Unmarshal (bytes , & cachedInfo ); err != nil {
631
- logrus .Warningf ("failed to unmarshal CNI cache file %s: %v" , cacheFile , err )
631
+ logrus .Errorf ("failed to unmarshal CNI cache file %s: %v" , cacheFile , err )
632
632
continue
633
633
}
634
634
if cachedInfo .Kind != libcni .CNICacheV1 {
0 commit comments