From 8bd2bd900f8b304e355953823e170e743cec4a68 Mon Sep 17 00:00:00 2001 From: Nikhil Malik Date: Thu, 5 Dec 2024 12:54:30 +0900 Subject: [PATCH 1/2] gh-87: SCTP-MH fixed --- cicd/sctpmh/check_ha.sh | 38 ++++++++++++++++++++++++-------------- cicd/sctpmh/config.sh | 2 +- cicd/sctpmh/validation.sh | 2 +- cicd/sctpmh/validation2.sh | 6 +++--- cicd/sctpmh/validation3.sh | 12 ++++++------ cicd/sctpmh/validation4.sh | 12 ++++++------ cicd/sctpmh/validation5.sh | 10 +++++----- cicd/sctpmh/validation6.sh | 12 ++++++------ 8 files changed, 52 insertions(+), 42 deletions(-) diff --git a/cicd/sctpmh/check_ha.sh b/cicd/sctpmh/check_ha.sh index b31574fb0..1abf45a66 100644 --- a/cicd/sctpmh/check_ha.sh +++ b/cicd/sctpmh/check_ha.sh @@ -80,12 +80,15 @@ function restart_mloxilb() { ka=" --ka=172.17.0.2:172.17.0.3" fi echo "Restarting MASTER: $master" - pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $pat | xargs | cut -d ' ' -f 2) echo "Killing $pid" >&2 - docker exec -dt $master kill -9 $pid + #docker exec -dt $master kill -9 $pid + sudo kill -9 $pid docker exec -dt $master ip link del llb0 - docker exec -dt $master nohup /root/loxilb-io/loxilb/loxilb $copts $self $ka > /dev/null & - pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + docker exec -dt $master /root/loxilb-io/loxilb/loxilb $copts $self $ka + #pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $pat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 } @@ -112,23 +115,30 @@ function restart_loxilbs() { bka=" --ka=172.17.0.3:172.17.0.2" fi echo "Restarting $master" - pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) - echo "Killing $mpid" >&2 - docker exec -dt $master kill -9 $pid + pid=$(ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + echo "Killing $pid" >&2 + #docker exec -dt $master kill -9 $pid + sudo kill -9 $pid docker exec -dt $master ip link del llb0 - docker exec -dt $master nohup /root/loxilb-io/loxilb/loxilb $mcopts $mself $mka > /dev/null & - pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + echo "/root/loxilb-io/loxilb/loxilb $mcopts $mself $mka" >&2 + docker exec -dt $master /root/loxilb-io/loxilb/loxilb $mcopts $mself $mka + pid=$(ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 echo "Restarting $backup" - pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) echo "Killing $pid" >&2 - docker exec -dt $backup kill -9 $pid + #docker exec -dt $backup kill -9 $pid + sudo kill -9 $pid docker exec -dt $backup ip link del llb0 - docker exec -dt $backup nohup /root/loxilb-io/loxilb/loxilb $bcopts $bself $bka > /dev/null & - pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + echo "/root/loxilb-io/loxilb/loxilb $bcopts $bself $bka" >&2 + docker exec -dt $backup /root/loxilb-io/loxilb/loxilb $bcopts $bself $bka + #pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 - } diff --git a/cicd/sctpmh/config.sh b/cicd/sctpmh/config.sh index b14694a07..d7c307da1 100755 --- a/cicd/sctpmh/config.sh +++ b/cicd/sctpmh/config.sh @@ -5,7 +5,7 @@ source ../common.sh echo "#########################################" echo "Spawning all hosts" echo "#########################################" - +sudo sysctl net.ipv4.conf.all.arp_accept=1 spawn_docker_host --dock-type loxilb --dock-name llb1 --with-ka in spawn_docker_host --dock-type loxilb --dock-name llb2 --with-ka in spawn_docker_host --dock-type host --dock-name ep1 diff --git a/cicd/sctpmh/validation.sh b/cicd/sctpmh/validation.sh index 8a62cfff2..ac0eb399b 100755 --- a/cicd/sctpmh/validation.sh +++ b/cicd/sctpmh/validation.sh @@ -22,7 +22,7 @@ for((j=0,i=1; i<=6; i++, j++)); do fi echo -e "\n\n\n$border\n\n" - sleep 30 + sleep 60 done echo -e "\n\n\n$border\n" diff --git a/cicd/sctpmh/validation2.sh b/cicd/sctpmh/validation2.sh index 122fb03a8..73b1c6a2b 100755 --- a/cicd/sctpmh/validation2.sh +++ b/cicd/sctpmh/validation2.sh @@ -34,9 +34,9 @@ for((i=0;i<100;i++)) do fi $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" diff --git a/cicd/sctpmh/validation3.sh b/cicd/sctpmh/validation3.sh index b80ca3eed..6fc91650f 100755 --- a/cicd/sctpmh/validation3.sh +++ b/cicd/sctpmh/validation3.sh @@ -18,7 +18,7 @@ echo -e "\nTraffic Flow: User -> LB -> EP " $hexec ep1 sctp_test -H 31.31.31.1 -P 9999 -l > ep1.out & sleep 2 -$hexec user stdbuf -oL sctp_test -H 1.1.1.1 -B 2.2.2.1 -P 20000 -h $extIP -p $port -s -c 6 -x 1000 > user.out & +$hexec user stdbuf -oL sctp_test -H 1.1.1.1 -B 2.2.2.1 -P 20000 -h $extIP -p $port -s -c 6 -x 5000 > user.out & #Path counters p1c_old=0 p1c_new=0 @@ -32,7 +32,7 @@ code=0 sleep 5 for((i=0;i<200;i++)) do - fin=`tail -n 100 user.out | grep "Client: Sending packets.(1000/1000)"` + fin=`tail -n 100 user.out | grep "Client: Sending packets.(5000/5000)"` if [[ ! -z $fin ]]; then fin=1 echo "sctp_test done." @@ -40,9 +40,9 @@ for((i=0;i<200;i++)) do fi $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" @@ -56,7 +56,7 @@ for((i=0;i<200;i++)) do echo "Turning off this path from User->LB" $hexec user ip link set euserr1 down; down=1 - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) else if [[ $down == 1 ]]; then p1dok=1 diff --git a/cicd/sctpmh/validation4.sh b/cicd/sctpmh/validation4.sh index 4bb191834..988102e60 100755 --- a/cicd/sctpmh/validation4.sh +++ b/cicd/sctpmh/validation4.sh @@ -16,7 +16,7 @@ echo -e "\nTraffic Flow: EP ---> LB ---> User" $hexec user sctp_test -H 0.0.0.0 -P 9999 -l > user.out & sleep 2 -$hexec ep1 stdbuf -oL sctp_test -H 31.31.31.1 -B 32.32.32.1 -P 20000 -h $extIP -p $port -s -c 6 -x 1000 > ep1.out & +$hexec ep1 stdbuf -oL sctp_test -H 31.31.31.1 -B 32.32.32.1 -P 20000 -h $extIP -p $port -s -c 6 -x 5000 > ep1.out & #Path counters p1c_old=0 @@ -30,7 +30,7 @@ code=0 sleep 2 for((i=0;i<200;i++)) do - fin=`tail -n 100 ep1.out | grep "Client: Sending packets.(1000/1000)"` + fin=`tail -n 100 ep1.out | grep "Client: Sending packets.(5000/5000)"` if [[ ! -z $fin ]]; then fin=1 echo "sctp_test done." @@ -38,9 +38,9 @@ for((i=0;i<200;i++)) do fi $dexec $master loxicmd get ct --servName=sctpmh2 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" @@ -54,7 +54,7 @@ for((i=0;i<200;i++)) do echo -e "Turning off this path at User.\nEP----->LB--x-->User" $hexec user ip link set euserr1 down; down=1 - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) else if [[ $down == 1 ]]; then p1dok=1 diff --git a/cicd/sctpmh/validation5.sh b/cicd/sctpmh/validation5.sh index 757a65d4b..fb46fee7c 100755 --- a/cicd/sctpmh/validation5.sh +++ b/cicd/sctpmh/validation5.sh @@ -19,7 +19,7 @@ sudo pkill sctp_test $hexec ep1 sctp_test -H 31.31.31.1 -P 9999 -l > ep1.out & sleep 2 -$hexec user stdbuf -oL sctp_test -H 1.1.1.1 -B 2.2.2.1 -P 20000 -h $extIP -p $port -s -c 6 -x 10000 > user.out & +$hexec user stdbuf -oL sctp_test -H 1.1.1.1 -B 2.2.2.1 -P 20000 -h $extIP -p $port -s -c 6 -x 30000 > user.out & #Path counters p1c_old=0 @@ -34,7 +34,7 @@ code=0 nsyncOk=0 for((i=0;i<400;i++)) do - fin=`tail -n 100 user.out | grep "Client: Sending packets.(10000/10000)"` + fin=`tail -n 100 user.out | grep "Client: Sending packets.(30000/30000)"` if [[ ! -z $fin ]]; then fin=1 echo "sctp_test done." @@ -51,9 +51,9 @@ for((i=0;i<400;i++)) do fi $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "123.123.123.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "124.124.124.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "125.125.125.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" if [[ $p1c_new -gt $p1c_old ]]; then diff --git a/cicd/sctpmh/validation6.sh b/cicd/sctpmh/validation6.sh index 585ed17c3..ef972554a 100755 --- a/cicd/sctpmh/validation6.sh +++ b/cicd/sctpmh/validation6.sh @@ -21,7 +21,7 @@ sudo pkill sctp_test $hexec user sctp_test -H 0.0.0.0 -P 9999 -l > user.out & sleep 2 -$hexec ep1 stdbuf -oL sctp_test -H 31.31.31.1 -B 32.32.32.1 -P 20000 -h $extIP -p $port -s -c 6 -x 10000 > ep1.out & +$hexec ep1 stdbuf -oL sctp_test -H 31.31.31.1 -B 32.32.32.1 -P 20000 -h $extIP -p $port -s -c 6 -x 30000 > ep1.out & #Path counters p1c_old=0 @@ -36,7 +36,7 @@ code=0 nsyncOk=0 for((i=0;i<500;i++)) do - fin=`tail -n 100 ep1.out | grep "Client: Sending packets.(10000/10000)"` + fin=`tail -n 100 ep1.out | grep "Client: Sending packets.(30000/30000)"` if [[ ! -z $fin ]]; then fin=1 echo "sctp_test done." @@ -55,9 +55,9 @@ for((i=0;i<500;i++)) do echo -e "\n" $dexec $master loxicmd get ct --servName=sctpmh2 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" @@ -102,7 +102,7 @@ done sudo rm -rf *.out sudo pkill sctp_test -if [[ $fin == 1 && $p1 == 1 && $p2 == 1 && $p3 == 1 && $code == 0 && $nsyncOk == 1 ]]; then +if [[ $fin == 1 && $p1 == 1 && $p2 == 1 && $p3 == 1 && $code == 0 && $syncOk == 1 ]]; then echo "sctpmh SCTP Multihoming E2E HA Failover [OK]" echo "OK" > status6.txt restart_loxilbs From dbb5bd9285efec4fcf66f033c9dfcdd43b4269b8 Mon Sep 17 00:00:00 2001 From: Nikhil Malik Date: Thu, 5 Dec 2024 12:59:39 +0900 Subject: [PATCH 2/2] gh-87: SCTP-MH with seagull fixed --- cicd/sctpmh-seagull/check_ha.sh | 38 +++++++++++++++++++----------- cicd/sctpmh-seagull/setup.sh | 2 +- cicd/sctpmh-seagull/validation2.sh | 6 ++--- cicd/sctpmh-seagull/validation3.sh | 8 +++---- cicd/sctpmh-seagull/validation4.sh | 6 ++--- cicd/sctpmh-seagull/validation5.sh | 6 ++--- cicd/sctpmh-seagull/validation6.sh | 6 ++--- 7 files changed, 41 insertions(+), 31 deletions(-) diff --git a/cicd/sctpmh-seagull/check_ha.sh b/cicd/sctpmh-seagull/check_ha.sh index b31574fb0..1abf45a66 100644 --- a/cicd/sctpmh-seagull/check_ha.sh +++ b/cicd/sctpmh-seagull/check_ha.sh @@ -80,12 +80,15 @@ function restart_mloxilb() { ka=" --ka=172.17.0.2:172.17.0.3" fi echo "Restarting MASTER: $master" - pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $pat | xargs | cut -d ' ' -f 2) echo "Killing $pid" >&2 - docker exec -dt $master kill -9 $pid + #docker exec -dt $master kill -9 $pid + sudo kill -9 $pid docker exec -dt $master ip link del llb0 - docker exec -dt $master nohup /root/loxilb-io/loxilb/loxilb $copts $self $ka > /dev/null & - pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + docker exec -dt $master /root/loxilb-io/loxilb/loxilb $copts $self $ka + #pid=$(docker exec -i $master ps -aef | grep $pat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $pat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 } @@ -112,23 +115,30 @@ function restart_loxilbs() { bka=" --ka=172.17.0.3:172.17.0.2" fi echo "Restarting $master" - pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) - echo "Killing $mpid" >&2 - docker exec -dt $master kill -9 $pid + pid=$(ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + echo "Killing $pid" >&2 + #docker exec -dt $master kill -9 $pid + sudo kill -9 $pid docker exec -dt $master ip link del llb0 - docker exec -dt $master nohup /root/loxilb-io/loxilb/loxilb $mcopts $mself $mka > /dev/null & - pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + echo "/root/loxilb-io/loxilb/loxilb $mcopts $mself $mka" >&2 + docker exec -dt $master /root/loxilb-io/loxilb/loxilb $mcopts $mself $mka + pid=$(ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $master ps -aef | grep $mpat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 echo "Restarting $backup" - pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + #pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) echo "Killing $pid" >&2 - docker exec -dt $backup kill -9 $pid + #docker exec -dt $backup kill -9 $pid + sudo kill -9 $pid docker exec -dt $backup ip link del llb0 - docker exec -dt $backup nohup /root/loxilb-io/loxilb/loxilb $bcopts $bself $bka > /dev/null & - pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + echo "/root/loxilb-io/loxilb/loxilb $bcopts $bself $bka" >&2 + docker exec -dt $backup /root/loxilb-io/loxilb/loxilb $bcopts $bself $bka + #pid=$(docker exec -i $backup ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) + pid=$(ps -aef | grep $bpat | xargs | cut -d ' ' -f 2) echo "New loxilb pid: $pid" >&2 - } diff --git a/cicd/sctpmh-seagull/setup.sh b/cicd/sctpmh-seagull/setup.sh index a19ff84d0..4d7cd2d4d 100755 --- a/cicd/sctpmh-seagull/setup.sh +++ b/cicd/sctpmh-seagull/setup.sh @@ -5,7 +5,7 @@ source /vagrant/common.sh echo "#########################################" echo "Spawning all hosts" echo "#########################################" - +sudo sysctl net.ipv4.conf.all.arp_accept=1 spawn_docker_host --dock-type loxilb --dock-name llb1 --with-ka in spawn_docker_host --dock-type loxilb --dock-name llb2 --with-ka in spawn_docker_host --dock-type seahost --dock-name ep1 diff --git a/cicd/sctpmh-seagull/validation2.sh b/cicd/sctpmh-seagull/validation2.sh index f001a497f..0faa0b504 100755 --- a/cicd/sctpmh-seagull/validation2.sh +++ b/cicd/sctpmh-seagull/validation2.sh @@ -35,9 +35,9 @@ for((i=0;i<5;i++)) do echo -e "\n\n" $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" diff --git a/cicd/sctpmh-seagull/validation3.sh b/cicd/sctpmh-seagull/validation3.sh index 5a31136d9..9a9284906 100755 --- a/cicd/sctpmh-seagull/validation3.sh +++ b/cicd/sctpmh-seagull/validation3.sh @@ -46,9 +46,9 @@ for((i=0;i<35;i++)) do echo -e "\n\n" $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" @@ -62,7 +62,7 @@ for((i=0;i<35;i++)) do echo -e "Turning off this path from User->LB\n" $hexec user ip link set euserr1 down; down=1 - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) else if [[ $down == 1 ]]; then p1dok=1 diff --git a/cicd/sctpmh-seagull/validation4.sh b/cicd/sctpmh-seagull/validation4.sh index 0bf76671f..3034827c5 100755 --- a/cicd/sctpmh-seagull/validation4.sh +++ b/cicd/sctpmh-seagull/validation4.sh @@ -47,9 +47,9 @@ for((i=0;i<35;i++)) do echo -e "\n" $dexec $master loxicmd get ct --servName=sctpmh2 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" diff --git a/cicd/sctpmh-seagull/validation5.sh b/cicd/sctpmh-seagull/validation5.sh index 8bb74733d..10a9a2a89 100755 --- a/cicd/sctpmh-seagull/validation5.sh +++ b/cicd/sctpmh-seagull/validation5.sh @@ -51,9 +51,9 @@ for((i=0;i<15;i++)) do $dexec $master loxicmd get ct --servName=sctpmh1 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "20.20.20.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "21.21.21.1 | 2.2.2.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh1 | grep "22.22.22.1 | 1.1.1.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new" if [[ $p1c_new -gt $p1c_old ]]; then diff --git a/cicd/sctpmh-seagull/validation6.sh b/cicd/sctpmh-seagull/validation6.sh index 768d6a485..86dc2c39f 100755 --- a/cicd/sctpmh-seagull/validation6.sh +++ b/cicd/sctpmh-seagull/validation6.sh @@ -55,9 +55,9 @@ for((i=0;i<15;i++)) do echo -e "\n" $dexec $master loxicmd get ct --servName=sctpmh2 echo -e "\n" - p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) - p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 10) - p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 10) + p1c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "133.133.133.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) + p2c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "134.134.134.1 | 32.32.32.1" | xargs | cut -d '|' -f 11) + p3c_new=$(sudo docker exec -i $master loxicmd get ct --servName=sctpmh2 | grep "135.135.135.1 | 31.31.31.1" | xargs | cut -d '|' -f 11) echo "Counters: $p1c_new $p2c_new $p3c_new"