Skip to content

Commit

Permalink
test/includes/microcloud: workaround for LXD shutdown bug (debug)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Apr 16, 2024
1 parent 7349f9f commit 05ada4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 05ada4e

Please sign in to comment.