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 <[email protected]>
  • Loading branch information
simondeziel committed Apr 17, 2024
1 parent 0df443c commit f352f42
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 "::warning:: ==> 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 f352f42

Please sign in to comment.