From: Patrick Donnelly Date: Fri, 27 Jul 2018 23:53:53 +0000 (-0700) Subject: ceph_volume_client: add delay for MDSMap to be distributed X-Git-Tag: v12.2.9~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e0cfe246769604b674ba137ade381aa1e2670397;p=ceph.git ceph_volume_client: add delay for MDSMap to be distributed 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 (cherry picked from commit 4853aa7d42f49850b718a20154817c3f11f9455a) --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index d38f72be9a37..5203f1c0579c 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -629,6 +629,7 @@ class CephFSVolumeClient(object): self._rados_command("mds add_data_pool", { '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