Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2248613

Summary: [ganesha][RFE] subvolume quotas not passed to the nfs client
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Paul Cuzner <pcuzner>
Component: NFS-GaneshaAssignee: Sachin Punadikar <spunadik>
NFS-Ganesha sub component: Ceph QA Contact: sumr
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: amk, cephqe-warriors, choffman, ffilz, gouthamr, hacharya, kkeithle, mobisht, msaini, ngangadh, racpatel, saraut, spunadik, sumr, tserlin, vdas, vshankar
Version: 7.0Keywords: FutureFeature, RFE
Target Milestone: ---   
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-ganesha-7.0-0.6.3.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2389764 2392403 (view as bug list) Environment:
Last Closed: 2026-01-29 06:47:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2389764, 2392403    
Attachments:
Description Flags
subvolume definition showing the quota
none
nfs export info for the cephfs subvolume none

Description Paul Cuzner 2023-11-08 02:06:58 UTC
Description of problem:
Creating cephfs subvolumes with a quota, and then using ganesha to export them with --cmount_path="/" shows the full size of the volume on the client - not the quota'd size. This could lead to unexpected failures which from the NFS client side would be difficult to diagnose.


Version-Release number of selected component (if applicable):
registry-proxy.engineering.redhat.com/rh-osbs/rhceph:7-125
ceph version 18.2.0-118.el9cp
nfs-ganesha-5.6-3.el9cp.x86_64

How reproducible:
Issue seen on all clients


Steps to Reproduce:
1. Create a cluster with cephfs and ganesha
2. Define a cephfs subvolume with a quota
3. Create an export that uses the subvolume
4. mount on a client
5. Use df to confirm the usage information, and du to confirm that the client mount is actually empty

Actual results:
[root@nfs-client-01 ~]# df -h /mnt/nfs
Filesystem                    Size  Used Avail Use% Mounted on
172.18.200.10:/nfs-client-01  5.9T  8.3G  5.9T   1% /mnt/nfs

[root@nfs-client-01 ~]# du -h --max-depth 0 /mnt/nfs
6.5K    /mnt/nfs

8.3G used, and yet 6.5K - indicating the quota is not honoured.


Expected results:
On older builds the mount showed the quota'd value - and when capacity was exceeded EIO triggered as normal.


Additional info:
I'll attach configs for the subvolume, and export

Comment 1 Paul Cuzner 2023-11-08 02:08:58 UTC
Created attachment 1997763 [details]
subvolume definition showing the quota

Comment 2 Paul Cuzner 2023-11-08 02:10:19 UTC
Created attachment 1997764 [details]
nfs export info for the cephfs subvolume

Comment 3 Kaleb KEITHLEY 2023-11-08 18:25:58 UTC
This is due to the client-sharing changes to reduce memory consumption.

Users can use a non-client-sharing config as a work-around to get subvolume quotas.

We will take this on for 7.1.

Comment 4 Paul Cuzner 2023-11-13 01:26:52 UTC
Thanks Kaleb. How does that look from an ODF perspective? I mean within ODF the PVC is quota'd, but if the mount doesn't show it - could that lead to problems?

Also, can you provide an example of the nfs export create command that works with quotas so this case tracks the issue and the workaround...or failing that a link to the docs? I couldn't find cmount_path in the upstream docs?

Comment 22 Goutham Pacha Ravi 2025-08-27 22:27:36 UTC
*** Bug 2356271 has been marked as a duplicate of this bug. ***

Comment 32 errata-xmlrpc 2026-01-29 06:47:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2026:1536