Bug 1941775 - [RFE] Allow setting global nfs-ganesha options
Summary: [RFE] Allow setting global nfs-ganesha options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 4.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 4.3
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
Ranjini M N
URL:
Whiteboard:
Depends On:
Blocks: 2031070
TreeView+ depends on / blocked
 
Reported: 2021-03-22 18:30 UTC by Goutham Pacha Ravi
Modified: 2025-11-21 05:52 UTC (History)
12 users (show)

Fixed In Version: ceph-ansible-4.0.63-1.el8cp, ceph-ansible-4.0.63-1.el7cp
Doc Type: Enhancement
Doc Text:
.Setting the global NFS options in the configuration file is supported Previously, `ceph-ansible` would not allow overriding any parameter in the configuration file. With this release, you can override any parameter in the NFS_CORE_PARAM block section in the `ganesha.conf` file by setting the variable `ganesha_core_param_overrides` in group_vars/all.yml and update client-related configuration.
Clone Of:
Environment:
Last Closed: 2022-05-05 07:53:20 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 6721 0 None Merged [skip ci] ceph-nfs: allow overriding NFS_CORE_PARAM 2022-01-03 11:52:48 UTC
Red Hat Issue Tracker RHCEPH-46 0 None None None 2021-08-30 11:06:40 UTC
Red Hat Product Errata RHSA-2022:1716 0 None None None 2022-05-05 07:53:39 UTC

Description Goutham Pacha Ravi 2021-03-22 18:30:11 UTC
Description of problem:

This request is similar to that in https://bugzilla.redhat.com/show_bug.cgi?id=1925646 and originates from Red Hat OpenStack's use of nfs-ganesha to provide CephFS shares via an NFS gateway for multi-tenant clouds. 

Currently, there are a set of sensible default configuration options in the nfs-ganesha template in ceph-ansible via a ganesha jinja template [1]. Customers would like to update client related configuration in NFS_CORE_PARAM and metadata caching related options within MDCACHE blocks based on the kind of workloads they wish to run. 

It would be more flexible if ceph-ansible would allow overriding these values or provide a way to point to an alternative jinja template file [2] that could be used during deployment.


Additional info:

[1] https://github.com/ceph/ceph-ansible/blob/a7f2fa73e63e69dba2e41aaac9732397eec437c9/roles/ceph-nfs/templates/ganesha.conf.j2
[2] https://github.com/ceph/ceph-ansible/blob/a7f2fa73e63e69dba2e41aaac9732397eec437c9/roles/ceph-nfs/tasks/start_nfs.yml#L43

Comment 10 errata-xmlrpc 2022-05-05 07:53:20 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 4.3 Security and Bug Fix 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-2022:1716

Comment 11 Margie129Palmer 2025-11-21 05:52:44 UTC
Currently ceph‑ansible ships a fixed nfs‑ganesha template with default NFS_CORE_PARAM and MDCACHE values, but customers need flexibility to tune these for different workloads. Allowing overrides or pointing to a custom Jinja template during deployment would make configuration more adaptable and better suited to varied use cases. https://www.ez-passnc.com


Note You need to log in before you can comment on or make changes to this bug.