Skip to content

Commit

Permalink
Add debug statements to figure out ETP=local flake
Browse files Browse the repository at this point in the history
We had a flake here: https://github.com/ovn-org/ovn-kubernetes/actions/runs/5408009751?pr=3724
for this test and from the logs everything looks good.
Unless we print the iptable rules at the given instance
its hard to debug this test specially since we don't
gather the iptable rules from nodes at a given point.

Signed-off-by: Surya Seetharaman <[email protected]>
  • Loading branch information
tssurya committed Jun 29, 2023
1 parent 2e085e8 commit 0625e16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -866,10 +866,12 @@ func pokeIPTableRules(clientContainer, pattern string) int {
cmd = append(cmd, ipTCommand...)
iptRules, err := runCommand(cmd...)
framework.ExpectNoError(err, "failed to get iptable rules from node %s", clientContainer)
framework.Logf("DEBUG: Dumping IPTRules %v", iptRules)
numOfMatchRules := 0
for _, iptRule := range strings.Split(iptRules, "\n") {
match := strings.Contains(iptRule, pattern)
if match {
framework.Logf("DEBUG: Matched rule %s for pattern %s", iptRule, pattern)
numOfMatchRules++
}
}
Expand Down

0 comments on commit 0625e16

Please sign in to comment.