From ac0aa6485be2982d815d6a89c20fb2567449882b Mon Sep 17 00:00:00 2001 From: Chris Telfer Date: Wed, 20 Jun 2018 15:54:25 -0400 Subject: [PATCH] Adjust warnings for transient LB endpoint conds Add debug and error logs to notify when a load balancing sandbox is not found. This can occur in normal operation during removal. Signed-off-by: Chris Telfer --- libnetwork/service_linux.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libnetwork/service_linux.go b/libnetwork/service_linux.go index 5f0dceccc1..532b8c8233 100644 --- a/libnetwork/service_linux.go +++ b/libnetwork/service_linux.go @@ -95,15 +95,12 @@ func (n *network) addLBBackend(ip net.IP, lb *loadBalancer) { } ep, sb, err := n.findLBEndpointSandbox() if err != nil { - logrus.Errorf("error in addLBBackend for %s/%s for %v", n.ID(), n.Name(), err) + logrus.Errorf("addLBBackend %s/%s: %v", n.ID(), n.Name(), err) return } if sb.osSbox == nil { return } - if n.ingress && !sb.ingress { - return - } eIP := ep.Iface().Address() @@ -181,15 +178,12 @@ func (n *network) rmLBBackend(ip net.IP, lb *loadBalancer, rmService bool, fullR } ep, sb, err := n.findLBEndpointSandbox() if err != nil { - logrus.Errorf("error in rmLBBackend for %s/%s for %v", n.ID(), n.Name(), err) + logrus.Debugf("rmLBBackend for %s/%s: %v -- probably transient state", n.ID(), n.Name(), err) return } if sb.osSbox == nil { return } - if n.ingress && !sb.ingress { - return - } eIP := ep.Iface().Address()