]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/cephadm: remove mds auth cap for nfs recovery db cred
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 May 2020 23:15:29 +0000 (16:15 -0700)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 2 Jun 2020 12:58:27 +0000 (14:58 +0200)
There's no reason for this cap to be used for talking to the MDS. The
individual exports have their own caps for talking to the file system.

Fixes: https://tracker.ceph.com/issues/45632
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit dac13abf320810bf4fd6bca653af353df78af48f)

src/pybind/mgr/cephadm/services/nfs.py

index ee847c3e131dc6f97a9ed86aa0852613a392d0a3..cc786d33ed6a00f6dbbcd6ba0720566d62c50cf3 100644 (file)
@@ -124,8 +124,7 @@ class NFSGanesha(object):
             'prefix': 'auth caps',
             'entity': entity,
             'caps': ['mon', 'allow r',
-                     'osd', osd_caps,
-                     'mds', 'allow rw'],
+                     'osd', osd_caps],
         })
 
         if ret != 0: