From 52436762830999a221e6dfcbb322310edee822dc Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 10 Jul 2024 15:52:30 -0400 Subject: [PATCH] test/suites/container_local_cross_pool_handling: skip btrfs snapshot copy Signed-off-by: Simon Deziel --- .../container_local_cross_pool_handling.sh | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/test/suites/container_local_cross_pool_handling.sh b/test/suites/container_local_cross_pool_handling.sh index 03719f3f5e93..4747fd8a3630 100644 --- a/test/suites/container_local_cross_pool_handling.sh +++ b/test/suites/container_local_cross_pool_handling.sh @@ -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 )