Skip to content

Commit

Permalink
Merge pull request metal3-io#829 from Nordix/fix-calico-crashloop/adil
Browse files Browse the repository at this point in the history
🌱 Fix Calico CrashLoopBackOff in ubuntu e2e tests
  • Loading branch information
metal3-io-bot authored Jul 30, 2024
2 parents 42fa665 + 8af8489 commit 1d5b04e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env bash

set -eux

export USERDATA_HOSTNAME=${HOSTNAME:-"metal3node-test"}

sudo sed -i "/^127.0.0.1/c\127.0.0.1 ${USERDATA_HOSTNAME}" /etc/hosts
sudo sed -i "/^127.0.0.1/ s/$/ ${USERDATA_HOSTNAME}/" /etc/hosts
sudo sed -i "s/MACAddressPolicy=persistent/MACAddressPolicy=none/g" /usr/lib/systemd/network/99-default.link

for container in $(env | grep "CALICO_*" | cut -f2 -d'='); do
Expand Down

0 comments on commit 1d5b04e

Please sign in to comment.