Bug 756482

Summary: systemd chokes on FUSE network mounts (like sshfs)
Product: [Fedora] Fedora Reporter: T.C. Hollingsworth <tchollingsworth>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: johannbg, lpoetter, metherid, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-16 21:16:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description T.C. Hollingsworth 2011-11-23 18:13:52 UTC
When adding an sshfs mount to /etc/fstab thusly:

sshfs#tc.0.3:/home/tc /mnt/ssh fuse defaults,idmap=user 1 2

systemd fails to mount it with the following errors in syslog:

Nov 23 11:09:00 indestructible systemd[1]: Job sshfs\x23tc\x40192.168.0.3.device/start timed out.
Nov 23 11:09:00 indestructible systemd[1]: Job mnt-ssh.mount/start failed with result 'dependency'.
Nov 23 11:09:00 indestructible systemd[1]: Job fsck@sshfs\x23tc\x40192.168.0.3.service/start failed with result 'dependency'.
Nov 23 11:09:00 indestructible systemd[1]: Job sshfs\x23tc\x40192.168.0.3.device/start failed with result 'timeout'.

It also fails when creating a similar "mnt-ssh.mount" unit file.

$ rpm -q systemd fuse fuse-sshfs
systemd-37-3.fc16.x86_64
fuse-2.8.6-1.fc16.x86_64
fuse-sshfs-2.3-1.fc16.x86_64

Also filed upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=43204

Comment 1 T.C. Hollingsworth 2011-11-23 18:20:48 UTC
I forgot to mention: this isn't a key issue or anything like that because "mount -a" handles it just fine.

Comment 2 Lennart Poettering 2012-01-12 15:16:10 UTC
If you add _netdev to the mount options, does that fix things for you?

(Also, make sure you run "systemctl enable NetworkManager-wait-online.service")

Comment 3 T.C. Hollingsworth 2012-01-16 20:48:55 UTC
Nope, same deal.

/etc/fstab:
sshfs#tc.0.3:/home/tc  /mnt/ssh  fuse  defaults,idmap=user,_netdev  1 2

syslog:
Jan 16 13:44:47 invincible systemd[1]: Job sshfs\x23tc\x40192.168.0.3:-home-tc.device/start timed out.
Jan 16 13:44:47 invincible systemd[1]: Job mnt-ssh.mount/start failed with result 'dependency'.
Jan 16 13:44:47 invincible systemd[1]: Job fsck@sshfs\x23tc\x40192.168.0.3:-home-tc.service/start failed with result 'dependency'.
Jan 16 13:44:47 invincible systemd[1]: Job sshfs\x23tc\x40192.168.0.3:-home-tc.device/start failed with result 'timeout'.

rpm -q systemd:
systemd-37-7.fc16.x86_64

Comment 4 Kay Sievers 2012-01-16 21:09:12 UTC
What's "1 2" doing here? I doubt you can fsck it. :)

Comment 5 T.C. Hollingsworth 2012-01-16 21:16:55 UTC
(In reply to comment #4)
> What's "1 2" doing here? I doubt you can fsck it. :)

Wow, that was pretty dumb of me.  Putting 0s there fixes it with or without "_netdev".

Sorry for the noise.