From 985a5f483df7caa58fde9153ce11896e378adf26 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 17 Jun 2014 07:44:05 +0200 Subject: [PATCH] migration : add setup state 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 --- PVE/QemuMigrate.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 9c3d68ac..a49cdccf 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;