]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: enable ranked daemons for nfs
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2021 19:33:23 +0000 (15:33 -0400)
committerSage Weil <sage@newdream.net>
Wed, 19 May 2021 12:43:14 +0000 (08:43 -0400)
commita7d65f00ea554078f6e8f058e9ec137230902964
tree21ac95482344caa3a833d0372deb2b58a49edc22
parente8b07982b50e35a546a52b092cac5a825c37981d
mgr/cephadm: enable ranked daemons for nfs

Use ranked daemons for NFS. Ganesha does not like it if multiple
instances start up with the same rank, but we need stable ranks so that
a rank can "fail over" to a new instance of a new daemon on another host
(with the same rank) for NFS client reclaim to work.

Specify a nodeid of '{service_name}.{rank}' for ganesha.

Include a unique id in the daemon_id just because this avoids some issues
with the create/destroy ordering, and because the daemon_id doesn't matter
much anymore since we are using a stable rank.

Signed-off-by: Sage Weil <sage@newdream.net>
src/cephadm/cephadm
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/services/nfs.py