From 451f10be901a7f9a80ac25496d6ef69e82e6674e Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Tue, 9 Apr 2024 09:29:43 +0900 Subject: [PATCH] cicd: cleanup fixes in gh-actions yml for redhat runner --- .github/workflows/advanced-lb-sanity-rh9.yml | 1 + .github/workflows/basic-sanity-rh9.yml | 1 + .github/workflows/ipsec-sanity-rh9.yml | 1 + .github/workflows/liveness-sanity-rh9.yml | 1 + .github/workflows/scale-sanity-rh9.yml | 1 + .github/workflows/sctp-sanity-rh9.yml | 1 + .github/workflows/tcp-sanity-rh9.yml | 1 + .github/workflows/udp-sanity-rh9.yml | 1 + 8 files changed, 8 insertions(+) diff --git a/.github/workflows/advanced-lb-sanity-rh9.yml b/.github/workflows/advanced-lb-sanity-rh9.yml index 2d698de6a..0de4bdf68 100644 --- a/.github/workflows/advanced-lb-sanity-rh9.yml +++ b/.github/workflows/advanced-lb-sanity-rh9.yml @@ -80,6 +80,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/basic-sanity-rh9.yml b/.github/workflows/basic-sanity-rh9.yml index 3eaac4c63..76f62a3f1 100644 --- a/.github/workflows/basic-sanity-rh9.yml +++ b/.github/workflows/basic-sanity-rh9.yml @@ -36,6 +36,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/ipsec-sanity-rh9.yml b/.github/workflows/ipsec-sanity-rh9.yml index f573880b2..dae4a911f 100644 --- a/.github/workflows/ipsec-sanity-rh9.yml +++ b/.github/workflows/ipsec-sanity-rh9.yml @@ -45,6 +45,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/liveness-sanity-rh9.yml b/.github/workflows/liveness-sanity-rh9.yml index 9b227f088..d8246dddc 100644 --- a/.github/workflows/liveness-sanity-rh9.yml +++ b/.github/workflows/liveness-sanity-rh9.yml @@ -68,6 +68,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/scale-sanity-rh9.yml b/.github/workflows/scale-sanity-rh9.yml index 5d5bf8475..6439e524c 100644 --- a/.github/workflows/scale-sanity-rh9.yml +++ b/.github/workflows/scale-sanity-rh9.yml @@ -32,6 +32,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/sctp-sanity-rh9.yml b/.github/workflows/sctp-sanity-rh9.yml index 639e82717..497a32bcd 100644 --- a/.github/workflows/sctp-sanity-rh9.yml +++ b/.github/workflows/sctp-sanity-rh9.yml @@ -44,6 +44,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/tcp-sanity-rh9.yml b/.github/workflows/tcp-sanity-rh9.yml index 067fd9bd6..767e26af4 100644 --- a/.github/workflows/tcp-sanity-rh9.yml +++ b/.github/workflows/tcp-sanity-rh9.yml @@ -62,6 +62,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q) diff --git a/.github/workflows/udp-sanity-rh9.yml b/.github/workflows/udp-sanity-rh9.yml index 991b9deb3..c5899d432 100644 --- a/.github/workflows/udp-sanity-rh9.yml +++ b/.github/workflows/udp-sanity-rh9.yml @@ -32,6 +32,7 @@ jobs: - name: Clean test-bed if: success() || failure() run: | + sudo ip -all netns delete dps=$(sudo docker ps -a -q) if [[ x$dps != x ]]; then sudo docker stop $(sudo docker ps -a -q)