Skip to content

Commit

Permalink
Adjust warnings for transient LB endpoint conds
Browse files Browse the repository at this point in the history
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 <ctelfer@docker.com>
  • Loading branch information
ctelfer committed Jun 28, 2018
1 parent 8abaeb0 commit 452d056
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions service_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 452d056

Please sign in to comment.