Bug 1570878

Summary: [nfs-ganesha] Attr_Expiration_Time not a Export_Defaults option
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ram Raja <rraja>
Component: CephFSAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact: Aron Gunn <agunn>
Priority: high    
Version: 3.0CC: agunn, ceph-eng-bugs, ceph-qe-bugs, ffilz, john.spray, kdreyer, pdonnell, rperiyas, rraja, tserlin, vakulkar
Target Milestone: z3   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: nfs-ganesha-2.5.5-5.el7cp Ubuntu: nfs-ganesha_2.5.5-8redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-15 18:20:31 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: 1567511    
Attachments:
Description Flags
ganesha config file none

Description Ram Raja 2018-04-23 15:36:37 UTC
Created attachment 1425684 [details]
ganesha config file

Description of problem:
To disable Ganesha's attribute caching for all exports, you need to set
'Attr_Expiration_Time=0' as a EXPORT_DEFAULTS options. This is not working.
But we need this working for setting up NFS-Ganesha in OpenStack Manila deployments, where we want to turn off attribute caching.

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Setup Ganesha over CephFS and use the attached ganesha.conf file.

2. Start the ganesha server.

3. Check out the ganesha log file for warnings or errors.

Actual results: See a warning in the ganesha log file,
[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:10): Unknown parameter (Attr_Expiration_Time)

Expected results: Shouldn't see the warning in the ganesha in the config file.


Additional info:

Comment 3 Ram Raja 2018-04-23 15:37:57 UTC
The fix is in upstream nfs-ganesha project's next branch,
https://github.com/nfs-ganesha/nfs-ganesha/commit/e76c786d1f41d14b5bc3e4086136e11e93f04021

Shouldn't be hard to backport and it's easy to test.

Comment 21 Ramakrishnan Periyasamy 2018-05-04 12:26:01 UTC
Thanks Ramana, 

Moving this bug to verified state.

Comment 24 errata-xmlrpc 2018-05-15 18:20:31 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, 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/RHBA-2018:1563