summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2012-07-08 04:23:26 +0000
committerDoug Goldstein <cardoe@gentoo.org>2012-07-08 04:23:26 +0000
commita31161f5a318a54bc66c5590f997e84723e59767 (patch)
treebfc0cc1f176257803f096ddcd1c33c65d74c1e74 /app-emulation
parentAdd support for the rados block device (diff)
downloadgentoo-2-a31161f5a318a54bc66c5590f997e84723e59767.tar.gz
gentoo-2-a31161f5a318a54bc66c5590f997e84723e59767.tar.bz2
gentoo-2-a31161f5a318a54bc66c5590f997e84723e59767.zip
Add a patch to whitelist rbd migration since its now good in 0.9.13
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/libvirt/ChangeLog7
-rw-r--r--app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch65
-rw-r--r--app-emulation/libvirt/libvirt-0.9.13.ebuild4
3 files changed, 74 insertions, 2 deletions
diff --git a/app-emulation/libvirt/ChangeLog b/app-emulation/libvirt/ChangeLog
index d82990b8f6d7..b2e692cee6b1 100644
--- a/app-emulation/libvirt/ChangeLog
+++ b/app-emulation/libvirt/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/libvirt
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.195 2012/07/08 04:12:16 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.196 2012/07/08 04:23:26 cardoe Exp $
+
+ 07 Jul 2012; Doug Goldstein <cardoe@gentoo.org> libvirt-0.9.13.ebuild,
+ +files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.pat
+ ch:
+ Add a patch to whitelist rbd migration since its now good in 0.9.13
07 Jul 2012; Doug Goldstein <cardoe@gentoo.org> libvirt-0.9.13.ebuild,
metadata.xml:
diff --git a/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch b/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch
new file mode 100644
index 000000000000..982d49fa2b61
--- /dev/null
+++ b/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch
@@ -0,0 +1,65 @@
+From 78290b1641e95304c862062ee0aca95395c5926c Mon Sep 17 00:00:00 2001
+From: Josh Durgin <josh.durgin@inktank.com>
+Date: Mon, 2 Jul 2012 11:55:26 -0700
+Subject: [PATCH 01/24] qemu: add rbd to whitelist of migration-safe formats
+
+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>
+---
+ .mailmap | 3 ++-
+ AUTHORS | 2 +-
+ src/qemu/qemu_migration.c | 3 +++
+ 3 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/.mailmap b/.mailmap
+index 65e2c10..a6744ac 100644
+--- 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 375db24..0e179a9 100644
+--- a/AUTHORS
++++ b/AUTHORS
+@@ -144,7 +144,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>
+diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
+index 48369d6..f51c99a 100644
+--- a/src/qemu/qemu_migration.c
++++ b/src/qemu/qemu_migration.c
+@@ -847,6 +847,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",
+--
+1.7.8.6
+
diff --git a/app-emulation/libvirt/libvirt-0.9.13.ebuild b/app-emulation/libvirt/libvirt-0.9.13.ebuild
index b7b9e9b824a5..5c73c392d7ad 100644
--- a/app-emulation/libvirt/libvirt-0.9.13.ebuild
+++ b/app-emulation/libvirt/libvirt-0.9.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.9.13.ebuild,v 1.3 2012/07/08 04:12:16 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.9.13.ebuild,v 1.4 2012/07/08 04:23:26 cardoe Exp $
EAPI=4
@@ -160,6 +160,8 @@ src_prepare() {
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
epatch
+ epatch "${FILESDIR}/${P}-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch"
+
if [[ ${PV} = *9999* ]]; then
# git checkouts require bootstrapping to create the configure script.