kubenet: Reduce loglevel of spammy message

When no shaping is enabled, that warning would always be printed.
pull/6/head
Euan Kemp 2016-05-26 19:42:56 -07:00
parent 7e0b9bfa66
commit c4b8959a75
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,8 @@ func (plugin *kubenetNetworkPlugin) TearDownPod(namespace string, name string, i
glog.V(5).Infof("Removing pod IP %s from shaper", podIP)
// shaper wants /32
if err := plugin.shaper().Reset(fmt.Sprintf("%s/32", podIP)); err != nil {
glog.Warningf("Failed to remove pod IP %s from shaper: %v", podIP, err)
// Possible bandwidth shaping wasn't enabled for this pod anyways
glog.V(4).Infof("Failed to remove pod IP %s from shaper: %v", podIP, err)
}
}
if err := plugin.delContainerFromNetwork(plugin.netConfig, network.DefaultInterfaceName, namespace, name, id); err != nil {