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>
"haproxy_hosts": [],
"nfs_idmap_conf": nfs_idmap_conf,
"enable_nlm": str(spec.enable_nlm).lower(),
+ "cluster_id": self.mgr._cluster_fsid,
}
if spec.enable_haproxy_protocol:
context["haproxy_hosts"] = self._haproxy_hosts()
Delegations = false;
RecoveryBackend = 'rados_cluster';
Minor_Versions = 1, 2;
+ Server_Scope = {{ cluster_id }}-{{ namespace }}
{% if nfs_idmap_conf %}
IdmapConf = "{{ nfs_idmap_conf }}";
{% endif %}
' Delegations = false;\n'
" RecoveryBackend = 'rados_cluster';\n"
' Minor_Versions = 1, 2;\n'
+ f' Server_Scope = {cephadm_module._cluster_fsid}-foo\n'
' IdmapConf = "/etc/ganesha/idmap.conf";\n'
'}\n'
'\n'