[pve-devel] applied: [PATCH qemu-sever] Check array existed before use.

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Feb 28 12:56:38 CET 2017


On Thu, Feb 23, 2017 at 02:44:54PM +0100, Wolfgang Link wrote:
> This triggers if a qemu guest has a local unused disk.
> The disk will migrate by offline disk migration, so it is not in the target_drives.
> ---
>  PVE/QemuMigrate.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
> index cd1fc2b..bcd9c84 100644
> --- a/PVE/QemuMigrate.pm
> +++ b/PVE/QemuMigrate.pm
> @@ -592,7 +592,7 @@ sub phase2 {
>  
>      my $start = time();
>  
> -    if ($self->{opts}->{targetstorage}) {
> +    if ($self->{opts}->{targetstorage} && defined $self->{online_local_volumes}) {
>  	$self->{storage_migration} = 1;
>  	$self->{storage_migration_jobs} = {};
>  	$self->log('info', "starting storage migration");
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list