Skip to content

Commit

Permalink
Pre-load ipip kernel module to prevent flake.
Browse files Browse the repository at this point in the history
  • Loading branch information
fasaxc committed May 18, 2021
1 parent c334f05 commit 0e3e12e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .semaphore/create-test-vm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function create-vm() {
gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- sudo apt-get update -y && \
gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- sudo apt-get install -y --no-install-recommends git make iproute2 docker.io wireguard && \
gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- sudo usermod -a -G docker ubuntu && \
gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- sudo modprobe ipip && \
set +x && \
echo "$DOCKERHUB_PASSWORD" | gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- docker login --username "$DOCKERHUB_USERNAME" --password-stdin && \
set -x && \
Expand Down
3 changes: 3 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ blocks:
- docker load -i /tmp/calico-felix.tar
- rm /tmp/calico-felix.tar
- touch bin/*
# Pre-loading the IPIP module prevents a flake where the first felix to use IPIP loads the module and
# routing in that first felix container chooses different source IPs than the tests are expecting.
- sudo modprobe ipip
jobs:
- name: FV Test matrix
commands:
Expand Down

0 comments on commit 0e3e12e

Please sign in to comment.