From ffbfc53053f4c7be1248a52f321d054de4307fbb Mon Sep 17 00:00:00 2001 From: Laurent Bernaille Date: Mon, 17 Dec 2018 13:46:09 +0100 Subject: [PATCH] [kube-proxy/ipvs] Add info message showing the reason for skipping deletion --- pkg/proxy/ipvs/graceful_termination.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/proxy/ipvs/graceful_termination.go b/pkg/proxy/ipvs/graceful_termination.go index a705bb9585d..4d53d4ee7b9 100644 --- a/pkg/proxy/ipvs/graceful_termination.go +++ b/pkg/proxy/ipvs/graceful_termination.go @@ -168,6 +168,7 @@ func (m *GracefulTerminationManager) deleteRsFunc(rsToDelete *listItem) (bool, e // For UDP, ActiveConn is always 0 // For TCP, InactiveConn are connections not in ESTABLISHED state if rs.ActiveConn+rs.InactiveConn != 0 { + klog.Infof("Not deleting, RS %v: %v ActiveConn, %v InactiveConn", rsToDelete.String(), rs.ActiveConn, rs.InactiveConn) return false, nil } klog.Infof("Deleting rs: %s", rsToDelete.String())