From: Venky Shankar Date: Tue, 9 Mar 2021 11:18:20 +0000 (+0530) Subject: pybind/mirroring: set libcephfs handle root uid/gid as 0:0 X-Git-Tag: v16.2.0~34^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=893f17ce007f7b667bfb09d421f853da4b05879a;p=ceph.git pybind/mirroring: set libcephfs handle root uid/gid as 0:0 Signed-off-by: Venky Shankar (cherry picked from commit 928e3c49338078ce1b28e66b318a39dc9e2cc724) --- diff --git a/src/pybind/mgr/mirroring/fs/utils.py b/src/pybind/mgr/mirroring/fs/utils.py index b9fa59051eb9..023622a046fd 100644 --- a/src/pybind/mgr/mirroring/fs/utils.py +++ b/src/pybind/mgr/mirroring/fs/utils.py @@ -49,6 +49,8 @@ def connect_to_filesystem(client_name, cluster_name, fs_name, desc, conf_dct={}) cluster = connect_to_cluster(client_name, cluster_name, conf_dct, desc) log.debug(f'connecting to {desc} filesystem: {fs_name}') fs = cephfs.LibCephFS(rados_inst=cluster) + fs.conf_set("client_mount_uid", "0") + fs.conf_set("client_mount_gid", "0") log.debug('CephFS initializing...') fs.init() log.debug('CephFS mounting...')