]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add `extra_args` to nfs daemon 34330/head
authorMichael Fritch <mfritch@suse.com>
Tue, 31 Mar 2020 23:39:03 +0000 (17:39 -0600)
committerMichael Fritch <mfritch@suse.com>
Tue, 31 Mar 2020 23:39:03 +0000 (17:39 -0600)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm
src/pybind/mgr/cephadm/nfs.py

index 94bf18f62c511a8199868d261c8dcdcfc2170ea6..065c84caf59a8270916f1ce0225f0c3d4142f2ba 100755 (executable)
@@ -190,6 +190,7 @@ class NFSGanesha(object):
         # config-json options
         self.pool = json_get('pool', require=True)
         self.namespace = json_get('namespace')
+        self.extra_args = json_get('extra_args', [])
         self.files = json_get('files', {})
 
         # validate the supplied args
@@ -264,6 +265,10 @@ class NFSGanesha(object):
             cname = '%s-%s' % (cname, desc)
         return cname
 
+    def get_daemon_args(self):
+        # type: () -> List[str]
+        return self.daemon_args + self.extra_args
+
     def get_file_content(self, fname):
         # type: (str) -> str
         """Normalize the json file content into a string"""
@@ -1276,7 +1281,8 @@ def get_daemon_args(fsid, daemon_type, daemon_id):
             for peer in peers:
                 r += ["--cluster.peer={}".format(peer)]
     elif daemon_type == NFSGanesha.daemon_type:
-        r += NFSGanesha.daemon_args
+        nfs_ganesha = NFSGanesha.init(fsid, daemon_id)
+        r += nfs_ganesha.get_daemon_args()
 
     return r
 
index ff748fa57463560250f6035bc51f4c6cef727f2e..0f8acc0362c66fc842691a4ddeea63d1ed1d9c9a 100644 (file)
@@ -121,6 +121,7 @@ RADOS_URLS {{
         config = {'pool' : self.spec.pool} # type: Dict
         if self.spec.namespace:
             config['namespace'] = self.spec.namespace
+        config['extra_args'] = ['-N', 'NIV_EVENT']
         config['files'] = {
             'ganesha.conf' : self.get_ganesha_conf(),
         }