]> git.apps.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>
Wed, 23 Feb 2022 21:33:48 +0000 (16:33 -0500)
commit8c711afc4ab898942a2569b619eb8379ee02ffba
treef39ef33d72ce9f3da6c75207b4c93551ba15abd4
parent56323a2625133d5a53bf1ee1662346daa1b4f09b
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>
src/pybind/mgr/nfs/export.py