Bug 1941775

Summary: [RFE] Allow setting global nfs-ganesha options
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Goutham Pacha Ravi <gouthamr>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 4.2CC: amsyedha, aschoen, ceph-eng-bugs, gabrioux, gmeno, nthomas, rmandyam, tserlin, vereddy, vhariria, ykaul
Target Milestone: ---Keywords: FutureFeature
Target Release: 4.3   
Hardware: All   
OS: All   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 07:53:20 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: 2031070    

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