]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: support Orchestrator and user-defined Ganesha clusters
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 2 Sep 2020 12:28:36 +0000 (20:28 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Mon, 19 Oct 2020 11:11:14 +0000 (19:11 +0800)
commita9accaeccf88e1b0ee4688ef2ae9ddbd3bd3dc5e
treecd2aaa8f2524104eb7004e9852884fa772396dba
parentb88638873bd738af1ce258549abb6c25e0683907
mgr/dashboard: support Orchestrator and user-defined Ganesha clusters

This change make the Dashboard support two types of Ganesha clusters:

- Orchestrator clusters (Since Octopus)
  - Deployed by the Orchestrator.
  - The Dashboard gets the pool/namespace that stores Ganesha
    configuration objects from the Orchestrator.
  - The Dashboard gets the daemons in a cluster from the Orchestrator.

- User-defined clusters (Since Nautilus)
  - Clusters defined by using `ceph dashboard
    set-ganesha-clusters-rados-pool-namespace` command is treated as
    user-defined clusters.
  - Each daemon has its own RADOS configuration objects. The
    Dashboard uses these objects to deduce daemons.

Fixes: https://tracker.ceph.com/issues/46492
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
qa/tasks/mgr/dashboard/test_ganesha.py
src/pybind/mgr/dashboard/controllers/nfsganesha.py
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/services/ganesha.py
src/pybind/mgr/dashboard/tests/test_ganesha.py