Skip to content

Commit

Permalink
github: unload br_netfilter module (#316)
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
  • Loading branch information
tomponline authored Oct 10, 2024
2 parents 17f53f1 + 5927206 commit 374b1ef
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 374b1ef

Please sign in to comment.