]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: use double quotes for NFSv4 RecoveryBackend in ganesha conf 61924/head
authorAdam King <adking@redhat.com>
Wed, 12 Feb 2025 16:32:24 +0000 (11:32 -0500)
committerAdam King <adking@redhat.com>
Wed, 19 Feb 2025 22:04:34 +0000 (17:04 -0500)
This came directly from someone on the ganesha team. We've actually had
this use single quotes for a long time (at least since mid 2020) but I
believe recent feature work on the ganesha side exposed the issue

ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:13): Unknown token ('rados_cluster')

Fixes: https://tracker.ceph.com/issues/69930
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 4f5aa60c5d7605444b76485a473749d06ee65694)

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

index ded403169c976e68bee5e4c8185cae475719d5af..ade6da5aea90a789689ca016448067352fdad7c1 100644 (file)
@@ -14,7 +14,7 @@ NFS_CORE_PARAM {
 
 NFSv4 {
         Delegations = false;
-        RecoveryBackend = 'rados_cluster';
+        RecoveryBackend = "rados_cluster";
         Minor_Versions = 1, 2;
 {% if nfs_idmap_conf %}
         IdmapConf = "{{ nfs_idmap_conf }}";
index 9f3c3e1366ab105f8798745a3ea1d43f31dbba5b..5b897dc1f3fb7377d5e1ce61c347fc3299205d26 100644 (file)
@@ -2540,7 +2540,7 @@ class TestIngressService:
             '\n'
             'NFSv4 {\n'
             '        Delegations = false;\n'
-            "        RecoveryBackend = 'rados_cluster';\n"
+            '        RecoveryBackend = "rados_cluster";\n'
             '        Minor_Versions = 1, 2;\n'
             '        IdmapConf = "/etc/ganesha/idmap.conf";\n'
             '}\n'