diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml new file mode 100644 index 000000000..61ef40ec0 --- /dev/null +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -0,0 +1,65 @@ +name: TCP-LB-Sanity-CI-RH9 + +on: + schedule: + # Runs "At 14:00 UTC every day-of-week" + - cron: '0 14 * * *' + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + tags: + description: 'TCP LB Sanity RedHat9' + +jobs: + build: + name: tcp-lb-sanity-rh9 + runs-on: [self-hosted, redhat] + if: github.repository == 'loxilb-io/loxilb' + && github.event.inputs.tagName == '' + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - run: | + cd cicd/tcplb/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - run: | + cd cicd/tcplbmark/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - run: | + cd cicd/tcplbdsr1/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - run: | + cd cicd/tcplbdsr2/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - run: | + cd cicd/tcplbl3dsr/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - run: | + cd cicd/tcplbhash/ + ./config.sh + ./validation.sh + ./rmconfig.sh + cd - + - name: Clean test-bed + if: success() || failure() + run: | + sudo docker image rm ghcr.io/loxilb-io/loxilb:latest diff --git a/cicd/tcplbdsr2/config.sh b/cicd/tcplbdsr2/config.sh index 990f96fd6..2972dfdbc 100755 --- a/cicd/tcplbdsr2/config.sh +++ b/cicd/tcplbdsr2/config.sh @@ -65,6 +65,10 @@ $hexec l3ep3 ip route add 10.10.10.0/24 via 11.11.11.254 $hexec l3h1 sysctl net.ipv4.conf.all.rp_filter=0 2>&1 >> /dev/null $hexec l3h1 sysctl net.ipv4.conf.vlan11.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep1 sysctl net.ipv4.conf.el3ep1llb1.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep2 sysctl net.ipv4.conf.el3ep2llb1.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep3 sysctl net.ipv4.conf.el3ep3llb1.rp_filter=0 2>&1 >> /dev/null + sleep 5 $dexec llb1 loxicmd create lb 20.20.20.1 --select=hash --tcp=2020:2020 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1 --mode=dsr diff --git a/cicd/tcplbl3dsr/config.sh b/cicd/tcplbl3dsr/config.sh index 2bafeef05..de451ebf1 100755 --- a/cicd/tcplbl3dsr/config.sh +++ b/cicd/tcplbl3dsr/config.sh @@ -71,5 +71,12 @@ $hexec l3ep3 ip addr add 47.47.47.1/24 dev ipip0 $hexec l3ep3 ip addr add 58.58.58.1/32 dev lo $hexec l3ep3 ip addr add 20.20.20.1/32 dev lo +$hexec l3ep1 sysctl net.ipv4.conf.el3ep1llb1.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep2 sysctl net.ipv4.conf.el3ep2llb1.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep3 sysctl net.ipv4.conf.el3ep3llb1.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep1 sysctl net.ipv4.conf.ipip0.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep2 sysctl net.ipv4.conf.ipip0.rp_filter=0 2>&1 >> /dev/null +$hexec l3ep3 sysctl net.ipv4.conf.ipip0.rp_filter=0 2>&1 >> /dev/null + sleep 5 create_lb_rule llb1 20.20.20.1 --select=hash --tcp=8080:8080 --endpoints=56.56.56.1:1,57.57.57.1:1,58.58.58.1:1 --mode=dsr