Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 823018

Summary: link of a delegated file fails (due to server returning NOENT instead of DELAY)
Product: Red Hat Enterprise Linux 6 Reporter: J. Bruce Fields <bfields>
Component: kernelAssignee: J. Bruce Fields <bfields>
Status: CLOSED ERRATA QA Contact: Eryu Guan <eguan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3CC: eguan, jiali, jstancek, yanwang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 05:55:09 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:
Attachments:
Description Flags
nfsd: link returns nfserr_delay when breaking lease none

Description J. Bruce Fields 2012-05-18 19:24:40 UTC
If the client makes a LINK call on a file with a delegation, then the kernel needs to recall the delegation before allowing the operation to succeed.  Since that may be time-consuming, it returns NFS4ERR_DELAY in that case to tell the client to retry the LINK.

However the server is currently returning NFS4ERR_NOENT instead of NFS4ERR_DELAY in this case, causing the client to return a failed link operation to the application, when the client should have retried.

Caught by DELEG15b of the 4.0 pynfs tests, thanks to Yangfu Wang for reporting.

Comment 1 J. Bruce Fields 2012-05-18 19:28:39 UTC
Created attachment 585472 [details]
nfsd: link returns nfserr_delay when breaking lease

This is fixed upstream by Casey bodley's 7d751f6f8c679 "nfsd: link returns nfserr_delay when breaking lease", which still applies cleanly to the rhel6 kernel.

Comment 3 RHEL Program Management 2012-05-18 20:40:15 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 4 Suzanne Logcher 2012-05-18 20:58:20 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Jian Li 2012-06-04 03:47:42 UTC
*** Bug 827846 has been marked as a duplicate of this bug. ***

Comment 6 RHEL Program Management 2012-06-27 13:50:04 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 10 Eryu Guan 2013-01-23 11:42:52 UTC
Reproduced on kernel-2.6.32-279.el6

# Server is kernel-2.6.32-279.el6
[root@hp-dl388g8-03 nfs4.0]# ./testserver.py $SERVER:/mnt/nfsexport  link DELEG15b
*****CB received COMPOUND******
******* CB_Recall (id=1)********
**************************************************
DELEG15b st_delegation.testLink                                   : FAILURE
           link which causes recall should return NFS4_OK or
           NFS4ERR_DELAY, instead got NFS4ERR_NOENT
LINK2    st_link.testNoSfh                                        : PASS
LINK3    st_link.testNoCfh                                        : PASS
LINKS    st_link.testSupported                                    : PASS
**************************************************
Command line asked for 22 of 650 tests
Of those: 18 Skipped, 1 Failed, 0 Warned, 3 Passed

Verified on kernel-2.6.32-355.el6
[root@hp-dl388g8-03 nfs4.0]# ./testserver.py $SERVER:/mnt/nfsexport  link DELEG15b
*****CB received COMPOUND******
******* CB_Recall (id=1)********
Sleeping for 1 seconds: Got NFS4ERR_DELAY on link
Woke up
**************************************************
DELEG15b st_delegation.testLink                                   : PASS
LINK2    st_link.testNoSfh                                        : PASS
LINK3    st_link.testNoCfh                                        : PASS
LINKS    st_link.testSupported                                    : PASS
**************************************************
Command line asked for 22 of 650 tests
Of those: 18 Skipped, 0 Failed, 0 Warned, 4 Passed

Comment 12 errata-xmlrpc 2013-02-21 05:55:09 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.

http://rhn.redhat.com/errata/RHSA-2013-0496.html