[pve-devel] [PATCH] QemuMigrate: phase2_cleanup misses migrate_cancel
Stefan Priebe
s.priebe at profihost.ag
Tue Jan 1 22:59:55 CET 2013
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
More information about the pve-devel
mailing list