]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: use existing pools for cephfs vol creation
authorNizamudeen A <nia@redhat.com>
Thu, 20 Mar 2025 08:51:50 +0000 (14:21 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 21 Mar 2025 14:34:57 +0000 (20:04 +0530)
commit8628b46c987296d269aabca2bdb9acc1e10a050f
treeb2b641317c7e4af15acb84cd8e983469150581f8
parent6fc1a6dd926a52773b98894e1092aea0d63d16ad
mgr/dashboard: use existing pools for cephfs vol creation

We can use the newly introduced data and metadata params to create a vol
with those pools.

UI is being intelligent by filtering out the used pools and only uses
the pools that are labeled by cephfs and also not in use. To figure out
a pool is in use or not, we are fetching the pool stats and checking its
used_bytes.

Note: Using ec pools for data pool layout is something discouraged
according to offical doc: https://docs.ceph.com/en/latest/cephfs/createfs/#creating-a-file-system
We can force it but for now I have disabled it entirely in the dashboard
unless people say its okay to do it.

One more extra thing I am doing here is to add a note on deleting a
filesystem that the underlying pools and mds daemons will be removed.

Fixes: https://tracker.ceph.com/issues/70600
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/controllers/cephfs.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs.service.ts
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/services/cephfs.py