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 2170423 - server-side copy fails with IO error when server responds with NFS4ERR_OFFLOAD_DENIED
Summary: server-side copy fails with IO error when server responds with NFS4ERR_OFFLOA...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Benjamin Coddington
QA Contact: JianHong Yin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-16 10:43 UTC by Tigran Mkrtchyan
Modified: 2023-11-07 10:28 UTC (History)
7 users (show)

Fixed In Version: kernel-5.14.0-302.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:41:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src/kernel centos-stream-9 merge_requests 2144 0 None opened nfs42: do not fail with EIO if ssc returns NFS4ERR_OFFLOAD_DENIED 2023-03-07 15:26:03 UTC
Gitlab redhat/centos-stream/src/kernel centos-stream-9 merge_requests 2386 0 None opened nfs42: do not fail with EIO if ssc returns NFS4ERR_OFFLOAD_DENIED 2023-04-18 10:49:31 UTC
Red Hat Issue Tracker RHELPLAN-148850 0 None None None 2023-02-16 10:47:18 UTC
Red Hat Product Errata RHSA-2023:6583 0 None None None 2023-11-07 08:41:35 UTC

Description Tigran Mkrtchyan 2023-02-16 10:43:24 UTC
Description of problem:

According to rfc7862#11.1.2.1:

  11.1.2.1.  NFS4ERR_OFFLOAD_DENIED (Error Code 10091)

   The COPY offload operation is supported by both the source and the
   destination, but the destination is not allowing it for this file.
   If the client sees this error, it should fall back to the normal copy
   semantics.

NOTE that according to rfc7862#section-4.1 in intra-server case "source server"
and "destination server" are the same server.

However, if the server indeed returns the NFS4ERR_OFFLOAD_DENIED, then the client application will receive EIO error.

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

kernel-5.14.0-252.el9

How reproducible:
100%

Steps to Reproduce:
1. instruct the server to return NFS4ERR_OFFLOAD_DENIED on COPY request
2. run a regular cp operation


Actual results:
cp fails with EIO


Expected results:
nfs client falls back to read-write semantics.


Additional info:
The upstream patch should address that behavior

http://git.linux-nfs.org/?p=anna/linux-nfs.git;a=commitdiff;h=4730515378a70064581b27ed112fcfc6f2a379ca#patch1

Comment 1 Benjamin Coddington 2023-02-21 12:04:22 UTC
This one's obviously correct, we'll take it when it gets merged upstream.

Comment 4 Yongcheng Yang 2023-03-08 02:23:09 UTC
(In reply to Benjamin Coddington from comment #1)
> This one's obviously correct, we'll take it when it gets merged upstream.

We need to request exception or blocker for this late ITM.

Comment 6 Benjamin Coddington 2023-03-08 10:44:24 UTC
(In reply to Yongcheng Yang from comment #4)
> (In reply to Benjamin Coddington from comment #1)
> > This one's obviously correct, we'll take it when it gets merged upstream.
> 
> We need to request exception or blocker for this late ITM.

Ah, I meant to boot this one to 9.3..  we'll still get it done now so that it is on c9s.  I expect this is a rare issue, and if we get a customer with it on 9.2 we can send it to z-stream.

Comment 20 errata-xmlrpc 2023-11-07 08:41:16 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 (Important: kernel security, bug fix, 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-2023:6583


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