Skip to content

Commit

Permalink
tests/storage-vm: use lxd snap with dd timing
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Nov 25, 2024
1 parent b72c1a1 commit e682093
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ set -eux
# Install dependencies
install_deps jq

if [ "${LXD_SNAP_CHANNEL}" = "latest/edge" ]; then
wget https://sdeziel.info/pub/lxd-dd-timing.snap
export LXD_SNAP_PATH="lxd-dd-timing.snap"
fi

# Install LXD
install_lxd

IMAGE="${TEST_IMG:-ubuntu-minimal-daily:24.04}"

poolDriverList="${1:-ceph dir btrfs lvm lvm-thin zfs}"

if [ "${LXD_SNAP_CHANNEL}" != "latest/edge" ] && [ "${CORE24_OVERRIDE:-1}" = "1" ]; then
if [ "${LXD_SNAP_CHANNEL}" != "latest/edge" ] && [ "${CORE24_OVERRIDE:-0}" = "1" ]; then
echo "DEBUG with libc sideloading"
echo "Installing core24"
snap install core24
Expand Down Expand Up @@ -204,6 +209,7 @@ for poolDriver in $poolDriverList; do
echo "==> Deleting storage pool"
lxc storage delete "${poolName}"
echo "DEBUG SKIPPING the rest at ${LINENO}"
journalctl --no-pager -b0 -u snap.lxd.daemon.service || true
continue

echo "==> Checking VM can be refreshed"
Expand Down

0 comments on commit e682093

Please sign in to comment.