Skip to content

Commit 5290c24

Browse files
authored
Merge pull request kubernetes#131486 from aroradaman/kube-proxy-ipt-init-error
kube-proxy: log errors during proxy boot
2 parents fe5afa9 + 9cb3dfb commit 5290c24

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/util/iptables/iptables.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,12 @@ func (runner *runner) ChainExists(table Table, chain Chain) (bool, error) {
654654
trace := utiltrace.New("iptables ChainExists")
655655
defer trace.LogIfLong(2 * time.Second)
656656

657-
_, err := runner.run(opListChain, fullArgs)
658-
return err == nil, err
657+
out, err := runner.run(opListChain, fullArgs)
658+
if err != nil {
659+
klog.ErrorS(err, "Failed to list chain", "chain", chain, "table", table, "output", string(out))
660+
return false, err
661+
}
662+
return true, nil
659663
}
660664

661665
type operation string

0 commit comments

Comments
 (0)