From: Adam King Date: Wed, 21 Feb 2024 15:20:52 +0000 (-0500) Subject: mgr/nfs: add NFSv3 protocol to exports X-Git-Tag: v20.0.0~733^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b39be5abe031cfc9b8044f3d2506851174ebd547;p=ceph.git mgr/nfs: add NFSv3 protocol to exports To allow users to use NFSv3 by default with exports created through the nfs module Signed-off-by: Adam King --- diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index 19076ea44b3..faa35be6926 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -55,7 +55,7 @@ class TestNFS(MgrTestCase): "squash": "none", "security_label": True, "protocols": [ - 4 + 3, 4 ], "transports": [ "TCP" diff --git a/src/pybind/mgr/nfs/ganesha_conf.py b/src/pybind/mgr/nfs/ganesha_conf.py index 56c56b434bb..5108222eef3 100644 --- a/src/pybind/mgr/nfs/ganesha_conf.py +++ b/src/pybind/mgr/nfs/ganesha_conf.py @@ -459,7 +459,7 @@ class Export: ex_dict.get('access_type', 'RO'), ex_dict.get('squash', 'no_root_squash'), ex_dict.get('security_label', True), - ex_dict.get('protocols', [4]), + ex_dict.get('protocols', [3, 4]), ex_dict.get('transports', ['TCP']), FSAL.from_dict(ex_dict.get('fsal', {})), [Client.from_dict(client) for client in ex_dict.get('clients', [])], diff --git a/src/pybind/mgr/nfs/tests/test_nfs.py b/src/pybind/mgr/nfs/tests/test_nfs.py index edf8bab37a1..b7a0283a7b1 100644 --- a/src/pybind/mgr/nfs/tests/test_nfs.py +++ b/src/pybind/mgr/nfs/tests/test_nfs.py @@ -1017,7 +1017,7 @@ NFS_CORE_PARAM { assert export.pseudo == "/mybucket" assert export.access_type == "none" assert export.squash == "none" - assert export.protocols == [4] + assert export.protocols == [3, 4] assert export.transports == ["TCP"] assert export.fsal.name == "RGW" assert export.fsal.user_id == "bucket_owner_user" @@ -1060,7 +1060,7 @@ NFS_CORE_PARAM { assert export.pseudo == "/mybucket" assert export.access_type == "none" assert export.squash == "none" - assert export.protocols == [4] + assert export.protocols == [3, 4] assert export.transports == ["TCP"] assert export.fsal.name == "RGW" assert export.fsal.access_key_id == "the_access_key" @@ -1102,7 +1102,7 @@ NFS_CORE_PARAM { assert export.pseudo == "/mybucket" assert export.access_type == "none" assert export.squash == "none" - assert export.protocols == [4] + assert export.protocols == [3, 4] assert export.transports == ["TCP"] assert export.fsal.name == "RGW" assert export.fsal.access_key_id == "the_access_key" @@ -1151,7 +1151,7 @@ NFS_CORE_PARAM { assert export.pseudo == "/cephfs2" assert export.access_type == "none" assert export.squash == "none" - assert export.protocols == [4] + assert export.protocols == [3, 4] assert export.transports == ["TCP"] assert export.fsal.name == "CEPH" assert export.fsal.user_id == "nfs.foo.myfs.86ca58ef"