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>
(cherry picked from commit
4853aa7d42f49850b718a20154817c3f11f9455a)
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