]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: support managing exports without orchestration enabled
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 29 Jan 2022 16:23:00 +0000 (11:23 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 17 Mar 2022 14:03:37 +0000 (10:03 -0400)
commit2d5de5118ed50ce8be926949f82bbc0b6d83a3bd
treef82cf35e18e21b0c4fe04eb86ebc0387ae4f1e3e
parent4bfc7a33244d5918ea5b6d9649b4b888fe32b8b0
mgr/nfs: support managing exports without orchestration enabled

This change allows the `ceph nfs export ...` commands to function
without the entire mgr/nfs subsystem requiring orchestration to be
enabled.  When there's no orchestration available, the code falls back
to examining the namespaces in the ".nfs" rados pool to determine what
cluster_id values are valid.

This change does not add support for creating the rados objects and
namespace needed to manage a nfs cluster. As discussed with the
orchestration group on 2022-01-22, rook does not need the mgr module to
establish the namespace. So, for now, we'll defer the work needed to
create the namespace/objects when orchestration is disabled.

Fixes: https://tracker.ceph.com/issues/54043
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8c711afc4ab898942a2569b619eb8379ee02ffba)
src/pybind/mgr/nfs/export.py