Skip to content

Commit 81e274b

Browse files
authored
Merge pull request ceph#55693 from adk3798/cephadm-nfsv3
mgr/nfs: add NFSv3 protocol to default protocols Reviewed-by: John Mulligan <[email protected]>
2 parents de3c6e4 + 18b8277 commit 81e274b

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

qa/tasks/cephfs/test_nfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def setUp(self):
5555
"squash": "none",
5656
"security_label": True,
5757
"protocols": [
58-
4
58+
3, 4
5959
],
6060
"transports": [
6161
"TCP"

src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
NFS_CORE_PARAM {
33
Enable_NLM = {{ enable_nlm }};
44
Enable_RQUOTA = false;
5-
Protocols = 4;
5+
Protocols = 3, 4;
6+
mount_path_pseudo = true;
7+
Enable_UDP = false;
68
NFS_Port = {{ port }};
79
allow_set_io_flusher_fail = true;
810
{% if bind_addr %}

src/pybind/mgr/cephadm/tests/test_services.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,9 @@ def fake_keys():
31893189
'NFS_CORE_PARAM {\n'
31903190
' Enable_NLM = true;\n'
31913191
' Enable_RQUOTA = false;\n'
3192-
' Protocols = 4;\n'
3192+
' Protocols = 3, 4;\n'
3193+
' mount_path_pseudo = true;\n'
3194+
' Enable_UDP = false;\n'
31933195
' NFS_Port = 2049;\n'
31943196
' allow_set_io_flusher_fail = true;\n'
31953197
' HAProxy_Hosts = 192.168.122.111, 10.10.2.20, 192.168.122.222;\n'

src/pybind/mgr/nfs/ganesha_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def from_dict(cls, export_id: int, ex_dict: Dict[str, Any]) -> 'Export':
459459
ex_dict.get('access_type', 'RO'),
460460
ex_dict.get('squash', 'no_root_squash'),
461461
ex_dict.get('security_label', True),
462-
ex_dict.get('protocols', [4]),
462+
ex_dict.get('protocols', [3, 4]),
463463
ex_dict.get('transports', ['TCP']),
464464
FSAL.from_dict(ex_dict.get('fsal', {})),
465465
[Client.from_dict(client) for client in ex_dict.get('clients', [])],

src/pybind/mgr/nfs/tests/test_nfs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def _do_test_create_export_rgw_bucket(self):
10171017
assert export.pseudo == "/mybucket"
10181018
assert export.access_type == "none"
10191019
assert export.squash == "none"
1020-
assert export.protocols == [4]
1020+
assert export.protocols == [3, 4]
10211021
assert export.transports == ["TCP"]
10221022
assert export.fsal.name == "RGW"
10231023
assert export.fsal.user_id == "bucket_owner_user"
@@ -1060,7 +1060,7 @@ def _do_test_create_export_rgw_bucket_user(self):
10601060
assert export.pseudo == "/mybucket"
10611061
assert export.access_type == "none"
10621062
assert export.squash == "none"
1063-
assert export.protocols == [4]
1063+
assert export.protocols == [3, 4]
10641064
assert export.transports == ["TCP"]
10651065
assert export.fsal.name == "RGW"
10661066
assert export.fsal.access_key_id == "the_access_key"
@@ -1102,7 +1102,7 @@ def _do_test_create_export_rgw_user(self):
11021102
assert export.pseudo == "/mybucket"
11031103
assert export.access_type == "none"
11041104
assert export.squash == "none"
1105-
assert export.protocols == [4]
1105+
assert export.protocols == [3, 4]
11061106
assert export.transports == ["TCP"]
11071107
assert export.fsal.name == "RGW"
11081108
assert export.fsal.access_key_id == "the_access_key"
@@ -1151,7 +1151,7 @@ def _do_test_create_export_cephfs(self):
11511151
assert export.pseudo == "/cephfs2"
11521152
assert export.access_type == "none"
11531153
assert export.squash == "none"
1154-
assert export.protocols == [4]
1154+
assert export.protocols == [3, 4]
11551155
assert export.transports == ["TCP"]
11561156
assert export.fsal.name == "CEPH"
11571157
assert export.fsal.user_id == "nfs.foo.myfs.86ca58ef"
@@ -1190,7 +1190,7 @@ def _do_test_create_export_cephfs_with_cmount_path(self):
11901190
assert export.pseudo == "/cephfs3"
11911191
assert export.access_type == "RW"
11921192
assert export.squash == "root"
1193-
assert export.protocols == [4]
1193+
assert export.protocols == [3, 4]
11941194
assert export.fsal.name == "CEPH"
11951195
assert export.fsal.user_id == "nfs.foo.myfs.86ca58ef"
11961196
assert export.fsal.cephx_key == "thekeyforclientabc"

0 commit comments

Comments
 (0)