Bug 1051687 - "df -l" is querying nfs automounts
Summary: "df -l" is querying nfs automounts
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Philipp Thomas
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: DSLA_REQUIRED
Depends on: 1043059 1064586
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-01 13:50 UTC by Ales Novak
Modified: 2017-10-24 12:23 UTC (History)
4 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ales Novak 2017-08-01 13:50:37 UTC
+++ This bug was initially created as a clone of Bug #1043059 +++

Hi engineering,

in SLES/D 12 SP2 the call "df -l" queries all directories that are handled by the systemd automounter. That includes nfs automounts and therefore causes "df -l" to hang if a NFS server is hanging.

E.g. we have the following entry in /etc/fstab:
knuth:/local/storage  /mnt/s1   nfs4    defaults,noauto,x-systemd.automount 0 0

I attach a strace output of "df -l" that shows that "/mnt/s1" is statted. df considers it a local mountpoint due to the "systemd-1 on /mnt/s1" entry:

systemd-1 on /mnt/s1 type autofs (rw,relatime,fd=22,pgrp=1,timeout=60,minproto=5,maxproto=5,direct)
knuth:/local/storage on /mnt/s1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,port=0,timeo=600,retrans=2,sec=sys,clientaddr=2001:4ca0:4000:1011:141:84:1:25,local_lock=none,addr=2001:4ca0:4000:1011:141:84:1:25)


However, if /mnt/s1 is mounted and nfs-server is down, statting /mnt/s1 will hang. 

But "df -l" should never hang just because an NFS mount is down.

>>>>>>>>>

Can you help here please?
Comment 1 Philipp Thomas 2017-10-24 12:23:09 UTC
Fixed Package submitted to SLE12 SP2.