From 4853aa7d42f49850b718a20154817c3f11f9455a Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 27 Jul 2018 16:53:53 -0700 Subject: [PATCH] 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 --- src/pybind/ceph_volume_client.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5