Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1492591 - [GSS] Error No such file or directory for new file writes
[GSS] Error No such file or directory for new file writes
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: fuse (Show other bugs)
3.2
Unspecified Unspecified
unspecified Severity high
: ---
: RHGS 3.4.0
Assigned To: Raghavendra G
Vinayak Papnoi
:
Depends On: 1500269 1510401 1529084 1529085 1529086 1529088 1529089
Blocks: 1503135
  Show dependency treegraph
 
Reported: 2017-09-18 05:30 EDT by Abhishek Kumar
Modified: 2018-09-07 09:22 EDT (History)
18 users (show)

See Also:
Fixed In Version: glusterfs-3.12.2-2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 02:36:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
script to do rename while other program tries to open the file (35 bytes, application/x-shellscript)
2017-10-10 05:50 EDT, Raghavendra G
no flags Details
program which opens a file that is being renamed parallely by other program (514 bytes, text/x-csrc)
2017-10-10 05:51 EDT, Raghavendra G
no flags Details
do rename through a C program (946 bytes, text/x-csrc)
2017-10-10 05:52 EDT, Raghavendra G
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2607 None None None 2018-09-04 02:38 EDT

  None (edit)
Description Abhishek Kumar 2017-09-18 05:30:36 EDT
Description of problem:

Error No such file or directory for new file writes

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

RHGS 3.2

How reproducible:

Cu environment 


Actual results:

Split-brain and no such file or directory is coming for a new file writes

Expected results:

Split-brain and no such file or directory should not come for a new file writes

Additional info:
Comment 14 Nithya Balachandran 2017-09-22 05:41:06 EDT
How many FUSE clients are accessing the volume?
Comment 15 Nithya Balachandran 2017-09-22 05:44:18 EDT
Also, for the files for which the errors are returned, do the file paths exist (/store/partition/primary/=user/03/93/=8716871000002/store.idx for example ) and if yes, what is the gfid?

I am wondering if Fuse has cached the old gfid before this files was deleted and recreated.
Comment 16 Nithya Balachandran 2017-09-22 06:09:24 EDT
Additional requests:
1. Ask the customer to turn off readdir-ahead
2. Find out how many Fuse clients are accessing the volume and how many are performing the deletes/creates etc
3. If there is only one mount please check how many instances of application is accessing glusterfs and whether the application is multithreaded and whether deletes, creates, renames, recreates happen in same thread or multiple thread
Comment 17 Nithya Balachandran 2017-09-22 06:22:29 EDT
From Raghavendra G:

If they are willing , can the customer try  glusterfs mounted with options 
--entry-timeout=0 and --attribute-timeout=0
and see if they still see the issue?
Comment 18 Raghavendra G 2017-09-22 07:35:13 EDT
(In reply to Nithya Balachandran from comment #16)
> Additional requests:
> 1. Ask the customer to turn off readdir-ahead
> 2. Find out how many Fuse clients are accessing the volume and how many are
> performing the deletes/creates etc
> 3. If there is only one mount please check how many instances of application
> is accessing glusterfs and whether the application is multithreaded and
> whether deletes, creates, renames, recreates happen in same thread or
> multiple thread

Basically we are trying to find out the access pattern of application. I think following two data captured starting before some time when they see errors will help us to deduce the pattern more accurately:

* strace -fTtt -p <pid-of-mail-server> -o <strace-output-file>
* fusedump. while mounting glusterfs, provide option --dump-fuse=<path-to-fuse-dump-file>

Please attach strace-output-file and fuse-dump-file to the case.
Comment 25 Nithya Balachandran 2017-09-29 03:57:36 EDT
In the meantime, we will look at the information provided and get back to you.
Comment 41 Raghavendra G 2017-10-10 05:50 EDT
Created attachment 1336713 [details]
script to do rename while other program tries to open the file
Comment 42 Raghavendra G 2017-10-10 05:51 EDT
Created attachment 1336714 [details]
program which opens a file that is being renamed parallely by other program
Comment 43 Raghavendra G 2017-10-10 05:52 EDT
Created attachment 1336715 [details]
do rename through a C program
Comment 101 errata-xmlrpc 2018-09-04 02:36:24 EDT
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/RHSA-2018:2607

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