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: v14.0.1~730^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4853aa7d42f49850b718a20154817c3f11f9455a;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 --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 2d0efe5e64b71..3563ee226ef11 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -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