Commit 3324f0af authored by Lars Beckers's avatar Lars Beckers
Browse files

add ganeti upstream patch for ceph mimic compat

parent 8b6917f3
Pipeline #1836 canceled with stage
in 9 seconds
From fa9a8fc141334b176380370b9622a28ad4a066fb Mon Sep 17 00:00:00 2001
From: Ansgar Jazdzewski <>
Date: Tue, 19 Feb 2019 10:31:07 +0100
Subject: [PATCH] fix 'rbd showmapped' for ceph mimic
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The json ouput changed from list to dict
* - The rbd CLI’s
showmapped JSON and XML output has changed.)
lib/storage/ | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/storage/ b/lib/storage/
index c7d5f3b6d..7aa09cee6 100644
--- a/lib/storage/
+++ b/lib/storage/
@@ -1064,8 +1064,12 @@ def _ParseRbdShowmappedJson(output, volume_pool, volume_name):
except ValueError, err:
base.ThrowError("Unable to parse JSON data: %s" % err)
+ # since ceph mimic the json output changed from dict to list
+ if isinstance(devices, dict):
+ devices = devices.values()
rbd_dev = None
- for d in devices.values(): # pylint: disable=E1103
+ for d in devices:
name = d["name"]
except KeyError:
......@@ -8,6 +8,7 @@ import_patches ganeti
dch_custom "Remove blockdev storage from the movable and mirrored devices lists."
dch_custom "Increase maximum disk count per instance."
dch_custom "Add support for disk cache usage with rbd devices."
dch_custom "Add upstream patch for Ceph mimic compatibility."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment