[pve-devel] [PATCH] QemuMigrate: phase2_cleanup misses migrate_cancel

Dietmar Maurer dietmar at proxmox.com
Wed Jan 2 06:54:00 CET 2013


applied, thanks.

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Stefan Priebe
> Sent: Dienstag, 01. Jänner 2013 23:00
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] QemuMigrate: phase2_cleanup misses
> migrate_cancel
> 
> 
> Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
> ---
>  PVE/QemuMigrate.pm |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index
> 96dcae3..55dc2ad 100644
> --- a/PVE/QemuMigrate.pm
> +++ b/PVE/QemuMigrate.pm
> @@ -475,6 +475,12 @@ sub phase2_cleanup {
> 
>      $self->log('info', "aborting phase 2 - cleanup resources");
> 
> +    $self->log('info', "migrate_cancel");
> +    eval {
> +	PVE::QemuServer::vm_mon_cmd_nocheck($vmid, "migrate_cancel");
> +    };
> +    $self->log('info', "migrate_cancel error: $@") if $@;
> +
>      my $conf = $self->{vmconf};
>      delete $conf->{lock};
>      eval { PVE::QemuServer::update_config_nolock($vmid, $conf, 1) };
> --
> 1.7.10.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