Skip to content

Commit

Permalink
Merge pull request #620 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
cicd: initial support for redhat runner (tcp)
  • Loading branch information
UltraInstinct14 authored Apr 4, 2024
2 parents 1896f7e + 35b017d commit 6906e59
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/tcp-sanity-rh9.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions cicd/tcplbdsr2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions cicd/tcplbl3dsr/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6906e59

Please sign in to comment.