From 05ada4ea5325083be0fd8f33062d168321cdb1b6 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 16 Apr 2024 18:04:17 -0400 Subject: [PATCH] test/includes/microcloud: workaround for LXD shutdown bug (debug) Signed-off-by: Simon Deziel --- microcloud/test/includes/microcloud.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/microcloud/test/includes/microcloud.sh b/microcloud/test/includes/microcloud.sh index a1820e67b..4cb7dbd70 100644 --- a/microcloud/test/includes/microcloud.sh +++ b/microcloud/test/includes/microcloud.sh @@ -968,6 +968,9 @@ setup_system() { # Create a snapshot so we can restore to this point. if [ "${SNAPSHOT_RESTORE}" = 1 ]; then + echo "==> XXX: working around LXD shutdown bug" + lxc exec "${name}" -- systemctl stop snap.lxd.daemon.service snap.lxd.daemon.unix.socket + lxc stop "${name}" lxc snapshot "${name}" snap0 lxc start "${name}"