]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix mdsmap lookup 28445/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 24 Oct 2017 18:36:06 +0000 (11:36 -0700)
committerJan Fajerski <jfajerski@suse.com>
Wed, 12 Jun 2019 13:00:44 +0000 (15:00 +0200)
We were returning the file system structure and not the mdsmap.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0e4027efdc4fd84ae3cf7eef0e2374b3429f111d)

src/pybind/ceph_volume_client.py

index 33d9516d5ae47076ac9f1492451bafca3576b431..06380ef417f486cb1b32515b9365cb4904171c79 100644 (file)
@@ -380,7 +380,7 @@ class CephFSVolumeClient(object):
 
     def get_mds_map(self):
         fs_map = self._rados_command("fs dump", {})
-        return fs_map['filesystems'][0]
+        return fs_map['filesystems'][0]['mdsmap']
 
     def evict(self, auth_id, timeout=30, volume_path=None):
         """