]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add Server_Scope = <fsid> to NFSv4 section of ganesha conf
authorAdam King <adking@redhat.com>
Wed, 29 Jan 2025 17:02:50 +0000 (12:02 -0500)
committerAdam King <adking@redhat.com>
Thu, 30 Jan 2025 20:39:42 +0000 (15:39 -0500)
commitc353b788ebe41d0ddb76e2c764d852d2ef475b63
treeff1ab4b5fd3778fa441a8f2a911ee5a93c9b9c36
parentb7d3d395258ed89230c90156de02cca1e96812d9
mgr/cephadm: add Server_Scope = <fsid> to NFSv4 section of ganesha conf

From the ganesha team

"""
In the NFSv4 param block, we need a parameter Server_Scope set to some value common among all servers in a cluster.

The default with it blank is to use the hostname which may be different for each server in the cluster.
"""

This is related to ongoing work on high availability nfs. From the cephadm side
we just need to make sure all nfs daemons in the cluster end up with
the same value for the Server_Scope field. This patch uses the cluster
id (which we already brought into the template as the "namespace" attribute)

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/nfs.py
src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
src/pybind/mgr/cephadm/tests/test_services.py