Hello,
we are getting similar issue again while moving the storage volume,
The error on the source machine is as follows:
root@machine1:~# lxc storage volume move default/vm-a machine2:default/vm-a
Error: Failed storage volume creation: Error transferring storage volume: Got error reading source
at the same time on the destination machine an error popup as below and the lxd is getting down.
ERROR [2022-05-25T14:28:18+02:00] Error during migration sink err="Got error reading source"
panic: runtime error: slice bounds out of range [:-1]
goroutine 130686 [running]:
io.ReadAll({0x7f47c46af3f0, 0xc001246040})
/usr/local/go/src/io/io.go:646 +0x197
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/lxc/lxd/lxd/storage/drivers.(*zfs).CreateVolumeFromMigration(_, {{0xc000e140f0, 0x10}, {0xc000e140a0, 0x7}, 0xc000a5a450, {0x183abad, 0x6}, {0xc0010e7800, 0xa}, ...}, ...)
/root/lxd5.0/lxd-5.0.0/lxd/storage/drivers/driver_zfs_volumes.go:708 +0x1ac
github.com/lxc/lxd/lxd/storage.(*lxdBackend).CreateCustomVolumeFromMigration(0xc000172180, {0xc001181300, 0x7}, {0x1b4ae50, 0xc001246040}, {{0xc0010e77c8, 0x8}, {0x0, 0x0}, 0xc000afdda0, ...}, ...)
/root/lxd5.0/lxd-5.0.0/lxd/storage/backend_lxd.go:3435 +0xeb6
main.(*migrationSink).DoStorage.func1(_, _, {{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...})
/root/lxd5.0/lxd-5.0.0/lxd/migrate_storage_volumes.go:327 +0x264
main.(*migrationSink).DoStorage.func2.1()
/root/lxd5.0/lxd-5.0.0/lxd/migrate_storage_volumes.go:403 +0x166
created by main.(*migrationSink).DoStorage.func2
/root/lxd5.0/lxd-5.0.0/lxd/migrate_storage_volumes.go:385 +0x118
Any help would be much appreciated.
Thank you