Skip to content

Commit

Permalink
microcloud/test/includes/microcloud: Echo things
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Sep 14, 2023
1 parent 5687658 commit 6348581
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -796,31 +796,33 @@ setup_system() {
fi

# Install the snaps.
lxc exec "${name}" -- sh -ceux "apt-get update -y"
lxc exec "${name}" -- sh -ceux "apt-get install -y snapd curl jq zfsutils-linux"
echo lxc exec "${name}" "apt-get update -y"
lxc exec "${name}" -- sh -c "apt-get update -y"
echo lxc exec "${name}" "apt-get install -y snapd curl jq zfsutils-linux"
lxc exec "${name}" -- sh -c "apt-get install -y snapd curl jq zfsutils-linux"

echo lxc exec "${name}" "PATH=\$PATH:/snap/bin snap install snapd"
lxc exec "${name}" -- sh -ceux "PATH=\$PATH:/snap/bin snap install snapd"

# Snaps can occasionally fail to install properly, so repeatedly try.
echo "Loop snaps"
lxc exec ${name} -- sh -ceux "
export PATH=\$PATH:/snap/bin
while ! test -e /snap/bin/microceph ; do
echo Looping ceph
snap install microceph || true
sleep 1
done
while ! test -e /snap/bin/microovn ; do
echo Looping ovn
snap install microovn || true
sleep 1
done
while ! test -e /snap/bin/microovn ; do
snap install microovn || true
sleep 1
done
while ! test -e /snap/bin/lxd ; do
echo Looping lxd
snap install lxd --channel latest/stable --cohort='+' || true
sleep 1
done
Expand Down

0 comments on commit 6348581

Please sign in to comment.