[pve-devel] [PATCH v3 qemu-server 4/7] tests: add migration alias check

Fiona Ebner f.ebner at proxmox.com
Fri Jun 2 13:29:06 CEST 2023


Am 01.06.23 um 15:53 schrieb Aaron Lauterer:
> @@ -351,9 +387,9 @@ my $source_vdisks = {
>  	{
>  	    'ctime' => '1589277334',
>  	    'format' => 'raw',
> -	    'size' => 108003328,
> -	    'vmid' => '111',
> -	    'volid' => 'local-zfs:vm-111-disk-0',
> +	    'size' => 4294967296,
> +	    'vmid' => '123',
> +	    'volid' => 'local-zfs:vm-123-disk-0',

Why is this changed?

>  	},
>  	{
>  	    'format' => 'raw',
> @@ -364,6 +400,24 @@ my $source_vdisks = {
>  	    'volid' => 'local-zfs:vm-4567-disk-0',
>  	},
>      ],
> +    'alias-zfs' => [
> +	{
> +	    'ctime' => '1589277334',
> +	    'format' => 'raw',
> +	    'size' => 108003328,
> +	    'vmid' => '111',
> +	    'volid' => 'local-zfs:vm-111-disk-0',
> +	},
> +    ],
> +    'alias-zfs-2' => [
> +	{
> +	    'ctime' => '1589277334',
> +	    'format' => 'raw',
> +	    'size' => 108003328,
> +	    'vmid' => '111',
> +	    'volid' => 'local-zfs:vm-111-disk-0',
> +	},
> +    ],

Those are added for 111 instead of 123 and the volids also are not
corresponding to the storage.

If you'd die in the mocked version of volume_size_info when not finding
the volid, you would have noticed ;)





More information about the pve-devel mailing list