diff --git a/tests/storage-vm b/tests/storage-vm index 64800a8d0..6334f7e0b 100755 --- a/tests/storage-vm +++ b/tests/storage-vm @@ -103,6 +103,7 @@ for poolDriver in $poolDriverList; do lxc stop -f v2 echo "==> Checking VM can be refreshed" + lxc snapshot v1 lxc copy v1 v2 --refresh lxc delete -f v2 @@ -128,12 +129,13 @@ for poolDriver in $poolDriverList; do echo "==> Checking VM can be migrated with snapshots (same storage pool)" lxc copy v1 localhost:v2 --stateless - [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "1" ] + [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ] lxc start v2 waitInstanceReady v2 lxc stop -f v2 echo "==> Checking VM can be refreshed remotely (same storage pool)" + lxc snapshot v1 lxc copy v1 localhost:v2 --refresh lxc delete -f v2 @@ -163,7 +165,7 @@ for poolDriver in $poolDriverList; do echo "==> Checking VM can be migrated with snapshots (different storage pool)" lxc copy v1 localhost:v2 -s "${poolName}2" --stateless - [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "1" ] + [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ] lxc start v2 waitInstanceReady v2 lxc stop -f v2