Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cicd: initial support for redhat runner (tcp) #620

Merged
merged 6 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading