Skip to content

Commit 195cc0d

Browse files
authored
Merge pull request #109 from RHsyseng/ovn_conntrack_fix
Adding clarification about the Node subnet
2 parents 8c1bb1a + d3ac4b1 commit 195cc0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This script gives the potential list of commands to clean up wrong conntracks
1414
It only supports UDP stale entries
1515
It only considers clusterIP services
1616
It only works on IPV4 single stack env
17-
Assumes node subnet is the default /24 cidr
17+
Assumes node subnet is the default /24 cidr (it also works for /23)
1818
Assumes Cluster CIDR is /16
1919
Checks for the Service CIDR to have one of the networks /8 /16 or /24
2020

scripts/ovn_cleanConntrack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
NOW=$(date +"%Y-%m-%d_%H-%M-%S")
99
# Logfile to save some DEBUG output
1010
LOG="/tmp/ovn_cleanConntrack.sh.${NOW}.log"
11-
# IP of the ovn-k8s-mp0 interface for a node subnet with mask /24
11+
# IP of the ovn-k8s-mp0 interface for a node subnet with mask /24 or /23
1212
NODESUBNETIP=2
1313
# Debug var to write DEBUG lines into the log
1414
DEBUG=false
@@ -27,7 +27,7 @@ function usage() {
2727
echo "It only supports UDP stale entries"
2828
echo "It only considers clusterIP services"
2929
echo "It only works on IPV4 single stack env"
30-
echo "Assumes node subnet is the default /24 cidr"
30+
echo "Assumes node subnet is the default /24 cidr (it also works for /23)"
3131
echo "Assumes Cluster CIDR is /16"
3232
echo "Checks for the Service CIDR to have one of the networks /8 /16 or /24"
3333
echo -e

0 commit comments

Comments
 (0)