]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: add delay for MDSMap to be distributed 23297/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 27 Jul 2018 23:53:53 +0000 (16:53 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 28 Jul 2018 00:02:48 +0000 (17:02 -0700)
Otherwise the setxattr will fail if the mds has not yet received the MDSMap
which adds the new data pool.

Fixes: https://tracker.ceph.com/issues/25141
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/pybind/ceph_volume_client.py

index 2d0efe5e64b716e2ccc3a365dd9b5318984be73c..3563ee226ef11fe2b49e5b825e11be2415d60d61 100644 (file)
@@ -633,6 +633,7 @@ class CephFSVolumeClient(object):
                     'fs_name': mds_map['fs_name'],
                     'pool': pool_name
                 })
+            time.sleep(5) # time for MDSMap to be distributed
             self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
 
         # enforce security isolation, use separate namespace for this volume