Bug 2100426

Summary: NFS automount filesystem containing current view to time out, causing updir in nautilus.
Product: Red Hat Enterprise Linux 8 Reporter: VIRENDRASINGH RAJPUT <vrajput>
Component: nautilusAssignee: Ondrej Holy <oholy>
Status: CLOSED ERRATA QA Contact: Vitezslav Humpa <vhumpa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: sbarcomb, tpelka
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nautilus-3.28.1-25.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-14 15:34:34 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:

Description VIRENDRASINGH RAJPUT 2022-06-23 10:28:16 UTC
Description of problem:  Nautilus remounts the parent after the auto.master timeout has passed


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

Red Hat Enterprise Linux release 8.6 (Ootpa)

nautilus-3.28.1-15.el8.x86_64                               

How reproducible: Everytime


Steps to Reproduce:
1. Create autofs config as below:
// autofs config :

[root@rhel8 ~]# grep indirect_root /proc/mounts 
/etc/auto.indirect /indirect_root autofs rw,relatime,fd=23,pgrp=43409,timeout=30,minproto=5,maxproto=5,indirect,pipe_ino=3788996 0 0
[root@rhel8 ~]# cat /etc/auto.indirect
test 172.23.1.225:/share

2. Install below packages:
# yum install nautilus ; yum install xauth

3. From your workstation :

$ ssh -X rhel8

# mkdir -p /indirect_root/test/a/b/c
# strace -o /tmp/strace.out -fTtty -e access,lstat,stat,open,chdir nautilus /indirect_root/test/a/b/c

4. After 30 sec it will go to up directory automatically.

Actual results: After 30 sec it will go to up directory automatically.


Expected results: It should not go to up directory after 30 sec timeout.


Additional info:

We took the reference below but it is still open.

LINK: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1514

Comment 1 Ondrej Holy 2023-01-30 09:42:25 UTC
I have thought that the primary problem is that autofs mount can't expire resp. is remounted (as in other cases I dealt with before), but I read relevant bugs again and realized that I have been probably wrong. The main problem seems to be the directory change. 

Among others, I've just proposed upstream change to not change the directory, but it still causes autofs remounts immediately when it expires. Just to be sure, can you please confirm that such behavior is ok to the customer?

Comment 5 Vitezslav Humpa 2023-06-16 06:40:04 UTC
The most recent build of nautilus-3.28.1-25.el8 that contains a recent fix backported from upstream which is verified to fix the original "updir"
issue as well as associated problem found with PathBar missing on autofs timeout.

Comment 10 errata-xmlrpc 2023-11-14 15:34:34 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 (nautilus 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/RHBA-2023:7000