From 7fd5c330f432a80e8d31ddbd4e0b71b7026f82f1 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Thu, 4 Apr 2024 18:23:27 +0900 Subject: [PATCH 1/6] cicd: initial tcp scenario for redhat runner --- .github/workflows/tcp-sanity-rh9.yml | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/tcp-sanity-rh9.yml diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml new file mode 100644 index 000000000..e2acfd0f7 --- /dev/null +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -0,0 +1,59 @@ +name: TCP-LB-Sanity-CI-RH9 + +on: + schedule: + # Runs "At 01:00 UTC every day-of-week" + - cron: '0 10 * * *' + 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] + 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 - From 8223b7e94f3aea116618a426cbd788fafa298e86 Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:57:08 +0900 Subject: [PATCH 2/6] Update tcp-sanity-rh9.yml --- .github/workflows/tcp-sanity-rh9.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml index e2acfd0f7..2a755add4 100644 --- a/.github/workflows/tcp-sanity-rh9.yml +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -57,3 +57,7 @@ jobs: ./validation.sh ./rmconfig.sh cd - + - name: Clean test-bed + if: success() || failure() + run: | + sudo docker image rm ghcr.io/loxilb-io/loxilb:latest From fa7334bdd9e5dce09d3d85c9a406f113faf8f1ad Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Thu, 4 Apr 2024 20:03:32 +0900 Subject: [PATCH 3/6] Update tcp-sanity-rh9.yml --- .github/workflows/tcp-sanity-rh9.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml index 2a755add4..f2cc33bd9 100644 --- a/.github/workflows/tcp-sanity-rh9.yml +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -1,9 +1,9 @@ name: TCP-LB-Sanity-CI-RH9 on: - schedule: + #schedule: # Runs "At 01:00 UTC every day-of-week" - - cron: '0 10 * * *' + #- cron: '0 10 * * *' workflow_dispatch: inputs: logLevel: From aad0075832c0cb8f72f052cc339249cb3ae28b5b Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Thu, 4 Apr 2024 23:42:39 +0900 Subject: [PATCH 4/6] cicd: updated tcplbdsr2 config --- cicd/tcplbdsr2/config.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 From 5a94e661e7eacd7f124f52b9dc60ca6b17720429 Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Thu, 4 Apr 2024 23:44:51 +0900 Subject: [PATCH 5/6] cicd: updated tcplbl3dsr config --- cicd/tcplbl3dsr/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 From 35b017db435dc747ab67da3aeb49d87437278204 Mon Sep 17 00:00:00 2001 From: TrekkieCoder <111065900+TrekkieCoder@users.noreply.github.com> Date: Fri, 5 Apr 2024 00:10:41 +0900 Subject: [PATCH 6/6] cicd: update tcp-sanity-rh9.yml --- .github/workflows/tcp-sanity-rh9.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml index f2cc33bd9..61ef40ec0 100644 --- a/.github/workflows/tcp-sanity-rh9.yml +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -1,9 +1,9 @@ name: TCP-LB-Sanity-CI-RH9 on: - #schedule: - # Runs "At 01:00 UTC every day-of-week" - #- cron: '0 10 * * *' + schedule: + # Runs "At 14:00 UTC every day-of-week" + - cron: '0 14 * * *' workflow_dispatch: inputs: logLevel: @@ -17,6 +17,8 @@ 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: