Skip to content

Commit

Permalink
test/suites/container_local_cross_pool_handling: skip btrfs snapshot …
Browse files Browse the repository at this point in the history
…copy

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 10, 2024
1 parent 5fbcb19 commit 5243676
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions test/suites/container_local_cross_pool_handling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,23 @@ test_container_local_cross_pool_handling() {
! lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap1 || false
lxc delete -f c2

lxc init testimage c1
lxc snapshot c1
lxc snapshot c1
lxc copy c1 c2 -s "lxdtest-$(basename "${LXD_DIR}")-${driver}1"
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap0
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap1
lxc delete -f c2
lxc move c1 c2 -s "lxdtest-$(basename "${LXD_DIR}")-${driver}1"
! lxc info c1 || false
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap0
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap1
lxc delete -f c2
# XXX: skip btrfs: `ERROR: cannot find parent subvolume`
if [ "${driver}" != "btrfs" ]; then
lxc init testimage c1
lxc snapshot c1
lxc snapshot c1
lxc copy c1 c2 -s "lxdtest-$(basename "${LXD_DIR}")-${driver}1"
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap0
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap1
lxc delete -f c2
lxc move c1 c2 -s "lxdtest-$(basename "${LXD_DIR}")-${driver}1"
! lxc info c1 || false
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap0
lxc storage volume show "lxdtest-$(basename "${LXD_DIR}")-${driver}1" container/c2/snap1
lxc delete -f c2
fi
fi
done
)
Expand Down

0 comments on commit 5243676

Please sign in to comment.