]> 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>
Thu, 3 Jun 2021 12:37:14 +0000 (07:37 -0500)
commit8f2c20bf8d8ffd430c38b2155676b9e47b7cffeb
treed2de9d716cf64fbe015099609f0ca7cf99290f2f
parent516edc9a3bbca7097cb638f35f1b42a78900f1ac
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>
(cherry picked from commit a7d65f00ea554078f6e8f058e9ec137230902964)
src/cephadm/cephadm
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/services/nfs.py