]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix NFS ganesha service registration via nodeid and register_service 67999/head
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Mon, 13 Apr 2026 15:55:04 +0000 (21:25 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Fri, 17 Apr 2026 11:49:44 +0000 (17:19 +0530)
commita423202c58dec43c6aefec36f688cc32fc2e70b5
tree376ec77c1d647f75142e29d9956926b81486ee3b
parent0eb1b13ca4806abba9aaf96baba1a1358afe5877
mgr/cephadm: fix NFS ganesha service registration via nodeid and register_service

The NFS Ganesha service was not consistently visible in `ceph -s`,
especially in multi-daemon deployments. This was due to missing or
incorrect service registration with the Ceph manager.

This change updates the ganesha.conf template to explicitly set:

  CEPH {
      register_service = true;
      nodeid = "{{ namespace }}.{{ nodeid }}";
  }

Key points:
- Enables proper service registration in mgr via register_service
- Ensures unique nodeid per daemon using namespace + nodeid
- Fixes visibility of NFS daemons in `ceph -s`
- Works correctly for both single and multi-node deployments

Validation:
- Verified with single NFS daemon → visible in `ceph -s`
- Verified with 3 NFS daemons → all correctly aggregated and visible
- Confirmed export creation activates service visibility
- Tested using Ceph 9.1 (Ganesha 9.7)

No regressions observed.

Fixes: https://tracker.ceph.com/issues/75709
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
src/pybind/mgr/cephadm/tests/services/test_ingress.py