]> 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)
committerAdam King <adking@redhat.com>
Wed, 6 Apr 2022 20:12:03 +0000 (16:12 -0400)
commit8970d03dd700b904894e4fd5803eff924942889a
tree73c76e658c5696f7cc25b8a3b7caec3d40986e5e
parent682dc21c50df1e464d1db04e8a164626f70baa94
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