Skip to content

Commit

Permalink
github: unload br_netfilter module
Browse files Browse the repository at this point in the history
This modules is not normally loaded on stock Ubuntu installs but it is on GHA
runners.

Fixes canonical/lxd#13069

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Oct 10, 2024
1 parent 17f53f1 commit 5927206
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ jobs:
sudo ip link delete docker0
sudo nft flush ruleset || sudo iptables -I DOCKER-USER -j ACCEPT
- name: "Disable br_netfilter"
run: |
set -eux
# XXX: br_netfilter causes subtle issues by subjecting internal
# bridge traffic to NAT/MASQUERADING and IP filtering. This
# modules is not normally loaded on stock Ubuntu installs but it
# is on GHA runners.
lsmod | grep -qw ^br_netfilter && sudo modprobe -r br_netfilter
- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit 5927206

Please sign in to comment.