Skip to content

Commit

Permalink
Merge pull request #199 from roosterfish/add_move_tests
Browse files Browse the repository at this point in the history
tests/storage-vm: Add VM move test between storage pools
  • Loading branch information
tomponline authored Jun 17, 2024
2 parents a04673b + 1dc7eab commit 4f8986d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,20 @@ for poolDriver in $poolDriverList; do
echo "==> Checking VM snapshot copy root disk size is 8GiB"
[ "$(($(lxc exec v2 -- blockdev --getsize64 /dev/sda) / GiB))" -eq "8" ]
fi
lxc delete -f v2

echo "==> Checking moving VM to a different storage pool"
lxc copy v1 v2 --stateless
lxc move v2 -s "${poolName}2"
lxc start v2
waitInstanceReady v2
lxc stop -f v2

echo "==> Checking moving VM back to the original storage pool"
lxc move v2 -s "${poolName}"
lxc start v2
waitInstanceReady v2

lxc delete -f v2
lxc delete v1/snap0
lxc remote rm localhost
Expand Down

0 comments on commit 4f8986d

Please sign in to comment.