[pve-devel] [PATCH] migration : add setup state

Alexandre Derumier aderumier at odiso.com
Tue Jun 17 07:44:05 CEST 2014


since qemu 1.5, they are a new migration state : "setup"

it's mainly use for rdma migration, but slow vm can it see and hang on migration

http://git.qemu.org/?p=qemu.git;a=commit;h=3b6959506831193f37cc830c8e111b437c0d1380

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuMigrate.pm |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 9c3d68a..a49cdcc 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -446,6 +446,12 @@ sub phase2 {
 	    }
 	    die "too many query migrate failures - aborting\n";
 	}
+
+        if ($stat->{status} =~ m/^(setup)$/im) {
+            sleep(1);
+            next;
+        }
+
 	if ($stat->{status} =~ m/^(active|completed|failed|cancelled)$/im) {
 	    $merr = undef;
 	    $err_count = 0;
-- 
1.7.10.4




More information about the pve-devel mailing list