CephFS driver needs to report allocated capacity of a filesystem when MultiFS is enabled

Bug #2049538 reported by Goutham Pacha Ravi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
In Progress
Medium
Carlos Eduardo

Bug Description

Ceph supports multiple cephfs filesystems since the Pacific release [1][2]. This functionality allows configuring separate file systems with full data separation on separate pools. Alongside data separation, each filesystem has its own metadata pools as well as metadata server/s. OpenStack Manila users benefit from this level of isolation by mapping an isolated filesystem to a separate backend. This means that you could have multiple backends configured in Manila provisioning onto the same ceph cluster, but each within its own CephFS filesystem.

The CephFS driver permits this by the use of a configuration option: ``cephfs_filesystem_name`` [3].
There are a couple of deficiencies of this approach:

(1) If the request doesn't specify any backend specific characteristic, the scheduler may end up favoring one backend (the "first" backend in a list compiled within the scheduler) all the time. This is because there's nothing differentiating the backends as far as the basic characteristics go - the capacity information is for the whole cluster. It'd be nice if the backend starts reporting allocated_capacity_gb, and if the scheduler took note of that.
(2) When the filesystem isn't called "cephfs", users/automation software will need to specify the filesystem name when mounting subvolumes (manila shares). This issue was discussed at the Oct 2023 (Caracal) PTG [4]. One solution was for the driver to set the filesystem name as the share's metadata so users and automation tools can view this information. This issue is reported as a separate RFE: https://bugs.launchpad.net/manila/+bug/2050010

[1] https://docs.ceph.com/en/pacific/cephfs/multifs/
[2] https://docs.ceph.com/en/latest/cephfs/multifs/
[3] https://opendev.org/openstack/manila/src/commit/2c2788fa2de7c5b7b02e4d131a9a6c88fc34fc18/manila/share/drivers/cephfs/driver.py#L138
[4] https://etherpad.opendev.org/p/caracal-ptg-manila-cephfs

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/905986

Changed in manila:
status: New → In Progress
Vida Haririan (vhariria)
Changed in manila:
assignee: nobody → Goutham Pacha Ravi (gouthamr)
Revision history for this message
Vida Haririan (vhariria) wrote : Re: [RFE] Issues when using multiple CephFS filesystems from the same ceph cluster
summary: - [RFE] Issues when using multiple CephFS filesystems from the same ceph
- cluster
+ CephFS driver needs to report allocated capacity of a filesystem when
+ MultiFS is enabled
description: updated
Changed in manila:
milestone: none → caracal-3
Changed in manila:
milestone: caracal-3 → caracal-rc1
assignee: Goutham Pacha Ravi (gouthamr) → Carlos Eduardo (silvacarlose)
importance: Undecided → Medium
Changed in manila:
milestone: caracal-rc1 → dalmation-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.