]> git.proxmox.com Git - qemu-server.git/commitdiff
migration : add setup state
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 17 Jun 2014 05:44:05 +0000 (07:44 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Jun 2014 06:57:31 +0000 (08:57 +0200)
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@odiso.com>
PVE/QemuMigrate.pm

index 9c3d68acdb4de29d6e1d7db050dbe07a5571b7f9..a49cdccff825f0f95c747eb10557e8055edbb114 100644 (file)
@@ -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;