From b2f4073921d82466a5572507ce788d16d51c63de Mon Sep 17 00:00:00 2001 From: Jack Ivanov <17044561+jackivanov@users.noreply.github.com> Date: Mon, 13 Dec 2021 21:54:57 +0000 Subject: [PATCH] wait for lxc network --- tests/pre-deploy.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/pre-deploy.sh b/tests/pre-deploy.sh index 35cbeb8..e5ce7c0 100755 --- a/tests/pre-deploy.sh +++ b/tests/pre-deploy.sh @@ -25,6 +25,12 @@ lxc network attach lxdbr0 algo eth0 eth0 lxc config device set algo eth0 ipv4.address 10.0.8.100 lxc start algo +ip addr + +until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do + sleep 3 +done + case ${UBUNTU_VERSION} in 20.04) lxc exec algo -- apt remove snapd --purge -y || true @@ -34,10 +40,4 @@ case ${UBUNTU_VERSION} in ;; esac -ip addr - -until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do - sleep 3 -done - lxc list