From 3e3b7fa8ea22a2dd7f5d5c97d6e096a5e30585f4 Mon Sep 17 00:00:00 2001 From: Adam King Date: Tue, 1 Oct 2024 10:03:13 -0400 Subject: [PATCH] mgr/cephadm: add "allow_set_io_flusher_fail = true;" to ganesha conf This is necessary for ganesha 6.1 running in a container to start up without hitting a permission failure (without having to run the container as --privileged) and doesn't seem to cause any damage when read in by ganesha v5.9 (the current version in the main branch containers) Signed-off-by: Adam King --- src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 | 1 + src/pybind/mgr/cephadm/tests/test_services.py | 1 + 2 files changed, 2 insertions(+) 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 ded403169c9..03ff8a32ca2 100644 --- a/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 +++ b/src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 @@ -4,6 +4,7 @@ NFS_CORE_PARAM { Enable_RQUOTA = false; Protocols = 4; NFS_Port = {{ port }}; + allow_set_io_flusher_fail = true; {% if bind_addr %} Bind_addr = {{ bind_addr }}; {% endif %} diff --git a/src/pybind/mgr/cephadm/tests/test_services.py b/src/pybind/mgr/cephadm/tests/test_services.py index a9b7da624a0..538ca653714 100644 --- a/src/pybind/mgr/cephadm/tests/test_services.py +++ b/src/pybind/mgr/cephadm/tests/test_services.py @@ -2710,6 +2710,7 @@ class TestIngressService: ' Enable_RQUOTA = false;\n' ' Protocols = 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' '}\n' '\n' -- 2.39.5