From: Adam King Date: Wed, 21 Feb 2024 15:25:23 +0000 (-0500) Subject: mgr/cephadm: add NFSv3 protocol to cephadm generated ganesha conf X-Git-Tag: v20.0.0~733^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1e69ebc6ceaf540279241aa834aaef5567932fbc;p=ceph.git mgr/cephadm: add NFSv3 protocol to cephadm generated ganesha conf To allow users to use NFSv3 with cephadm deployed nfs daemons by default Signed-off-by: Adam King --- diff --git a/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 b/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 index 03ff8a32ca2..ebe9ae0b7f6 100644 --- a/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 +++ b/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 @@ -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 %} diff --git a/src/pybind/mgr/cephadm/tests/test_services.py b/src/pybind/mgr/cephadm/tests/test_services.py index 4b11a588ad3..2f448e0b522 100644 --- a/src/pybind/mgr/cephadm/tests/test_services.py +++ b/src/pybind/mgr/cephadm/tests/test_services.py @@ -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' diff --git a/src/pybind/mgr/nfs/tests/test_nfs.py b/src/pybind/mgr/nfs/tests/test_nfs.py index b7a0283a7b1..c0c1a73e269 100644 --- a/src/pybind/mgr/nfs/tests/test_nfs.py +++ b/src/pybind/mgr/nfs/tests/test_nfs.py @@ -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"