]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: add rbd to whitelist of migration-safe formats
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 2 Jul 2012 18:55:26 +0000 (11:55 -0700)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 23:22:51 +0000 (19:22 -0400)
QEMU (and librbd) flush the cache on the source before the
destination starts, and the destination does not read any
changeable data before that, so live migration with rbd caching
is safe.

This makes 'virsh migrate' work with rbd and caching without the
--unsafe flag.

Reported-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 78290b1641e95304c862062ee0aca95395c5926c)

.mailmap
AUTHORS
src/qemu/qemu_migration.c

index 65e2c10871af8b32cfdaab97d116e1fbe40cbe61..a6744acb72fa08f7b52cfa8d322e6d3e89601730 100644 (file)
--- a/.mailmap
+++ b/.mailmap
@@ -28,7 +28,8 @@
 <supriyak@linux.vnet.ibm.com> <supriyak@in.ibm.com>
 <neil@aldur.co.uk> <neil@brightbox.co.uk>
 <stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com>
-<josh.durgin@dreamhost.com> <joshd@hq.newdream.net>
+<josh.durgin@inktank.com> <joshd@hq.newdream.net>
+<josh.durgin@inktank.com> <josh.durgin@dreamhost.com>
 
 # Name consolidation:
 # Preferred author spelling <preferred email>
diff --git a/AUTHORS b/AUTHORS
index fe19382cf6016e4dc9e3b5914d2a729b251cbbf1..57e124d5820893eeef26c2f4be3d826afe686825 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -143,7 +143,7 @@ Patches have also been contributed by:
   Hu Tao               <hutao@cn.fujitsu.com>
   Laurent Léonard      <laurent@open-minds.org>
   MORITA Kazutaka      <morita.kazutaka@lab.ntt.co.jp>
-  Josh Durgin          <josh.durgin@dreamhost.com>
+  Josh Durgin          <josh.durgin@inktank.com>
   Roopa Prabhu         <roprabhu@cisco.com>
   Paweł Krześniak      <pawel.krzesniak@gmail.com>
   Kay Schubert         <kayegypt@web.de>
index aee613e9935ad38048050daa94c99c6a06b4d385..10c32c582da5f81f5e53ca2a7284b220342fa98f 100644 (file)
@@ -846,6 +846,9 @@ qemuMigrationIsSafe(virDomainDefPtr def)
                     continue;
                 else if (cfs < 0)
                     return false;
+            } else if (disk->type == VIR_DOMAIN_DISK_TYPE_NETWORK &&
+                       disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_RBD) {
+                continue;
             }
 
             qemuReportError(VIR_ERR_MIGRATE_UNSAFE, "%s",