]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: consume mgr/nfs via mgr.remote()
authorSage Weil <sage@newdream.net>
Wed, 28 Jul 2021 14:29:47 +0000 (10:29 -0400)
committerAlfonso Martínez <almartin@redhat.com>
Wed, 3 Nov 2021 11:31:31 +0000 (12:31 +0100)
commit6ebf630dedc04d8181f04d48817e9ca91fb661c2
tree8b584eb34fc3ebfa8415753fdd831d0fe35e6127
parentf63086df1f1c0b711aad884e4e013638076197e9
mgr/dashboard: consume mgr/nfs via mgr.remote()

Stop using the dashboard version of the Ganesha config classes; consume
mgr/nfs instead via remote().

mgr/nfs/export: return Export from _apply_export

Future callers will want this.

mgr/nfs: new module methods for dashboard consumption

Add some new methods that are easy for the dashboard API to consume.  These
are very similar to the CLI methods but do now have the @CLICommand and
related decorators, and have slightly different interfaces (e.g., returning
the created/modified Export dict).

mgr/dashboard: remove old ganesha code (and tests)

Fixes: https://tracker.ceph.com/issues/46493
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 6e5a1eefd0b48614f7c95f86fd9fadab1b2b03fe)

Conflicts:
src/pybind/mgr/dashboard/services/ganesha.py
    - Deleted as in master.
src/pybind/mgr/dashboard/controllers/nfsganesha.py
src/pybind/mgr/dashboard/services/ganesha.py [deleted file]
src/pybind/mgr/dashboard/tests/test_ganesha.py
src/pybind/mgr/nfs/cluster.py
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/module.py