]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: add NFSv3 protocol to cephadm generated ganesha conf
authorAdam King <adking@redhat.com>
Wed, 21 Feb 2024 15:25:23 +0000 (10:25 -0500)
committerAdam King <adking@redhat.com>
Mon, 21 Oct 2024 16:08:04 +0000 (12:08 -0400)
To allow users to use NFSv3 with cephadm deployed
nfs daemons by default

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
src/pybind/mgr/cephadm/tests/test_services.py
src/pybind/mgr/nfs/tests/test_nfs.py

index 03ff8a32ca2923c9cb24f369b51b6bae9aca9b43..ebe9ae0b7f692c9d0553311fded902b8c6c94eac 100644 (file)
@@ -2,7 +2,7 @@
 NFS_CORE_PARAM {
         Enable_NLM = {{ enable_nlm }};
         Enable_RQUOTA = false;
-        Protocols = 4;
+        Protocols = 3, 4;
         NFS_Port = {{ port }};
         allow_set_io_flusher_fail = true;
 {% if bind_addr %}
index 4b11a588ad3931cc413a3beb23c313369ca2c064..2f448e0b522e955a3d366d70f3c980c9562066d3 100644 (file)
@@ -3187,7 +3187,7 @@ class TestIngressService:
             'NFS_CORE_PARAM {\n'
             '        Enable_NLM = true;\n'
             '        Enable_RQUOTA = false;\n'
-            '        Protocols = 4;\n'
+            '        Protocols = 3, 4;\n'
             '        NFS_Port = 2049;\n'
             '        allow_set_io_flusher_fail = true;\n'
             '        HAProxy_Hosts = 192.168.122.111, 10.10.2.20, 192.168.122.222;\n'
index b7a0283a7b1092f175e788d2739dbb0145eedd52..c0c1a73e269a61b4a3c663416eaf8fff035d8db9 100644 (file)
@@ -1190,7 +1190,7 @@ NFS_CORE_PARAM {
         assert export.pseudo == "/cephfs3"
         assert export.access_type == "RW"
         assert export.squash == "root"
-        assert export.protocols == [4]
+        assert export.protocols == [3, 4]
         assert export.fsal.name == "CEPH"
         assert export.fsal.user_id == "nfs.foo.myfs.86ca58ef"
         assert export.fsal.cephx_key == "thekeyforclientabc"